DGS Studio

Equation Solving

Complex Roots

Solve equations with complex solutions.

x² + 4 = 0 has no real solution because x² would have to be −4. In the complex numbers, x = 2i or x = −2i. The companion equation x² + 1 = 0 has solutions ±i.

DGS reports the complex pair instead of saying the equation has no solution. A missing real root and a complex root are different statements.

Equation

x^2 + 4 = 0

How the equation is solved

Solve Equation keeps the algebra steps, not a curve. A linear equation isolates the variable. A polynomial can have several roots. A result is kept exact when it is an integer, a fraction, or a simple radical, and an approximation is added only when that helps.

Some inputs are identities or contradictions. 0·x = 0 is true for every x. 0·x = 5 is true for none. A system followed by 'find' solves the equations first and then evaluates the requested expression. The editor below sends the text you leave in the field.

Reading the input

Other versions of this example

These stay on this page so each version keeps the same explanation. Choose Try example to run a version in its Studio workflow, or copy it into the editable field below.

±2i

This line is part of the example input and is sent to DGS unchanged.

x^2 + 4 = 0

±i

This line is part of the example input and is sent to DGS unchanged.

x^2 + 1 = 0

Try a change

Solve Equation opens the original input in the equation workspace and displays its symbolic results, conditions, and solution steps.

Edit and generate

Solve Equation opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples