Skip to content
Tutorials Center
My learning

Topics

Lesson 4 of 37 ยท Getting Started

Solving Equations and Inequalities

Solve linear, quadratic, radical, absolute value and rational equations and inequalities, with sign charts and SymPy checks you can run.

Solving an equation means finding every input that makes it true. Solving an inequality means finding every input that makes it true as a range of values. Both skills appear in nearly every pre-calculus topic, so this lesson gathers the main techniques in one place and shows how to check answers by machine.

Linear and quadratic equations

A linear equation such as 3x - 7 = 11 is solved by undoing operations: add 7, then divide by 3, giving x = 6. Always do the same thing to both sides.

A quadratic equation axยฒ + bx + c = 0 can be solved by factoring, completing the square or the quadratic formula:

x = (-b ยฑ โˆš(bยฒ - 4ac)) / (2a)

The part under the root, D = bยฒ - 4ac, is the discriminant:

Discriminant Real solutions
D > 0 two different
D = 0 one repeated
D < 0 none (two complex solutions)

Example: 2xยฒ - 3x - 5 = 0. Here D = 9 + 40 = 49, so x = (3 ยฑ 7) / 4, giving x = 5/2 or x = -1.

Python A quadratic solver using the formula

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Radical and absolute-value equations

A radical equation has the unknown under a root. Isolate the root, square both sides, solve, then check every answer, because squaring can introduce extraneous solutions.

Example: โˆš(x + 6) = x. Squaring gives x + 6 = xยฒ, so xยฒ - x - 6 = 0, so x = 3 or x = -2. Check: โˆš9 = 3 works; โˆš4 = 2, but x = -2, so it fails. The only solution is x = 3.

An absolute-value equation |A| = k (with k > 0) splits into two cases: A = k or A = -k. So |2x - 1| = 5 gives 2x - 1 = 5 or 2x - 1 = -5, i.e. x = 3 or x = -2.

SymPy solves equations symbolically. Notice how it handles the extraneous root.

Python Solve with SymPy and check extraneous roots

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Linear inequalities

Solve a linear inequality like an equation, with one rule: multiplying or dividing by a negative number reverses the inequality sign.

-2x + 3 > 11 gives -2x > 8, so x < -4, written (-โˆž, -4).

Polynomial and rational inequalities: the sign chart

For xยฒ - x - 6 > 0, move everything to one side (done) and follow a fixed method:

  1. Factor: (x - 3)(x + 2) > 0.
  2. Find the critical values where each factor is zero: -2 and 3.
  3. These split the number line into intervals: (-โˆž, -2), (-2, 3), (3, โˆž).
  4. Test one point in each interval and record the sign.
Interval Test x (x - 3)(x + 2) Sign
(-โˆž, -2) -3 (-6)(-1) = 6 +
(-2, 3) 0 (-3)(2) = -6 -
(3, โˆž) 4 (1)(6) = 6 +

We want > 0, so the solution is (-โˆž, -2) โˆช (3, โˆž). For โ‰ฅ 0 the critical values are included, giving (-โˆž, -2] โˆช [3, โˆž).

For a rational inequality such as (x - 1)/(x + 2) โ‰ค 0, the critical values come from the numerator and denominator. Zeros of the numerator may be included; zeros of the denominator never can, because division by zero is undefined. Here the critical values are -2 and 1; testing gives the solution (-2, 1].

Never multiply both sides of a rational inequality by the denominator unless you know its sign. Use a sign chart instead.

Automate the sign-chart test with a short program.

Python A sign chart by testing points

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. How many real solutions does xยฒ + 2x + 5 = 0 have?

    The discriminant is 4 - 20 = -16, which is negative, so there are no real solutions.
  2. 2. Solve -3x > 12.

    Dividing by -3 reverses the inequality: x < -4.
  3. 3. Why must you check answers to a radical equation?

    Squaring both sides can introduce solutions that do not satisfy the original equation.
  4. 4. What is the solution of (x - 3)(x + 2) > 0?

    The product is positive when both factors have the same sign, which happens outside the critical values.

Summary

  • Quadratics solve by factoring or the formula; the discriminant counts the real solutions.
  • Check solutions of radical equations; split |A| = k into two cases.
  • Reverse an inequality when multiplying or dividing by a negative.
  • Use a sign chart: critical values, test points, read off the signs; never include a value that zeroes a denominator.

Next: The Coordinate Plane, Distance and Lines