Toolvito

Processed online by Toolvito

Equation & Inequality Solver

Type an equation or an inequality and get the exact answer, a decimal, the steps for the common kinds and a graph. Every answer is put back into your equation to check it. Systems of up to 10 equations are solved too.

Choose what to do

Task
One equation or inequality

For example 2x + 3 = 11, sqrt(x + 3) = x - 3, |2x - 1| < 5 or -3 < 2x + 1 <= 5.

Optional. The letter to solve for; if empty: x when it is used, otherwise the first letter.

Optional, with “to”: only answers in this range (real numbers), for example 0 to 2pi for angles, or where to look for numerical roots.

Significant digits of the decimal answers, 2 to 30.

More options

When you run a task here, Toolvito receives the information you submit for processing. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to solve an equation

  1. Type the equation, such as 2x + 3 = 11, x^2 - 5x + 6 = 0 or sqrt(x + 3) = x - 3. The box below it shows how it is read.
  2. If it has more than one letter, type the letter to solve for under Solve for. The other letters are treated as numbers.
  3. Choose real numbers, complex numbers or whole numbers, and how many digits the decimals have. Select Solve.
  4. Read the answer, the steps and the checks. Download the worked solution as a text file and the graph as an SVG file.

What you can type

  • Numbers, letters, + − * /, powers with ^ (or x², x³), brackets, and = for an equation or < > <= >= for an inequality (also ≤ ≥).
  • 2x means 2 × x and xy means x × y. sin x means sin(x); write sin(2x + 1) with brackets for longer insides, and sin^2 x for (sin x)².
  • Functions: sqrt (or √), cbrt, abs (or |x − 2|), exp, ln (natural logarithm), log (base 10), log2, logb(b, x), sin, cos, tan, sec, csc, cot, asin, acos, atan and the hyperbolic functions. e is 2.71828…, pi is π. Angles are in radians.
  • A double inequality such as -3 < 2x + 1 <= 5 is one line.

Kinds of equations and their steps

  • Linear and quadratic: the quadratic formula with the discriminant, the factored form and the completed square (vertex form).
  • Polynomials of degree 3 and more: the rational root theorem and factoring; the Cardano and Ferrari formulas give exact roots of cubics and quartics. From degree 5 there is no general formula with roots (Abel–Ruffini), so such roots are given as numbers to the digits you choose.
  • Rational equations: the values that make a denominator 0 are excluded; values that only come from clearing the fractions are shown as not solutions.
  • Radical equations: squaring both sides can add false answers, so every candidate is put back into the original equation and failing ones are named.
  • Absolute values: the two cases inside ≥ 0 and inside < 0.
  • Exponential, logarithmic and trigonometric equations: solved exactly where SymPy can (trigonometric ones as a general solution with n any whole number, plus the solutions from 0 to 2π or in your range). When no exact form exists, real roots are found numerically in the range you give (−10 to 10 if you give none), and the page says so.
  • Whole numbers: choose whole numbers for Diophantine equations such as 3x + 5y = 7 (all solutions with a parameter t).
  • Congruences: type 3x ≡ 4 (mod 7) or 3x = 4 mod 7; the steps use the extended Euclidean algorithm. Put several congruences such as x ≡ 2 (mod 3) on separate lines of the system box to combine them with the Chinese remainder theorem.

Inequalities and systems

  • An inequality is solved over the real numbers. The answer is given as inequalities, in interval notation and on the graph (shaded). For a polynomial or a fraction of polynomials the steps show the sign chart.
  • The answer is tested at points inside, outside and right next to every end point.
  • For a system, type one equation per line. Linear systems are solved by elimination (Gauss–Jordan), substitution, Cramer’s rule or the inverse matrix, with exact fractions; the page says if there is one solution, none or infinitely many. Non-linear systems such as x² + y² = 25 with x − y = 1 are solved too.

How the answers are checked

Each solution is put back into both sides of the original equation, first with 30-digit numbers and then exactly. A value that does not satisfy it (an extraneous root) is not given as an answer; the checks list it with the reason. If the work takes longer than about a minute it is stopped and you get no answer rather than a guess.

Related tools