# CSolve Command

From GeoGebra Manual

## CAS Syntax

- CSolve( <Equation> )
- Solves a given equation for the main variable and returns a list of all solutions, allowing for complex solutions.
**Example:**`CSolve(x^2 = -1)`

yields*{x = ί, x = -ί}*, the complex solutions of*x*.^{2}= -1

- CSolve( <Equation>, <Variable> )
- Solves an equation for a given unknown variable and returns a list of all solutions, allowing for complex solutions.
**Example:**`CSolve(a^2 = -1, a)`

yields*{a = ί, a = -ί}*, the complex solutions of*a*.^{2}= -1

- CSolve( <List of Equations>, <List of Variables> )
- Solves a set of equations for a given set of unknown variables and returns a list of all solutions, allowing for complex solutions.
**Example:**`CSolve({y^2 = x - 1, x = 2 * y - 1}, {x, y})`

yields*{{x = 1 - 2 ί, y = 1 + ί}, {x = 1 + 2 ί, y = 1 - ί}}*, the complex solutions of*y*and^{2}= x*x = 2 * y - 1*.

**Notes:**

- The complex ί is obtained by pressing ALT + i.
- See also CSolutions Command and Solve Command.