Last Updated 10/31/2022

Sage Essentials
Section 4: Solving Equations

The solve command

Example 1

To find the exact solutions to the equation 3 x 3 4 x 2 43+84=0  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 4 x 2 11x+5= x 2 +5x .

 


← Previous Example Next Example →