Sub topic 1
Quadratic equations and standard form
A quadratic equation is an equation that can be written with a squared variable as its highest power. This chapter fixes the notation the rest of the tutorial relies on. You will learn to recognize a quadratic, rewrite it in standard form, and read off the coefficients a, b, and c. Every later method, factoring and completing the square, starts from that form.
Prerequisites
This chapter assumes you can already do the following:
- Do arithmetic with integers, fractions, and square roots.
- Expand products such as (x + 2)(x - 5) with FOIL or the distributive property.
- Solve linear equations in one variable.
- Use basic exponent rules and know what a square root means.
If you can solve 3x - 7 = 2x + 5 and expand (x + 3)^2, you are ready.
What makes an equation quadratic
A quadratic equation in one variable is an equation that can be rewritten as
ax^2 + bx + c = 0
where a, b, and c are real numbers and a is not 0. The word "quadratic" comes from the Latin quadratus, "square", because the highest power of x is 2.
The phrase "can be rewritten" matters. Many equations do not look quadratic until you simplify them. For example, x(x + 3) = 10 has no visible x^2 term, but expanding the left side gives x^2 + 3x = 10. That is quadratic.
A solution (also called a root) is a value of x that makes the equation true. A quadratic has at most two real solutions. Later chapters explain when it has two, one, or none.
Standard form and the coefficients
The form ax^2 + bx + c = 0 is called standard form. Its parts have names:
| Part | Name | Role |
|---|---|---|
| a | Leading coefficient | Multiplies x^2. It must not be 0. |
| b | Linear coefficient | Multiplies x. It may be 0. |
| c | Constant term | Has no x. It may be 0. |
Standard form has two requirements:
- Every term is on the left side, and the right side is exactly 0.
- The terms are written in descending order of power: x^2 first, then x, then the constant.
The first requirement is the important one. The zero product property, the subject of the next chapter, only works when one side is 0. The second requirement is a convention that makes a, b, and c easy to find.
Why a cannot be 0
If a = 0, the x^2 term disappears and the equation becomes bx + c = 0. That is a linear equation with at most one solution. Both factoring and completing the square divide by a at some point, so a = 0 would also cause a division by zero. Every method in this tutorial therefore assumes a ≠ 0.
Reading coefficients, including the missing ones
Read each coefficient together with the sign in front of it. Subtraction means a negative coefficient. If a term is missing, its coefficient is 0.
| Equation as given | Standard form | a | b | c |
|---|---|---|---|---|
| 2x^2 - 5x + 3 = 0 | already standard | 2 | -5 | 3 |
| x^2 = 9 | x^2 - 9 = 0 | 1 | 0 | -9 |
| 4x^2 = 7x | 4x^2 - 7x = 0 | 4 | -7 | 0 |
| 5 - x^2 = 3x | -x^2 - 3x + 5 = 0 | -1 | -3 | 5 |
Notice the third row: x^2 has coefficient 4 and there is no constant, so c = 0. In the fourth row, a is -1, not 1, because the x^2 term is subtracted. An unwritten coefficient of 1, as in x^2, is easy to overlook. So is a hidden -1, as in -x^2.
Rewriting an equation into standard form
The procedure uses only operations you already know from linear equations.
- Clear parentheses by expanding products and powers of binomials.
- Clear fractions by multiplying both sides by a common denominator.
- Add or subtract terms on both sides so that the right side becomes 0.
- Combine like terms and write them in descending order.
Worked example 1: parentheses
Rewrite x(x + 3) = 10.
- Expand the left side: x^2 + 3x = 10.
- Subtract 10 from both sides: x^2 + 3x - 10 = 0.
So a = 1, b = 3, c = -10.
Worked example 2: terms on both sides
Rewrite (x + 2)^2 = 3x + 7.
- Expand the square: x^2 + 4x + 4 = 3x + 7.
- Subtract 3x and 7 from both sides: x^2 + 4x - 3x + 4 - 7 = 0.
- Combine like terms: x^2 + x - 3 = 0.
So a = 1, b = 1, c = -3. A common mistake is to write (x + 2)^2 as x^2 + 4. The middle term 4x is easy to drop.
Worked example 3: fractions
Rewrite x^2/2 + 3x = 5.
- Multiply every term by 2: x^2 + 6x = 10.
- Subtract 10 from both sides: x^2 + 6x - 10 = 0.
So a = 1, b = 6, c = -10. Multiply every term by the common denominator, including the term on the right.
Automating the bookkeeping
Moving terms across the equals sign is the same as subtracting the right side from the left. The following program stores each side as a tuple (a, b, c) and computes the standard form.
def to_standard_form(left, right):
"""Move everything to the left side.
Each side is a tuple (a, b, c) meaning a*x^2 + b*x + c.
Returns the tuple (a, b, c) of the equation left - right = 0.
"""
a = left[0] - right[0]
b = left[1] - right[1]
c = left[2] - right[2]
if a == 0:
raise ValueError("a = 0, so the equation is not quadratic")
return a, b, c
# 3x^2 + 2x = x^2 - 5x + 4
print(to_standard_form((3, 2, 0), (1, -5, 4))) # (2, 7, -4)
# x^2 = 9
print(to_standard_form((1, 0, 0), (0, 0, 9))) # (1, 0, -9)
# x^2 + 5x = x^2 + 2 would cancel the x^2 terms
try:
to_standard_form((1, 5, 0), (1, 0, 2))
except ValueError as error:
print(error) # a = 0, so the equation is not quadraticThe first result means 3x^2 + 2x = x^2 - 5x + 4 is equivalent to 2x^2 + 7x - 4 = 0. The third case shows a point worth remembering. An equation can look quadratic and still turn out to be linear after the x^2 terms cancel on both sides.
Equivalent equations and the sign of a
Adding or subtracting the same expression on both sides gives an equivalent equation, meaning one with the same solutions. Multiplying or dividing both sides by a nonzero number does too. So 2x^2 + 7x - 4 = 0 and -2x^2 - 7x + 4 = 0 have the same roots.
This gives you a convenient normalization. If a is negative, multiply both sides by -1 to make it positive. For -x^2 + 4x - 3 = 0, multiplying by -1 gives x^2 - 4x + 3 = 0. Both equations have solutions x = 1 and x = 3. Factoring is usually easier when a is positive.
You can also divide through by a to make the leading coefficient 1. Dividing 2x^2 + 8x + 6 = 0 by 2 gives x^2 + 4x + 3 = 0. This preview matters because both main methods are simplest when a = 1.
Special shapes you will see again
Some quadratics have a missing term, and each shape suggests a method you will meet later.
- b = 0, as in x^2 - 9 = 0. Isolating x^2 and taking square roots works directly. This is the square root method.
- c = 0, as in 4x^2 - 7x = 0. The x can be factored out of every term, so one root is always 0.
- All three present, as in x^2 + 5x + 6 = 0. Factoring as a product, or completing the square, handles this case.
Common errors
- Not setting the right side to 0. Writing x^2 + 3x = 10 and then factoring the left side does not help. The zero product property needs 0 on one side.
- Dropping signs. In x^2 - 6x + 5 = 0, b is -6, not 6. This matters when you later add b/2 or look for factor pairs.
- Forgetting that a missing term is 0. In x^2 = 9, b = 0. Treating it as if there were no b leads to wrong setups later.
- Distributing carelessly. (x - 4)^2 is x^2 - 8x + 16, not x^2 - 16.
- Dividing by x. Rewriting x^2 = 5x as x = 5 loses the solution x = 0. Move terms to one side instead: x^2 - 5x = 0.
Where this leads
Every method in this tutorial starts from ax^2 + bx + c = 0 and uses the three numbers a, b, and c. Factoring looks for two numbers whose sum is b and whose product is c when a = 1. Completing the square uses b/(2a), half the linear coefficient after dividing by a. The quadratic formula, derived in the last chapter, is a single expression in a, b, and c. Getting the standard form and the signs right here prevents errors in all of them.
Exercise
Rewrite 2x(x - 3) = x^2 + 4 in standard form, and state a, b, and c.
Show answer
Expand the left side: 2x^2 - 6x = x^2 + 4. Subtract x^2 and 4 from both sides: 2x^2 - x^2 - 6x - 4 = 0, which gives x^2 - 6x - 4 = 0. So a = 1, b = -6, c = -4.
Exercise
Is (x + 3)^2 = x^2 + 5x + 1 a quadratic equation? Explain.
Show answer
Expand the left side: x^2 + 6x + 9 = x^2 + 5x + 1. Subtract the right side from the left: x + 8 = 0. The x^2 terms cancel, so a = 0 and the equation is linear, not quadratic. Its only solution is x = -8.
Exercise
Write 5 - x^2 = 3x in standard form with a positive leading coefficient, and give a, b, and c.
Show answer
Move everything to the left: 5 - x^2 - 3x = 0, which in order is -x^2 - 3x + 5 = 0. Multiply both sides by -1: x^2 + 3x - 5 = 0. So a = 1, b = 3, c = -5.