WordGPT
โ† Math: from algebra to machine learning

Algebra ยท Part 7 of 10

Quadratic equations

Solve quadratic equations by factoring, the square-root method, completing the square, and the quadratic formula, and use the discriminant to predict the solutions.

Algebra27 min read

A quadratic equation is any equation that can be written as with . These show up whenever a quantity depends on something squared: the height of a thrown ball, the area of a rectangular garden with a fixed perimeter, the profit of a small business as a function of price. Unlike linear equations, quadratics can have two solutions, one solution, or none at all, so we need reliable methods for finding them.

In the last lesson you learned to factor polynomials. Factoring is the fastest way to solve a quadratic when it factors nicely, but many quadratics do not. This lesson gives you the full toolkit: factoring, square roots, completing the square, and the quadratic formula, plus a quick test (the discriminant) that tells you what to expect before you start.

The zero-product idea behind factoring

The key fact is: if a product of two things equals zero, then at least one of them must be zero. Formally, if , then or (or both). There is no other way for a product to be zero.

So to solve a quadratic by factoring, rearrange everything to one side so the other side is , factor the nonzero side, set each factor equal to zero, and solve the two little linear equations.

Important: this only works when one side is exactly . An equation like cannot be split into or ; you would first expand and rearrange to get zero on one side.

Parabola y = xยฒ โˆ’ x โˆ’ 12 opening upward, crossing the x-axis at x = โˆ’3 and x = 4, with those two points marked.-4-2246-101020โˆ’34y = xยฒ โˆ’ x โˆ’ 12
The parabola y = xยฒ โˆ’ x โˆ’ 12 crosses the x-axis exactly at the two solutions x = โˆ’3 and x = 4 found by factoring.

Example 1. Solving by factoring Solve by factoring, and check your answers.

We need two numbers that multiply to and add to : these are and .

Set each factor to zero:

Check : . Check : . Both solutions are correct.

The square-root method

Some quadratics have no middle term. If the equation can be written as or , just take square roots. Remember that a positive number has two square roots: means or , written .

If , there is no real solution, since no real number squares to a negative. If , there is exactly one solution.

This method is the reason completing the square works: it turns any quadratic into a perfect square equal to a number.

Example 2. Taking square roots Solve .

Take the square root of both sides, remembering both signs:

Solve each case:

Check : . Check : . Both work.

Completing the square

Any quadratic can be rewritten by adding a constant that makes the first part a perfect square. Since , we have

The number is what you "complete" the square with.

To solve : move the constant to the right side, add to both sides, write the left side as a square, and take square roots. If the leading coefficient is not , divide the whole equation by it first.

Completing the square is more than a solving trick: it is how the quadratic formula is derived, and it reveals the vertex of a parabola, which you will use when graphing functions.

Two parabolas: y = xยฒ and y = (x+3)ยฒ โˆ’ 7, the second shifted left 3 and down 7, crossing the x-axis near x โ‰ˆ โˆ’5.65 and x โ‰ˆ โˆ’0.35.-8-6-4-224-10-5510y = xยฒy = (x+3)ยฒ โˆ’ 7
Completing the square on xยฒ + 6x + 2 shifts the parabola y = xยฒ left 3 and down 7, so the solutions sit at โˆ’3 ยฑ โˆš7.

Example 3. Solving by completing the square Solve by completing the square.

Move the constant to the right:

Half of is , and . Add to both sides:

The left side is a perfect square:

Take square roots:

So or .

Check one answer approximately: , and . It works.

The quadratic formula

Apply completing the square to the general equation and you get the quadratic formula:

This solves every quadratic, factored or not. The steps: write the equation in standard form , identify , , with their signs, substitute carefully, and simplify.

The expression under the root, , is the discriminant. It predicts the solution count before any computing:

  • : two distinct real solutions.
  • : exactly one real solution, .
  • : no real solutions (the square root is not a real number).

Also, the two solutions always add to and multiply to , which is a fast way to check your answers.

