The general from of a quadratic is
ax2+bx+c=0. We will now solve this formula for x by completing the square
Example 1
Separate constant from variables
ax2+bx+c=0
Subtract c from both sides
ax2+bx+c−c=0−c
ax2+bx=−c
Divide each term by a
aax2+abx=a−c
x2+abx=a−c
Find the number that completes the square
(21ab)2=(2ab)2=4a2b2
Add to both sides
4a2b2−ac(4a4a)=4a2b2−4a24ac=4a2b2−4ac
Get denominator on the right
x2+abx+4a2b2=4a2b2−4a24ac=4a2b2−4ac
Factor
(x+2ab)2=4a2b2−4ac
Solve using the even root property
(x+2ab)2=sqrt4a2b2−4ac
Simplify roots
x+2ab=2a±b2−4ac
Subtract
2ab from both sides; our solution
x=2a−b±b2−4ac
This solution is a very important one to us. As we solved a general equation by completing the square, we can use this formula to solve any quadratic equation. Once we identify what
a, b, and c are in the quadratic, we can substitute those values into x=2a−b±b2−4ac and we will get our two solutions. This formula is know as the quadratic formula.
Quadratic Formula: if
ax2+bx+c=0
World View Note
Indian mathematician Brahmagupta gave the first explicit formula for solving quadratics in 628. However, at that time mathematics was not done with variables and symbols, so the formula he gave was, "To the absolute number multiplied by four times the square, add the square of the middle term; the square root of the same, less the middle term, being divided by twice the square is the value." This would translate to
2a4ac+b2−b.
We can use the quadratic formula to solve any quadratic, this is shown in the following examples.
Example 2
a=1,b=3,c=2
x2+3x+2=0
Use the quadratic formula
x=2(1)−3±32−4(1)(2)
Evaluate exponent and multiplication
x=2−3±9−8
Evaluate subtraction under root
x=2−3±1
Evaluate root
x=2−3±1
Evaluate ± to get two answers
x=2−2
x=2−4
Our solution
x=−1
x=−2
As we are solving using the quadratic formula, it is important to remember the equation must fist be equal to zero.
Example 3
25x2=30x+11
Subtract 30
x and 11 from both sides
25x2−30x−11=30x−30x+11−11
a=25,b=−30,c=−11
25x2−30x−11=0
Use quadratic formula
x=2(25)30±(−30)2−4(25)(−11)
Evaluate exponent and multiplication
x=5030±900+1100
Evaluate addition inside root
x=5030±2000
Simplify root
x=5030±20sqrt5
Reduce fraction by dividing each term by 10; our solution
x=53±2sqrt5
Example 4
3x2+4x+8=2x2+6x−5
Subtract 2
x2 and 6x and add 5
3x2−2x2+4x−6x+8+5=2x2−2x2+6x−6x−5+5
a=1,b=−2,c=13
x2−2x+13−0
Use quadratic formula
x=2(1)2±(−2)2−4(1)(13)
Evaluate exponent and multiplication
x=22±4−52
Evaluate subtraction inside root
x=22±−48
Simplify root
x=22±4isqrt3
Reduce fraction by dividing each term by 2; our solution
x=1±2isqrt3
When we use the quadratic formula we don't necessarily get two unique answers. We can end up with only one solution if the square root simplifies to zero.
Example 5
a=4,b=−12,c=9
4x2−12x+9=0
Use quadratic formula
x=2(4)12±(−12)2−4(4)(9)
Evaluate exponents and multiplication
x=812±144−144
Evaluate subtraction inside root
x=812±0
Evaluate root
x=812±0
Evaluate ±
x=812
Reduce fraction; our solution
x=23
If a term is missing from the quadratic, we can still solve with the quadratic formula, we simply use zero for that term. The order is important, so if the term with
x is missing, we have b = 0, if the constant term is missing, we have c = 0.
Example 6
a=3,b=0
3x2+7=0
Evaluate exponents and multiplication, zeros not needed
x=2(3)−0±02−4(3)(7)
Simplify root
x=6±−84
x=6±2i21
Our solution
We have covered three different methods to use to solve a quadratic: factoring, complete the square, and the quadratic formula. It is important to be familiar with all three as each has its advantage to solving quadratics. The following table walks through a suggested process to decide which method would be best to use for solving a problem.
1. If it can easily factor, solve by factoring
x2 – 5x + 6 = 0
(x –2)(x – 3)=0
x = 2 or x = 3
2. If a = 1 and b is even, complete the square
x2+2x=4
3. Otherwise, solve by the quadratic formula
x2−3x+4=0
The above table is merely a suggestion for deciding how to solve a quadratic. Remember completing the square and quadratic formula will always work to solve any quadratic. Factoring only woks if the equation can be factored.
Tyler Wallace, Beginning and Intermediate Algebra, "
Quadratic Formula," licensed under a CC-BY license.