Equation Solver Calculator

Algebra governs engineering calculations (projectile height: h = -4.9t² + v₀t + h₀ solved by setting h=0 to find ground-impact time), business optimization (profit breakeven: -2x² + 100x - 500 = 0), and physics problems (electrical resonance frequencies). Students encounter linear equations (3x + 6 = 0) and quadratic equations (x² - 5x + 6 = 0) across calculus, physics, economics, and chemistry. Yet many lack confidence distinguishing cases: one solution, two solutions, no real solutions, infinite solutions. Errors compound when moving to advanced topics that depend on foundational algebra.

Solutions (x)
x₁ = 3.000000, x₂ = 2.000000
Equation
1x² + -5x + +6 = 0
Formula used
x = [-b ± √(b² - 4ac)] / (2a)
Discriminant (b² - 4ac)
1.000000
Status
Positive discriminant → Two distinct real roots
Solution 1 (x₁)
x₁ = 3.000000
Solution 2 (x₂)
x₂ = 2.000000
Vertex (x, y)
(2.500000, -0.250000)
Verification x₁
1(3.000000)² + -5(3.000000) + 6 = 0.0000000000
Verification x₂
1(2.000000)² + -5(2.000000) + 6 = 0.0000000000

Two solutions: x₁ = 3.000000, x₂ = 2.000000. Sum of roots = 5.000000; Product = 6.000000.

This calculator solves both equation types and immediately reveals the solution nature through discriminant analysis. For ax² + bx + c = 0, it calculates Δ = b² - 4ac: positive Δ means two distinct roots (parabola crosses x-axis twice); zero Δ means one repeated root (parabola touches x-axis at vertex); negative Δ means no real solutions but complex solutions exist. The tool shows complete step-by-step work, verifies each solution by substitution, displays vertex coordinates for parabolas, and handles degenerate cases (a=0 becomes linear) transparently.

Before solving blindly, understand your equation type: if a≠0 it's quadratic (discriminant matters); if a=0 it's linear (infinite or no solution if coefficient of x is also zero). The calculator illuminates this structure, turning abstract algebra into tangible, verifiable results. This clarity proves invaluable when equations model real phenomena where wrong solution type invalidates downstream analysis.

Solving Linear Equations: Step-by-Step

A linear equation in one variable has the form ax + b = 0. To solve, isolate x by subtracting b from both sides (ax = -b), then divide by a (x = -b/a). Example: 3x + 6 = 0 becomes 3x = -6, then x = -2. Verify: 3(-2) + 6 = -6 + 6 = 0 ✓. Linear equations always have exactly one solution (unless a = 0, making it either no solution or infinite). Linear equations model proportional relationships: velocity × time = distance, unit price × quantity = total cost, interest rate × principal = annual interest. Graphically, a linear equation represents a line; solving for x finds where the line crosses the x-axis (the x-intercept).

Understanding Quadratic Equations and the Quadratic Formula

A quadratic equation has the form ax² + bx + c = 0 where a ≠ 0. The quadratic formula is x = [-b ± √(b² - 4ac)] / (2a). This formula always works for any quadratic equation. Example: x² - 5x + 6 = 0 has a=1, b=-5, c=6. Discriminant = (-5)² - 4(1)(6) = 25 - 24 = 1. Solutions: x = [5 ± 1] / 2, giving x₁ = 3 and x₂ = 2. Verify: 3² - 5(3) + 6 = 9 - 15 + 6 = 0 ✓ and 2² - 5(2) + 6 = 4 - 10 + 6 = 0 ✓. Quadratic equations model projectile motion (height over time), profit optimization (revenue minus cost), area problems, and any accelerating process.

The Discriminant: Determining the Nature of Solutions

