How the Algebra Calculator Works
The Algebra Calculator solves three kinds of equations step by step. Choose Quadratic to solve ax² + bx + c = 0 with the quadratic formula, Linear to solve ax + b = c for x, or System to solve two simultaneous equations with Cramer's rule. Every answer shows the working, so you can follow each step and check it by hand.
The quadratic formula
Any quadratic equation ax² + bx + c = 0 can be solved with the quadratic formula: x = (−b ± √(b² − 4ac)) ÷ 2a. Substitute a, b and c, evaluate the discriminant, then compute the two roots. For example, x² − 5x + 6 = 0 has a = 1, b = −5 and c = 6. The discriminant is D = 25 − 24 = 1, so x = (5 ± 1) ÷ 2, giving x = 3 and x = 2.
The discriminant
The discriminant D = b² − 4ac tells you what kind of roots to expect before you finish the calculation. If D > 0, the equation has two distinct real roots and the parabola crosses the x-axis twice. If D = 0, there is exactly one (double) root — for example, x² + 2x + 1 = 0 has the double root x = −1. If D < 0, the roots are complex: x² + x + 1 = 0 has D = −3, so the roots are x = −0.5 ± 0.866i and the parabola never touches the x-axis.
Vertex and axis of symmetry
The vertex is the turning point of the parabola y = ax² + bx + c. It sits at x = −b/2a, with y = f(−b/2a), and the line x = −b/2a is the axis of symmetry. For x² − 5x + 6, the vertex is (2.5, −0.25) and the axis of symmetry is x = 2.5. The parabola opens upward when a > 0 and downward when a < 0, and it crosses the y-axis at c.
Linear equations: solving for x
To solve a linear equation ax + b = c, isolate x: first move b to the other side, then divide by a. For 3x + 7 = 22, subtract 7 from both sides to get 3x = 15, then divide by 3 to get x = 5. The calculator shows both steps and checks the answer by substituting it back into the original equation.
Systems of equations: Cramer's rule
A system a₁x + b₁y = c₁ and a₂x + b₂y = c₂ is solved with Cramer's rule. Compute the determinant det = a₁b₂ − a₂b₁, then x = (c₁b₂ − c₂b₁) ÷ det and y = (a₁c₂ − a₂c₁) ÷ det. For 2x + 3y = 12 and x − y = 1, det = −5, x = 3 and y = 2. If det = 0, the lines are parallel or identical and there is no unique solution.
Frequently Asked Questions
How do you solve a quadratic equation?
Use the quadratic formula x = (−b ± √(b² − 4ac)) ÷ 2a. For example, x² − 5x + 6 = 0 has a = 1, b = −5 and c = 6, so the discriminant is D = 25 − 24 = 1 and x = (5 ± 1) ÷ 2, giving x = 3 and x = 2. The calculator above shows every substitution step and plots the parabola.
What is the discriminant?
The discriminant is D = b² − 4ac. If D > 0, the equation has two distinct real roots; if D = 0, it has one double root; and if D < 0, it has two complex roots. The discriminant also tells you how many times the parabola crosses the x-axis: twice, once, or never.
What if the discriminant is negative?
A negative discriminant means the roots are complex numbers, written as a ± bi. For x² + x + 1 = 0, D = −3, so the roots are x = −0.5 ± 0.866i. The parabola never crosses the x-axis, but it still has a vertex — here (−0.5, 0.75) — which the graph shows.
How do you solve for x in a linear equation?
Isolate x by undoing the operations around it. For 3x + 7 = 22, subtract 7 from both sides to get 3x = 15, then divide by 3 to get x = 5. In general, ax + b = c gives x = (c − b) ÷ a, as long as a is not zero.
How do you solve two equations with two unknowns?
Use Cramer's rule. For 2x + 3y = 12 and x − y = 1, det = 2×(−1) − 1×3 = −5, x = (12×(−1) − 1×3) ÷ (−5) = 3 and y = (2×1 − 1×12) ÷ (−5) = 2. The calculator shows the determinant and both substitutions step by step.
What is the vertex of a parabola?
The vertex is the turning point of the parabola y = ax² + bx + c, located at (−b/2a, f(−b/2a)). For x² − 5x + 6 the vertex is (2.5, −0.25) and the axis of symmetry is x = 2.5. The vertex is a minimum when the parabola opens upward (a > 0) and a maximum when it opens downward (a < 0).