Completing the Square Calculator (2024)

Created by Anna Szczepanek, PhD

Reviewed by

Bogna Szyk and Jack Bowater

Last updated:

May 17, 2024

Table of contents:
  • How does this completing the square calculator work?
  • How do you complete the square: a step-by-step example
  • Special cases
  • Quadratic formula via completing the square

This calculator for completing the square solves any given quadratic equation in the form ax² + bx + c = 0 with help from the method known as... "completing the square" 😉 Below, we give a detailed example of how to complete the square and then explain geometrically the steps of completing the square.

As a by-product, we will also derive the well-known quadratic formula (used in our quadratic formula calculator), and if by completing the square you mean filling a square with numbers, why not try our magic square calculator?

How does this completing the square calculator work?

You just need to enter the coefficients of the quadratic equation:

ax² + bx + c = 0

you want to solve. Remember that a can't be zero (otherwise, your equation is linear instead of quadratic).

Our completing the square calculator not only solves the equation but also shows you the steps of how to complete the square.

Go to the advanced options of this completing the square calculator if you want to:

  • Allow complex roots, i.e., equation roots represented by complex numbers (by default, only real roots are displayed).
  • Increase the precision with which non-integer coefficients are computed.

How do you complete the square: a step-by-step example

Let's take the equation

x² + 6x - 7 = 0

and solve it by completing the square. We break the process into several simple steps so that nobody gets overwhelmed by the formula for completing the square:

  1. Add 7 to either side of the equation so that the left-hand side contains only terms with x:

    x² + 6x - 7 + 7 = 7
    x² + 6x = 7

  2. Now it's time to complete the square! Take one-half of the coefficient in front of x and square it:

    • the coefficient in front of x is 6

    • one half of 6 is 3

    • after squaring, we get 3² = 9

  3. Add the number computed in Step 2 to both sides of the equation:

    x² + 6x + 9 = 7 + 9
    x² + 6x + 9 = 16

  4. Recall the short multiplication formula, (p + q)² = p² + 2pq + q², and note that we may apply it 'backwards' to the left-hand side of our equation (with p = x and q = 3). We obtain:

    (x + 3)² = 16

  5. Take the calculate the square root:

    x + 3 = 4 or x + 3 = - 4

    which gives:

    x = 1; and x = - 7

Hence, we've found the solutions of x² + 6x - 7 = 0.

This means we've determined the points where the parabola y = x² + 6x - 7 intersects the x-axis.

Special cases

  • What if a ≠ 1?

    In the example above, it is important that the coefficient in front of is equal to 1. What do you do if you are asked to solve a quadratic equation where a ≠ 1? Just apply one of the most frequently used problem-solving techniques in math, namely... transform the problem to some you've already solved🙃 What does that mean in our context? Just divide your equation by a!

    For example: assume we have to solve

    2x² + 12x - 5 = 0

    by completing the square. We see that a = 2. Dividing either side by 2, we obtain

    x² + 6x - 2.5 = 0

    and so the coefficient in front of is equal to 1. Now just go ahead with the steps we explained in the example above.

  • What if b = 0?

    If b=0, then you may skip Steps 2, 3, and 4 and go from x² = -c (Step 1) directly to x = ±√|c| (Step 5).

    Why?

    Because in Step 2, we take b and perform some arithmetic operations on it, which gives us the number with which we will 'complete the square.'
    Note that if b = 0, then (b/2)² = 0, and so we would add 0 to both sides of the equations. This is, of course, redundant.

Quadratic formula via completing the square

Let's go once again through the steps for completing the square. This time we apply it to the general equation
x² + bx + c = 0

  • Note that we've already made sure that a = 1

  • Move c to the right-hand side: x² + bx = -c

  • is the area of the square with side x

  • bx is the area of the rectangle of sides x and b

  • Let the magic happen:

Completing the Square Calculator (1)

As a consequence, we have

(x + b/2)² = -c + b²/4

Taking the square root and moving b/2 to the right-hand side, we get:

  • x = -b/2 ± √(-c + b²/4) if b²/4 > c; in such a case, the equation has two distinct real roots.

  • x = -b/2 if b²/4 = c: the equation has one real root.

  • the equation has no real roots if b²/4 < c. If we allow complex roots, they are given by x = -b/2 ± i √(c - b²/4).

Anna Szczepanek, PhD

Related calculators
  • Interval Notation Calculator
  • Partial Fraction Decomposition Calculator
  • Exponential Function Calculator
Completing the Square Calculator (2024)

FAQs

How many solutions does completing the square have? ›

