# CSolve Command Jump to: navigation, search

##### CSolve

This article is about GeoGebra command.

##### Command Categories (All commands)

This command works in CAS View only.

CSolve[ <Equation> ]
Solves a given equation for the variable x and returns a list of all solutions, allowing for complex solutions.
Example:
`CSolve[x^2 = -1]` gives {x = ί, x = -ί}, the complex solutions of x2 = -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]` gives {a = ί, a = -ί}, the complex solutions of a2 = -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}]` gives {{x = 1 + 2 ί, y = 1 + ί}, {x = 1 - 2 ί, y = 1 - ί}}, the complex solutions of y2 = x and x = 2 * y - 1.
Note:
• GeoGebra
• Help
• Partners
• Contact us
• Feedback & Questions
• This email address is being protected from spambots. You need JavaScript enabled to view it.
• +43 677 6137 2693
© 2021 International GeoGebra Institute