Solving Quadratic Equations with the Quadratic Formula
A quadratic equation is a second-degree polynomial equation of the form ax² + bx + c = 0. To find the values of the unknown variable that satisfy this equation, mathematicians use the quadratic formula:
x = (−b ± √(b² − 4ac)) / 2a
This formula calculates the roots of the equation by using its three numerical coefficients: the x² coefficient (a), the x coefficient (b), and the constant term (c).
When solving these equations, the calculator displays the substituted formula using the notation x = (−b ± √Δ) / 2a, where Δ represents the discriminant. If the discriminant is negative, the tool avoids displaying the square root of a negative number by using the complex notation x = (−b ± i√(4ac − b²)) / 2a.
To ensure mathematical precision, the calculator displays solutions in two distinct formats:
- Exact: This line shows the precise mathematical representation of the roots. It is displayed as a whole number, a reduced fraction, a simplified radical (where the largest square factor is taken outside the root, such as (3 + √5)/2), or a complex conjugate pair written with the imaginary unit i. The exact form is chosen directly based on the mathematical properties of the equation rather than being rounded.
- Decimal: This line appears directly underneath the exact solution to provide a practical approximation. It is only displayed when it provides information that the exact form does not.
The Role of the Discriminant
The algebraic expression under the square root in the quadratic formula, b² − 4ac, is known as the discriminant, denoted by the symbol Δ. The value of the discriminant determines the nature, number, and graphical behavior of the roots:
| Discriminant Value (Δ) | Root Classification Message | Graphical Behavior | Root Type |
|---|---|---|---|
| Δ > 0 | Two different real roots — the curve crosses the x-axis twice. | The parabola intersects the x-axis at two distinct points. | Two distinct real numbers. |
| Δ = 0 | One repeated root — the curve just touches the x-axis. | The vertex of the parabola lies exactly on the x-axis. | A single repeated real number. |
| Δ < 0 | Two complex roots — the curve never reaches the x-axis. | The parabola lies entirely above or below the x-axis. | A complex conjugate pair containing the imaginary unit i. |
To prevent rounding errors, the calculator determines the number of real roots using the exact whole-number value of b² − 4ac. This ensures that equations where b² and 4ac are nearly equal are not misreported as having a repeated root. It also preserves the significant digits of the smaller root in extreme cases, such as x² + 1000000000x + 1 = 0, instead of letting the value collapse to 0.
Geometric Properties and Vieta's Relationships
Beyond finding the roots, a quadratic equation describes a geometric curve known as a parabola. The calculator analyzes the coefficients to determine the key features of this curve, accompanied by a visual sketch showing the Shape of the curve:
- Vertex: The turning point of the parabola, representing its absolute minimum or maximum value.
- Axis of symmetry: The vertical line that divides the parabola into two symmetric halves.
- y-intercept: The point where the curve crosses the vertical y-axis, which always occurs at (0, c).
- Sum of the roots: Calculated using Vieta's relationship, which states that the sum of the roots is equal to −b/a. This provides a quick manual check of your algebraic work.
- Product of the roots: Calculated using Vieta's relationship, which states that the product of the roots is equal to c/a.
- Factored form: The algebraic representation of the equation written as a product of its linear factors. This row is displayed only when the equation factors cleanly over the rational numbers; it is omitted if the roots are irrational or complex.
Linear and Degenerate Fallbacks
When using the calculator, the leading coefficient (a) may sometimes be zero. The tool handles these structural changes through specific fallback rules:
Linear Equation Fallback (a = 0)
If the x² coefficient (a) is set to 0, the equation is no longer quadratic. The tool treats it as a first-degree linear equation of the form bx + c = 0. It solves for x, displays the message With a = 0 this is a linear equation, solved for x below., and provides the step-by-step algebraic rearrangement under the step Rearrange for x.
Degenerate Cases (a = 0 and b = 0)
If both the quadratic coefficient (a) and the linear coefficient (b) are zero, the equation collapses into a constant statement (c = 0). The calculator evaluates this statement and displays one of two messages:
- No value of x can make this true. (if c is any number other than zero).
- Every number is a solution. (if c is also zero).
Input Formats and Validation Rules
The calculator offers two modes for entering equations, updating all solutions, steps, and graphics in real time as you type:
Coefficients Mode
This mode provides three individual input fields: x² coefficient (a), x coefficient (b), and Constant (c). These fields accept:
- Whole numbers (e.g., 2)
- Decimals (e.g., −0.5)
- Fractions (e.g., 3/4)
- Scientific notation (e.g., 2e-3)
Whole Equation Mode
This mode provides a single input field labeled Your equation. You can paste or type a full equation line (such as 2x² + 3x − 5 = 0). The parser accepts equations in any term order, allows terms to be placed on both sides of the equals sign, and supports any single letter as the unknown variable.
Input Constraints and Error Messages
To ensure the equation can be parsed correctly, the input must adhere to specific rules:
- No variables in denominators: The tool cannot process equations with variables underneath a fraction. If entered, it displays: This solves up to x² — no higher power, and no letter underneath a fraction.
- No higher powers: Equations must not exceed the second degree. Higher powers trigger the same degree error message.
- No brackets: You must multiply out all brackets before entering your equation. If brackets are detected, the tool displays: Multiply the brackets out first — this reads a plain ax² + bx + c form.
- Single variable: You must use only one letter for the unknown variable. If multiple letters are used, it displays: Use one letter for the unknown.
- Single equals sign: The equation must contain exactly one equals sign with terms on both sides. If not, it displays: Use one equals sign, with something on each side of it.
- Variable presence: There must be an unknown variable to solve for. If none is found, it displays: There is no letter to solve for here.
- Zero denominators: Fractions cannot have a zero denominator. If entered, it displays: A fraction cannot have 0 underneath.
- Character limits: If the input is too long, the tool displays: That entry is longer than this tool reads.
- General syntax: If the equation cannot be parsed, it displays: That could not be read as an equation. Try the form 2x² + 3x − 5 = 0.
Browser-Side Processing and Privacy
Every mathematical calculation, root simplification, and curve sketch is performed directly within your web browser. The numbers, coefficients, and equations you type are processed locally and never leave your device, ensuring complete privacy as you work.
Frequently Asked Questions
What forms are the solutions given in?
Each solution is shown exactly first — a whole number, a reduced fraction, or a simplified radical such as (3 + √5)/2 — with the decimal underneath it. When the discriminant is negative you get the complex pair instead, written with i.
What does the discriminant tell me?
The discriminant is b² − 4ac. Above zero the curve crosses the x-axis twice and both roots are real and different; at exactly zero it touches the axis once and the two roots coincide; below zero the curve misses the axis altogether and both roots are complex.
What can I type in?
The coefficient boxes take whole numbers, decimals, fractions like 3/4 and values such as 2e-3. The equation box takes a full line like 2x² + 3x − 5 = 0, in any term order, with any single letter as the unknown, and with terms on both sides of the equals sign.
What happens when a is 0?
Nothing breaks. Without an x² term the equation is linear, so it is solved as bx + c = 0 and the answer appears in the same place. If b is 0 as well, you are told whether the statement is false for every x or true for every x.