Equation Solver

Equation
—
Solution
—
How do you solve a linear equation?

A linear equation of the form ax + b = 0 is solved by moving b to the right side and dividing by a. The solution is x = -b/a. For example: 2x + 6 = 0 gives x = -3.

How do you solve a quadratic equation?

Use the quadratic formula: for ax² + bx + c = 0, x = (-b ± √(b²-4ac)) / 2a. The discriminant D = b²-4ac determines the number of solutions: D > 0 gives two real solutions, D = 0 gives one, D < 0 gives no real solutions.

What is the discriminant?

The discriminant D = b² - 4ac (for equation ax² + bx + c = 0). If D > 0 there are two real solutions, D = 0 gives one double root, and D < 0 means no real solutions.

What is an equation?

An equation is a math statement that two expressions are equal, joined by an equals sign. It usually contains an unknown value, called x, and the goal is to find the number that makes both sides balance.

This page handles the two most common types: linear equations (ax + b = c), which have exactly one solution, and quadratic equations (ax² + bx + c = 0), which can have two, one, or no real solutions.

How to use this equation solver

  1. Pick the type with the dropdown: Linear (ax + b = c) or Quadratic (ax² + bx + c = 0).
  2. Type the coefficients a, b and c into the three boxes. For 2x + 6 = 14 enter a = 2, b = 6, c = 14.
  3. Press Solve equation.
  4. Read the Solution box. For quadratic equations a Discriminant (Δ) box also appears, showing how many solutions exist.

The formulas behind the answers

A linear equation is solved by undoing the operations around x: move the constant across, then divide by the coefficient. A quadratic uses the quadratic formula, where the discriminant Δ = b² − 4ac reveals how many real answers exist.

ax + b = c → x = (c − b) / a ax² + bx + c = 0 → x = (−b ± √(b² − 4ac)) / 2a

Example 1: solving 2x + 6 = 14

Subtract 6 from both sides: 2x = 14 − 6 = 8. Divide both sides by 2: x = 8 ÷ 2 = 4. Check: 2 × 4 + 6 = 8 + 6 = 14, which matches the right side.

x = 4

Example 2: solving x² − 5x + 6 = 0

Here a = 1, b = −5 and c = 6. The discriminant is Δ = b² − 4ac = 25 − 24 = 1. Positive discriminant means two solutions.

Apply the formula: x = (5 ± 1) / 2, giving x = 6/2 = 3 and x = 4/2 = 2. Check the first: 3² − 5 × 3 + 6 = 9 − 15 + 6 = 0.

x = 3 or x = 2

Common mistakes to avoid

The most common error is forgetting to flip the sign when moving a term across the equals sign: +6 becomes −6. Check the signs of b and c carefully too — the quadratic formula is sensitive to them.

Another slip is dividing only part of a side: in 2x = 8, both the 2x and the 8 get divided by 2. Always finish by substituting the answer back into the original equation.

Frequently asked questions

How can I check that a solution is correct?

Substitute the answer for x in the original equation. If x = 4 solves 2x + 6 = 14, then 2 × 4 + 6 must equal 14 — and it does, so the solution is right.

What is the difference between a linear and a quadratic equation?

A linear equation has x only to the first power and its graph is a straight line. A quadratic contains x², its graph is a parabola, and it can have up to two real solutions.

What happens if a equals 0 in a quadratic equation?

The x² term disappears and the equation becomes linear. For example 0x² + 3x − 6 = 0 is really 3x − 6 = 0, which gives x = 2. Use the linear option for this case.

Can the solver handle decimal coefficients?

Yes. For 0.5x + 1.5 = 4 enter a = 0.5, b = 1.5, c = 4. Then 0.5x = 2.5 and x = 5.