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

(1)
$$x^2 + 3x + 2 = a$$

for $x$.

## Sage Cell

#### Code

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


None

## Tags

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

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