Solving One Equation Symbolically Matlab

Suppose you want to find the solutions to the quadratic equation

x^2-5x=14

Matlab can solve this with the solve command. First we symbolically define our variable x and then apply the command. Try this:

syms x
solve (‘x^2 – 5 * x = 14’)

ans =

-2
7

more information here:
http://www2.math.umd.edu/~immortal/206/tutorial/SolvingEquations.shtml