Completing the Square Calculator

Calculate the completed-square form, vertex coordinates, axis of symmetry, discriminant, and roots based on coefficients a, b, and c. Completing the Square Calculator helps students, teachers, and algebra learners rewrite quadratic equations and understand their graphs.

Highlights

  • Rewrite quadratic expressions in completed-square (vertex) form.
  • Calculate the parabola’s vertex coordinates.
  • Identify the axis of symmetry.
  • Find the discriminant and determine solution types.
  • Solve for real or complex roots of quadratic equations.

Table of Contents

  1. How Completing the Square Calculator Works?
  2. Practical Use Cases
  3. Accuracy and Limitations
  4. Quick Examples
  5. Frequently Asked Questions (FAQs)
  6. Cite This Calculator

How Completing the Square Calculator Works?

The calculator starts with the quadratic expression ax2 + bx + c, where a must be nonzero. It rewrites the expression in vertex form, a(x − h)2 + k, by factoring out a from the quadratic and linear terms, adding and subtracting the square of half the adjusted linear coefficient, and then simplifying.

ax2+bx+c=ax+b2a2+c−b24a

Comparing this result with a(x − h)2 + k gives the vertex coordinates and the axis of symmetry.

h=−b2a,k=c−b24a

Thus, the vertex is (h, k), and the vertical axis of symmetry is x = h. The calculator also evaluates the discriminant, which determines the nature of the roots.

D=b2−4ac

DiscriminantRootsGraph interpretation
D > 0Two distinct real rootsThe parabola crosses the x-axis twice
D = 0One repeated real rootThe parabola touches the x-axis at its vertex
D < 0Two complex-conjugate rootsThe parabola has no real x-intercepts

When roots are requested, they are calculated using the quadratic formula:

x=−b±D2a

The inputs a, b, and c are unitless decimal coefficients supported within the calculator's stated input range.

Practical Use Cases

Algebra students: Enter the coefficients of a quadratic to check work when rewriting an expression in completed-square form, locating the vertex, identifying the axis of symmetry, and solving for roots.

Teachers and tutors: Use the calculator to create quick examples that compare standard form and vertex form, demonstrate how the discriminant affects the graph, and verify classroom exercises.

Graphing and function learners: Use the vertex coordinates and axis of symmetry to understand whether a parabola opens upward or downward, locate its turning point, and predict its x-intercepts.

Students studying equations: Use the discriminant and roots output to distinguish between two real solutions, one repeated solution, and a pair of complex solutions without manually repeating every algebraic step.

Accuracy and Limitations

The calculator applies the standard completed-square identities, vertex formulas, discriminant formula, and quadratic formula, so results are mathematically exact for valid inputs; displayed decimal results may be rounded by the interface. The leading coefficient a must be nonzero, and each coefficient must remain within the supported range of −100,000 to 100,000 with decimal entry increments of 0.01. Very large or finely balanced decimal coefficients can produce ordinary floating-point rounding in displayed values, and a negative discriminant produces complex roots rather than real x-intercepts.

Quick Examples

Example #1: Perfect Square Quadratic

Rewrite a quadratic expression that produces a perfect-square binomial and a repeated real root.

Example #2: Quadratic with Two Real Roots

Analyze a quadratic with a positive discriminant to identify two distinct real roots and its vertex.

Example #3: Quadratic with Complex Roots

Complete the square for a quadratic with a negative discriminant and no real x-intercepts.

Frequently Asked Questions

The completed-square form is \(a(x-h)^2+k\), where \((h,k)\) is the vertex. It makes the parabola’s position, direction, and minimum or maximum value easier to identify.

For \(ax^2+bx+c\), the x-coordinate of the vertex is \(x=-\frac{b}{2a}\). Substitute this value into the equation to find the y-coordinate.

The axis of symmetry is the vertical line passing through the vertex of a parabola. Its equation is \(x=-\frac{b}{2a}\), and it divides the graph into two mirror-image halves.

The discriminant is \(b^2-4ac\). A positive value indicates two real roots, zero indicates one repeated real root, and a negative value indicates two complex roots.

A quadratic has real roots when its discriminant is greater than or equal to zero. The roots are the x-values where the parabola crosses or touches the x-axis.

Cite This Calculator