Interactive parabola y = axยฒ + bx + c with sliders for a, b and c, showing the discriminant value and the real roots where the curve meets the x-axis.-55-10-5510y = axยฒ + bx + c
Drag a, b and c and watch the discriminant D = bยฒ โˆ’ 4ac: when D drops below zero the parabola stops touching the x-axis, when D = 0 it just grazes it.

Example 4. Using the formula with a positive discriminant Solve with the quadratic formula.

Here , , . Compute the discriminant:

Since , there are two real solutions. Substitute into the formula:

The two cases:

Check the sum: . Check the product: . Both checks pass.

Example 5. A quadratic with no real solutions Determine the number of real solutions of , and solve it if possible.

Compute the discriminant with , , :

Since , there are no real solutions. The square root is not a real number, so the formula produces nothing real. As a check, for every real , confirming no solution exists.

Quadratics in disguise and word problems

Some equations become quadratic after a substitution or a multiplication step.

  • Equations like are quadratic in : let , solve to get or , then convert back to or .
  • Equations with fractions can be multiplied through by the common denominator to get a polynomial equation. Always check your answers in the original equation, since multiplying can create false solutions (values that make a denominator zero).
  • Word problems: translate the sentence into an equation, solve, and keep only answers that make sense in context (a length cannot be negative, a number of people must be a whole number, and so on).
Curve y = xโด โˆ’ 13xยฒ + 36, a W-shaped quartic crossing the x-axis at x = โˆ’3, โˆ’2, 2 and 3.-4-224-40-20204060โˆ’3โˆ’223y = xโด โˆ’ 13xยฒ + 36
The disguised quartic xโด โˆ’ 13xยฒ + 36 is a parabola in u = xยฒ; its four real solutions come from the two positive u-roots 4 and 9.

Example 6. A quadratic in disguise Solve .

Let , so . The equation becomes:

Factor: we need two numbers multiplying to and adding to : and .

Convert back with :

So . Check : . Check : . All four work.

Example 7. A word problem A rectangular garden is 3 meters longer than it is wide, and its area is 40 square meters. Find its dimensions.

Let be the width; then the length is . The area equation is:

Factor: numbers multiplying to and adding to are and .

A width cannot be negative, so and the length is . Check: square meters, and . Correct.

Choosing a method

A quick decision guide for :

  1. Is there no term? Use square roots directly.
  2. Does it factor easily? Factor and use zero products. This is usually fastest.
  3. Otherwise, use the quadratic formula. It always works. Computing the discriminant first tells you whether real solutions exist at all.

Completing the square is worth knowing because it explains where the formula comes from and is essential later for graphing parabolas, but for pure solving, the formula is usually more efficient.

One more habit worth building: before doing anything, check whether every term shares a common factor. For example, first becomes , giving or in seconds.

Example 8. Picking the fast route Solve .

There is no term, so use square roots. Divide both sides by :

Take square roots:

Check: , and the same holds for . Both solutions work.

Common mistakes

  • Forgetting the when taking a square root: has solutions , not just .
  • Trying to split a nonzero product into separate equations: does not mean or ; first rearrange to and solve.
  • Substituting signs into the quadratic formula incorrectly: for , , so and , not .
  • Forgetting to divide by the leading coefficient before completing the square: to solve , divide by first, giving .
  • Accepting solutions from word problems that make no sense in context, such as a negative width or length.

Practice

  1. Solve by factoring.
  2. Solve .
  3. Solve by completing the square. Give exact answers.
  4. Use the quadratic formula to solve , and state how many real solutions there are.
  5. The product of two consecutive positive even integers is . If is the smaller integer, then . Solve this equation for , giving all real solutions.
Answers
  1. or , since .
  2. or , from .
  3. , since .
  4. Two real solutions: and (discriminant ).
  5. The equation has solutions and ; only is positive, so the two integers are and .

Next, in Functions and graphs, you will see quadratics as parabolas, where the discriminant tells you how many times the curve crosses the -axis.

Part of the free WordGPT Learn section. WordGPT is an AI writing workspace for documents, resumes, websites and study.

    Quadratic equations โ€” Math: from algebra to machine learning | WordGPT