echo on s1 = sym('x^3-1') factor(s1) % factor the polynomial pause % hit the carriage return when ready to continue s2 = sym('(x-3)^2 + (y-4)^2') expand(s2) % multiply all the terms out pause % hit the carriage return when ready to continue collect(s2) % collect is "kinda" the opposite of "expand" pause % hit the carriage return when ready to continue collect(s2,'y') % the default is to focus on "x", you can force "y" pause % hit the carriage return when ready to continue s3 = sym('sqrt(a^4*b^7)') simplify(s3) pause % hit the carriage return when ready to continue s4 = sym('14*x^2/(22*x*y)') simplify(s4) pause % hit the carriage return when ready to continue diff(s1) pause % hit the carriage return when ready to continue diff(s2,'x') %differentiate w.r.t. x pause % hit the carriage return when ready to continue diff(s2,'y') %differentiate w.r.t. y pause % hit the carriage return when ready to continue diff(s1,2) % return 2nd derivative pause % hit the carriage return when ready to continue int('sin(a)') pause % hit the carriage return when ready to continue int(s1,0.0,2.0) % integrate from x=0 to x=2 pause % hit the carriage return when ready to continue taylor(s2) help taylor % series are powerful