Solving Equations

## Description

The `solve` function solves equations. To use it, first specify some variables; then the arguments to solve are an equation (or a system of equations), together with the variables for which to solve. For example, Sage can solve the equation

\begin{equation} x^2 + 3x + 2 = a \end{equation}

for $x$.

## Sage Cell

#### Code

```
x = var('x')
a = var('a')
solve(x^2 + 3*x + 2==a, x)
```

## Options

None

## Tags

Primary Tags—Precalculus: Algebra of real numbers and simplifying expressions

Secondary Tags—Algebra of Real Numbers and Simplifying Expressions: Solving algebraic equations

## Related Cells

- Solving Equations for One Variable in Terms of Others
- Solving Equations Numerically
- Solving Linear Systems of Equations

## Attribute

Permalink:

Author: Sage Tutorial v7.6

Date: 07 Jul 2017 16:06

Submitted by: Tom Judson