The discriminant is Δ = b² - 4ac. It determines how many real solutions exist. If Δ > 0: two distinct real solutions (the parabola crosses the x-axis at two points). If Δ = 0: one repeated root (the parabola touches the x-axis at exactly one point—the vertex). If Δ < 0: no real solutions, only complex solutions (the parabola doesn't touch the x-axis; all points are above or below). Example with Δ > 0: x² - 4 = 0 gives Δ = 0 - 4(1)(-4) = 16, two solutions x = ±2. Example with Δ = 0: x² + 2x + 1 = 0 gives Δ = 4 - 4 = 0, one solution x = -1 (repeated). Example with Δ < 0: x² + 1 = 0 gives Δ = 0 - 4 = -4, complex solutions x = ±i. The discriminant instantly reveals solution nature without full calculation.

The Vertex of a Parabola and Axis of Symmetry

For quadratic f(x) = ax² + bx + c, the vertex is at x = -b/(2a). The y-coordinate is f(-b/(2a)) = c - b²/(4a). For f(x) = x² - 4x + 3, vertex x = -(-4)/(2·1) = 2. Vertex y = 3 - 16/4 = 3 - 4 = -1. Vertex: (2, -1). If a > 0, vertex is minimum (parabola opens upward); if a < 0, vertex is maximum (opens downward). The axis of symmetry is the vertical line x = -b/(2a); the parabola mirrors across it. In applications, the vertex represents critical points: maximum profit at a certain quantity, maximum height at a certain time, minimum cost at a certain production level. Understanding vertices is crucial for optimization problems.

Factoring Quadratics and Alternative Solution Methods

Some quadratics factor nicely. x² - 5x + 6 = (x - 2)(x - 3) = 0 gives solutions x = 2, 3 immediately (zero product property: if a product equals zero, one factor must be zero). Factoring is faster than the quadratic formula when possible, but not all quadratics factor (e.g., x² + x + 1 = 0 doesn't factor over reals). The quadratic formula works universally. Completing the square is another method: x² - 5x + 6 becomes (x - 5/2)² - 25/4 + 6 = (x - 5/2)² - 1/4, then solve (x - 5/2)² = 1/4, giving x = 5/2 ± 1/2, so x = 3 or x = 2. All three methods yield the same answer; choose based on convenience. The calculator uses the quadratic formula for universality.

Real-World Applications of Equation Solving

Projectile motion: height h(t) = -4.9t² + v₀t + h₀ where v₀ is initial velocity, h₀ is initial height. Setting h(t) = 0 finds when the object hits the ground (solving a quadratic). Business profit: profit P(x) = -2x² + 100x - 500 where x is units sold. Setting P(x) = 0 finds break-even points (solving a quadratic). Engineering: resonance frequency problems, electrical circuit analysis, structural load distribution. Medicine: drug dosage and concentration models. Finance: compound interest, investment returns. Speedometer calibration, population dynamics, disease spread modeling. Nearly every quantitative field uses equation solving. The ability to set up and solve equations is essential for problem-solving in STEM fields.

Complex Solutions and Imaginary Numbers

When the discriminant is negative (Δ < 0), real solutions don't exist, but complex solutions do. For x² + 1 = 0, Δ = -4, solutions are x = ±i (imaginary unit i = √(-1)). For x² + 2x + 5 = 0, Δ = 4 - 20 = -16, solutions are x = [-2 ± √(-16)] / 2 = [-2 ± 4i] / 2 = -1 ± 2i. Complex solutions come in conjugate pairs (a + bi and a - bi). While they don't represent real x-values on a number line, complex numbers are essential in engineering, quantum physics, and signal processing. The calculator displays complex solutions but focuses on real solutions for practical problem-solving.

Frequently asked questions

How do I know how many solutions a quadratic equation has?

Calculate the discriminant Δ = b² - 4ac. If Δ > 0: two real solutions. If Δ = 0: one real solution (repeated). If Δ < 0: no real solutions (complex solutions exist). The calculator does this automatically.

When should I use factoring vs. the quadratic formula?

Factoring is faster if the quadratic factors nicely (small integer roots). The quadratic formula works universally—even when factoring is hard or impossible. Most students learn factoring first for simple cases, then use the quadratic formula for complex cases or when unsure.

What does it mean if discriminant is zero?

The quadratic has one repeated root (double root). The parabola touches the x-axis at exactly one point—the vertex. Example: x² - 4x + 4 = (x - 2)² = 0 has double root x = 2.

How do I verify that my solution is correct?

Substitute the solution back into the original equation. For x² - 5x + 6 = 0 with solution x = 2: 2² - 5(2) + 6 = 4 - 10 + 6 = 0 ✓. The equation balances; solution is correct.

What are complex solutions and when do they appear?

Complex solutions involve the imaginary unit i (√(-1)). They appear when the discriminant is negative (Δ < 0). For x² + 1 = 0: x = ±i. Complex solutions don't represent real x-values but are valid in mathematics and engineering.

Can a linear equation have no solution?

Yes, if the coefficient of x is zero and the constant term is nonzero. Example: 0·x + 5 = 0 means 5 = 0, which is false; no solution. If both are zero (0·x + 0 = 0), every x is a solution (infinite solutions).

How does the vertex relate to solutions?

The vertex x-coordinate is the midpoint of the two roots: x_vertex = (x₁ + x₂) / 2 = -b/(2a). If there's one repeated root (Δ = 0), it equals the root. If no real roots (Δ < 0), the vertex is a maximum or minimum but not on the x-axis.

What's the relationship between roots and factors?

If x = r is a root, then (x - r) is a factor. For x² - 5x + 6 = 0 with roots x = 2, 3, the factorization is (x - 2)(x - 3) = 0. This is the zero product property: factors equal zero at roots.

CalcNow provides estimates for informational purposes only. Verify important figures with a qualified professional.