Last Updated 10/31/2022
The solve command
To find the exact solutions to the equation use the solve command.
Note that the second argument of the command tells SageMath that x is the unknown variable that we are solving for.
Here SageMath has found all three solutions and listed them for you.
When working with the solve command it is often convenient to begin by giving a name to the equation.
Try this!
Solve the equation .