You can solve any quadratic equation by completing the square—rewriting part of the equation as a perfect square trinomial. If you complete the square on the generic equation ax2+bx+c=0 and then solve for x, you find that x=2a−b±b2−4ac. This equation is known as the Quadratic Formula.
We can derive the quadratic formula by completing the square. First, assume that the leading coefficient is positive; if it is negative, we can multiply the equation by −1 and obtain a positive a. Given ax2+bx+c=0, a=0, we will complete the square as follows:
First, move the constant term to the right side of the equal sign:
ax2+bx=−c
As we want the leading coefficient to equal 1, divide through by a:
x2+abx=−ac
Then, find 21 of the middle term, and add (21ab)2=4a2b2 to both sides of the equal sign:
x2+abx+4a2b2=4a2b2−ac
Next, write the left side as a perfect square. Find the common denominator of the right side and write it as a single fraction:
(x+2ab)2=4a2b2−4ac
Now, use the square root property, which gives
x+2ab=±4a2b2−4acx+2ab=2a±b2−4ac
Finally, add −2ab to both sides of the equation and combine the terms on the right side. Thus,
x=2a−b±b2−4ac
This formula is very helpful for solving quadratic equations that are difficult or impossible to factor, and using it can be faster than completing the square. The Quadratic Formula can be used to solve any quadratic equation of the form ax2+bx+c=0.
The form ax2+bx+c=0 is called standard form of a quadratic equation. Before solving a quadratic equation using the Quadratic Formula, it's vital that you be sure the equation is in this form. If you don't, you might use the wrong values for a, b, or c, and then the formula will give incorrect solutions.
Solving a Quadratic Equation using the Quadratic Formula
The Quadratic Formula will work with any quadratic equation, but only if the equation is in standard form, ax2+bx+c=0. To use it, follow these steps.
Put the equation in standard form first.
Identify the coefficients, a, b, and c. Be careful to include negative signs if the bx or c terms are subtracted.
Carefully substitute the values noted in step 2 into the equation. To avoid needless errors, use parentheses around each number input into the formula.
Simplify as much as possible.
Use the ± in front of the radical to separate the solution into two values: one in which the square root is added, and one in which it is subtracted.
Simplify both values to get the possible solutions.
That's a lot of steps. Let’s try using the Quadratic Formula to solve a relatively simple equation first; then you’ll go back and solve it again using another factoring method.
Example
Use the Quadratic Formula to solve the equation x2+4x=5.
Answer: First write the equation in standard form.
x2+4x=5x2+4x−5=0a=1,b=4,c=−5
Note that the subtraction sign means the constant c is negative.
x2+4x−5=0↓↓↓ax2+bx+c=0
Substitute the values into the Quadratic Formula. x=2a−b±b2−4ac
x=2(1)−4±(4)2−4(1)(−5)
Simplify, being careful to get the signs correct.
x=2−4±16+20
Simplify some more.
x=2−4±36
Simplify the radical: 36=6.
x=2−4±6
Separate and simplify to find the solutions to the quadratic equation. Note that in one, 6 is added and in the other, 6 is subtracted.
x=2−4+6=22=1orx=2−4−6=2−10=−5
Answer
x=1or−5
You can check these solutions by substituting 1 and −5 into the original equation.
x=1x2+4x=5(1)2+4(1)=51+4=55=5
x=−5x2+4x=5(−5)2+4(−5)=525−20=55=5
You get two true statements, so you know that both solutions work: x=1 or −5. You’ve solved the equation successfully using the Quadratic Formula!
Watch this video to see an example of how to use the quadratic formula to solve a quadratic equation that has two real, rational solutions.
https://youtu.be/xtwO-n8lRPw
Sometimes, it may be easier to solve an equation using conventional factoring methods, like finding number pairs that sum to one number (in this example, 4) and that produce a specific product (in this example −5) when multiplied. The power of the Quadratic Formula is that it can be used to solve any quadratic equation, even those where finding number combinations will not work.
In the next video example we show that the quadratic formula is useful when a quadratic equation has two irrational solutions that could not have been obtained by factoring.
https://youtu.be/tF0muV86dr0
Most of the quadratic equations you've looked at have two solutions, like the one above. The following example is a little different.
Example
Use the Quadratic Formula to solve the equation x2−2x=6x−16.
Answer: Subtract 6x from each side and add 16 to both sides to put the equation in standard form.
x2−2x=6x−16x2−2x−6x+16=0x2−8x+16=0
Identify the coefficients a, b, and c. x2=1x2, so a=1.Since 8x is subtracted, b is negative. a=1,b=−8,c=16
x2−8x+16=0↓↓↓ax2+bx+c=0
Substitute the values into the Quadratic Formula.
x=2a−b±b2−4acx=2(1)−(−8)±(−8)2−4(1)(16)
Simplify.
x=28±64−64
Since the square root of 0 is 0, and both adding and subtracting 0 give the same result, there is only one possible value.
x=28±0=28=4
Answer
x=4
Again, check using the original equation.
x2−2x=6x−16(4)2−2(4)=6(4)−1616−8=24−168=8
In the next example, we will show that some quadratic equations do not have real solutions. As we simplify with the quadratic formula, we may end up with a negative number under a square root, which, as we know, is not defined for real numbers.
Example
Use the Quadratic Formula to solve the equation x2+x=−x−3
Answer:
Add x to both sides, and add 3 to both sides to get the quadratic equation in standard form.
x2+x=−x−3x2+2x+3=0
Identify a, b, c.
a=1,b=2,c=3
Substitute values for a, b, c into the quadratic formula.
x=2a−b±b2−4acx=2(1)−2±(2)2−4(1)(3)
Simplify
x=2−2±−8
Since the square root of a negative number is not defined for real numbers, there are no real number solutions to this equation.
Answer
There are no real solutions.
Applying the Quadratic Formula
Quadratic equations are widely used in science, business, and engineering. Quadratic equations are commonly used in situations where two things are multiplied together and they both depend on the same variable. For example, when working with area, if both dimensions are written in terms of the same variable, you use a quadratic equation. Because the quantity of a product sold often depends on the price, you sometimes use a quadratic equation to represent revenue as a product of the price and the quantity sold. Quadratic equations are also used when gravity is involved, such as the path of a ball or the shape of cables in a suspension bridge.
A very common and easy-to-understand application is the height of a ball thrown at the ground off a building. Because gravity will make the ball speed up as it falls, a quadratic equation can be used to estimate its height any time before it hits the ground. Note: The equation isn't completely accurate, because friction from the air will slow the ball down a little. For our purposes, this is close enough.
Example
A ball is thrown off a building from 200 feet above the ground. Its starting velocity (also called initial velocity) is −10 feet per second. (The negative value means it's heading toward the ground.)
The equation h=−16t2−10t+200 can be used to model the height of the ball after t seconds. About how long does it take for the ball to hit the ground?
Answer: When the ball hits the ground, the height is 0. Substitute 0 for h.
h=−16t2−10t+2000=−16t2−10t+200−16t2−10t+200=0
This equation is difficult to solve by factoring or by completing the square, so solve it by applying the Quadratic Formula, x=2a−b±b2−4ac. In this case, the variable is t rather than x. a=−16,b=−10, and c=200.
t=2(−16)−(−10)±(−10)2−4(−16)(200)
Simplify. Be very careful with the signs.
t=−3210±100+12800=−3210±12900
Use a calculator to find both roots.
t is approximately −3.86 or 3.24.
Consider the roots logically. One solution, −3.86, cannot be the time because it is a negative number. The other solution, 3.24 seconds, must be when the ball hits the ground.
Answer
The ball hits the ground approximately 3.24 seconds after being thrown.
In the next video we show another example of how the quadratic equation can be used to find the time it takes for an object in free fall to hit the ground.
https://youtu.be/RcVeuJhcuL0
The area problem below does not look like it includes a Quadratic Formula of any type, and the problem seems to be something you have solved many times before by simply multiplying. But in order to solve it, you will need to use a quadratic equation.
Example
Bob made a quilt that is 4 ft ×5 ft. He has 10 sq. ft. of fabric he can use to add a border around the quilt. How wide should he make the border to use all the fabric? (The border must be the same width on all four sides.)
Answer: Sketch the problem. Since you don’t know the width of the border, you will let the variable x represent the width.
In the diagram, the original quilt is indicated by the red rectangle. The border is the area between the red and blue lines.
Since each side of the original 4 by 5 quilt has the border of width x added, the length of the quilt with the border will be 5+2x, and the width will be 4+2x.
(Both dimensions are written in terms of the same variable, and you will multiply them to get an area! This is where you might start to think that a quadratic equation might be used to solve this problem.)
You are only interested in the area of the border strips. Write an expression for the area of the border.
Area of border = Area of the blue rectangle minus the area of the red rectangle
Area of border=(4+2x)(5+2x)–(4)(5)
There are 10 sq ft of fabric for the border, so set the area of border to be 10.
10=(4+2x)(5+2x)–20
Multiply (4+2x)(5+2x).
10=20+8x+10x+4x2–20
Simplify.
10=18x+4x2
Subtract 10 from both sides so that you have a quadratic equation in standard form and can apply the Quadratic Formula to find the roots of the equation.
0=18x+4x2−10or4x2+18x−10=02(2x2+9x−5)=0
Factor out the greatest common factor, 2, so that you can work with the simpler equivalent equation, 2x2+9x–5=0.
2(2x2+9x−5)=022(2x2+9x−5)=202x2+9x−5=0
Use the Quadratic Formula. In this case, a=2,b=9, and c=−5.
x=2a−b±b2−4acx=2(2)−9±92−4(2)(−5)
Simplify.
x=4−9±121=4−9±11
Find the solutions, making sure that the ± is evaluated for both values.
x=4−9+11=42=21=0.5orx=4−9−11=4−20=−5
Ignore the solution x=−5, since the width could not be negative.
Answer
The width of the border should be 0.5 ft.
Our last video gives another example of using the quadratic formula for a geometry problem involving the border around a quilt.
https://youtu.be/Zxe-SdwutxA
Summary
Quadratic equations can appear in different applications. The Quadratic Formula is a useful way to solve these equations, or any other quadratic equation! The Quadratic Formula, x=2a−b±b2−4ac, is found by completing the square of the quadratic equation . When you simplify using the quadratic formula and your result is a negative number under a square root, there are no real number solutions to the equation.
Licenses & Attributions
CC licensed content, Original
Quadratic Formula Application - Time for an Object to Hit the Ground.Authored by: James Sousa (Mathispower4u.com) for Lumen Learning.License: CC BY: Attribution.
Quadratic Formula Application - Determine the Width of a Border.Authored by: James Sousa (Mathispower4u.com) for Lumen Learning.License: CC BY: Attribution.
CC licensed content, Shared previously
Ex2: Quadratic Formula - Two Real Irrational Solutions.Authored by: James Sousa (Mathispower4u.com) for Lumen Learning.License: CC BY: Attribution.
Ex: Quadratic Formula - Two Real Rational Solutions.Authored by: James Sousa (Mathispower4u.com) for Lumen Learning.License: CC BY: Attribution.