Equations and systems — type it like in a textbook, get a step-by-step solution
Equation
System of linear equations
📚 Theory: how to solve equations
A linear equation ax + b = 0 is solved by moving terms: x-terms to the left, numbers to the right (the sign flips when moving), then divide both sides by the coefficient of x.
A quadratic equation ax² + bx + c = 0 is solved via the discriminant D = b² − 4ac. If D > 0 — two roots, D = 0 — one root, D < 0 — no real roots. Roots: x = (−b ± √D) / 2a.
A cubic equation ax³ + bx² + cx + d = 0 is solved at school by guessing: if there is a “nice” (rational) root, it must be among ±p/q, where p divides the constant term and q divides the leading coefficient. Once a root is found, divide the polynomial by (x − root) — a plain quadratic remains.
Equations of degree 4 and higher are simplified first: factor out x, and if the equation has only x⁴, x² and a number (a biquadratic equation), substitute t = x². Without a substitution, look for rational roots among ±p/q and divide the polynomial by (x − root). When there are no exact roots, they are found numerically, and Sturm's theorem gives their exact number.
Fractional equations are multiplied by the common denominator, but first write down the domain: a denominator is not zero. An equation with a root is squared provided the other side is non-negative. An equation with an absolute value is solved by definition or by the interval method. Roots that break the domain or the condition are extraneous and are crossed out.
Exponential equations aˣ = b: if b is a power of a, or both sides can be written with the same base, set the exponents equal; if b ≤ 0 there are no solutions, since aˣ > 0; otherwise take logarithms: x = logₐb, or x = ln b / ln a. If the equation has a²ˣ and aˣ, substitute t = aˣ, t > 0. Logarithmic equations start with the domain: the argument of a logarithm must be positive. Use the laws of logarithms to get a single logarithm, then the definition: logₐf = c ⇔ f = aᶜ. Roots outside the domain are extraneous. Input: 2^(x+1)=8, log_3(x-1)=2, ln x, log x.
A system of linear equations is solved by Gaussian elimination: add equations to each other to eliminate unknowns one by one until the last equation has only one — then substitute the found values from the bottom up (back substitution).
Free-form input: 2x+6=0, 3(x-1)=2x+5, y*9, fractions and decimals are fine. A root is sqrt(x+3) or √(x+3), an absolute value is |x-2|. In the system each line is one equation, variables are any letters (x, y, z…).
Frequently asked questions
Is it free to use?
Yes, this calculator is free and needs no sign-up. Everything is calculated right in your browser, not on a server.