Report

Help us improve this tool

Completing the Square Calculator

Solve quadratic equations by completing the square method. Free online completing the square calculator with step-by-step solutions.

O M T

What is Completing the Square?

Completing the square is a method used to solve quadratic equations of the form $$ax^2 + bx + c = 0$$ where $$a \ne 0$$. This technique transforms the equation into a perfect square trinomial, making it easy to solve for the unknown variable x. It is especially useful when factoring is not possible or when deriving the quadratic formula. You can also use the Quadratic Calculator to solve equations using the quadratic formula approach.

How to Complete the Square

Follow these steps to solve a quadratic equation by completing the square:

  1. Arrange the equation in the form $$ax^2 + bx + c = 0$$.
  2. If $$a \ne 1$$, divide both sides of the equation by $$a$$.
  3. Move the constant term $$c$$ to the right side of the equation.
  4. Take half of the coefficient $$b$$, square it, and add it to both sides.
  5. Factor the left side as a perfect square: $$(x + d)^2 = e$$.
  6. Take the square root of both sides.
  7. Solve for $$x$$ to get two solutions.

$$ax^2 + bx + c = 0 \rightarrow (x + \frac{b}{2a})^2 = \frac{b^2 - 4ac}{4a^2}$$

Example: Solving by Completing the Square

Let's solve $$2x^2 - 12x + 7 = 0$$ using the completing the square method:

Step 1: Divide by 2 → $$x^2 - 6x + \frac{7}{2} = 0$$

Step 2: Move constant → $$x^2 - 6x = -\frac{7}{2}$$

Step 3: Add $$(\frac{-6}{2})^2 = 9$$ to both sides → $$x^2 - 6x + 9 = -\frac{7}{2} + 9$$

Step 4: Factor left → $$(x - 3)^2 = \frac{11}{2}$$

Step 5: Take square root → $$x - 3 = \pm \sqrt{\frac{11}{2}}$$

Step 6: Solve → $$x = 3 \pm \sqrt{\frac{11}{2}}$$

When to Use Completing the Square

  • When the quadratic equation cannot be factored easily.
  • To derive the quadratic formula itself.
  • To rewrite quadratic functions in vertex form: $$f(x) = a(x - h)^2 + k$$.
  • To solve equations involving circles, ellipses, and other conic sections.
  • When working with integrals in calculus that require completing the square.
  • To expand products of binomials, use the FOIL Method Calculator or the Expand Polynomials Calculator.

Completing the Square vs Quadratic Formula

The quadratic formula $$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$ is derived directly from the completing the square method. Both methods will give you the same solutions. Use the Quadratic Calculator for quick solutions using the quadratic formula approach. The quadratic formula is typically faster for direct calculation, but completing the square provides deeper insight into the structure of quadratic equations and is essential for rewriting quadratics into vertex form.

Frequently Asked Questions

What does completing the square mean?

Completing the square means transforming a quadratic expression $$ax^2 + bx + c$$ into the form $$a(x + d)^2 + e$$. This makes it easier to solve quadratic equations, find the vertex of a parabola, and understand the properties of the quadratic function.

Can completing the square be used for all quadratic equations?

Yes, completing the square can be used to solve any quadratic equation, including those with real and complex roots. It is a universal method that works for all cases, unlike factoring which only works for certain equations.

What is the discriminant and why does it matter?

The discriminant, denoted as $$\Delta = b^2 - 4ac$$, determines the nature of the roots. If $$\Delta > 0$$, there are two distinct real roots. If $$\Delta = 0$$, there is one repeated real root. If $$\Delta < 0$$, there are two complex (imaginary) roots.

How do you complete the square when a is not 1?

When $$a \ne 1$$, first divide all terms by $$a$$. For example, for $$2x^2 - 12x + 7 = 0$$, divide by 2 to get $$x^2 - 6x + \frac{7}{2} = 0$$. Then proceed with the standard completing the square steps.

Is completing the square used in real life?

Yes, completing the square is used in physics for projectile motion calculations, in engineering for optimization problems, in economics for profit maximization, in computer graphics for curve rendering, and in statistics for analyzing quadratic regression models. The Math Equation Solver can handle a wide range of algebraic problems beyond quadratics.