remembering that when we take the square root there will be two possible answers, one positive and one negative. This is often written in the briefer form x = ±3. This process for solving x2 = 9 is very straightforward, particularly because: 9 is a 'square number', or 'complete square'.

What is this √? ›

The square root symbol or square root sign is a mathematical symbol, denoted by '√'. This symbol is known as radical, in words. In Maths, you may have learned about different kinds of symbols, which are used to perform arithmetic operations. The root symbol (√ ) is used to represent the square root of any number.

What is the formula in completing the square? ›

To complete the square, move 'c' to the other side of the equation: ax^+bx=-c. Then, divide everything by 'a' so it looks like x^2+bx/a=-c/a. Then, add (b/2a)^2 to both sides. This forces the left-hand side to be a perfect square and therefore factorable.

What is the simple method for completing the square? ›

The mean can be calculated only for numeric variables, no matter if they are discrete or continuous. It's obtained by simply dividing the sum of all values in a data set by the number of values.

Does completing the square always work? ›

The method of “completing the square” offers an option for solving quadratic equations that are not factorable with integers alone (solutions may include fractions, radicals, or imaginary numbers). the leading coefficient 1. Completing the square won't work unless the lead coefficient is 1!

Can all equations be solved by completing the square? ›

Yes, all quadratic equations can be solved by completing the square.

What is the formula for the perfect square? ›

The perfect square formula in two variations we have in math or specifically in algebra are, (a + b)² = a² + 2ab + b² and (a – b)² = a² – 2ab + b².

How do I know what number to add to complete the square? ›

Steps to completing the square

Add the square of half the coefficient of the x-term, (b/(2a))2 to both sides of the equation. Factor the left side as the square of a binomial. Take the square root of both sides. Remember that x + q 2 = r is equivalent to x + q = ± r .

Top Articles
Phone Number For Walmart Automotive Department
Léa Haddad : la candidate de la Star Ac’ porte des accusations contre Vitaa
Top 11 Best Bloxburg House Ideas in Roblox - NeuralGamer
Danielle Moodie-Mills Net Worth
Ffxiv Palm Chippings
Craigslist Mpls Mn Apartments
Jesus Calling December 1 2022
Mustangps.instructure
J Prince Steps Over Takeoff
Oppenheimer & Co. Inc. Buys Shares of 798,472 AST SpaceMobile, Inc. (NASDAQ:ASTS)
Walgreens On Nacogdoches And O'connor
Overton Funeral Home Waterloo Iowa
Dit is hoe de 130 nieuwe dubbele -deckers -treinen voor het land eruit zien
Truth Of God Schedule 2023
Craftology East Peoria Il
Voy Boards Miss America
Daylight Matt And Kim Lyrics
10 Fun Things to Do in Elk Grove, CA | Explore Elk Grove
Satisfactory: How to Make Efficient Factories (Tips, Tricks, & Strategies)
Maxpreps Field Hockey
Encore Atlanta Cheer Competition
How many days until 12 December - Calendarr
Dcf Training Number
If you have a Keurig, then try these hot cocoa options
Nsa Panama City Mwr
Anotherdeadfairy
Wiseloan Login
Sand Dollar Restaurant Anna Maria Island
Powerschool Mcvsd
Tuw Academic Calendar
Rek Funerals
Spectrum Outage in Queens, New York
Is Henry Dicarlo Leaving Ktla
Wolfwalkers 123Movies
Orange Park Dog Racing Results
Elanco Rebates.com 2022
Pfcu Chestnut Street
Boggle BrainBusters: Find 7 States | BOOMER Magazine
Bitchinbubba Face
Blasphemous Painting Puzzle
Final Jeopardy July 25 2023
Restored Republic June 6 2023
Ucsc Sip 2023 College Confidential
Gopher Hockey Forum
Petfinder Quiz
Zom 100 Mbti
San Diego Padres Box Scores
Tyrone Unblocked Games Bitlife
Noelleleyva Leaks
Myhrkohls.con
E. 81 St. Deli Menu
7 National Titles Forum
Latest Posts
Article information

Author: Lidia Grady

Last Updated:

Views: 6286

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Lidia Grady

Birthday: 1992-01-22

Address: Suite 493 356 Dale Fall, New Wanda, RI 52485

Phone: +29914464387516

Job: Customer Engineer

Hobby: Cryptography, Writing, Dowsing, Stand-up comedy, Calligraphy, Web surfing, Ghost hunting

Introduction: My name is Lidia Grady, I am a thankful, fine, glamorous, lucky, lively, pleasant, shiny person who loves writing and wants to share my knowledge and understanding with you.