The sign of a function
Build a table of signs using test points around zeroes and discontinuities, and use it to solve polynomial and fraction inequations and to start a sketch.
You have already used test points to solve quadratic inequations and sketch cubics. This section turns that into one method that works for any function you can factor, including fractions. It is also the first step of every curve sketch you will do in Year 12 calculus.
Where can a function change sign?
Notice the word can. The graph might only touch the axis at a zero, or come back down on the same side of an asymptote. That is why we test, rather than guess.
Building a table of signs
- Move everything to one side, so the other side is $0$.
- Factor fully, and find every zero and every discontinuity.
- Put them in order in a table, with one test value in each gap.
- Read off the sign in each gap.
Solve $x^3 + 2x^2 \le 3x$.
| $x$ | $-4$ | $-3$ | $-1$ | $0$ | $\tfrac12$ | $1$ | $2$ |
|---|---|---|---|---|---|---|---|
| $y$ | $-20$ | $0$ | $4$ | $0$ | $-\tfrac78$ | $0$ | $10$ |
| sign | $-$ | $0$ | $+$ | $0$ | $-$ | $0$ | $+$ |
Fractions: dodge the discontinuities too
A fraction can change sign where its denominator is zero, so those $x$-values go in the table as well. Mark them with a star, since the function is undefined there. A discontinuity is never part of the solution.
The shading shows where y is positive. The sign changes only at the zeroes and at the asymptote.
Before moving anything, predict where $y \gt 0$ when $c = 3$. Then drag $c$ to $-0.5$ and predict again. What happens to the pattern when $c = 1$?
Solve $\dfrac{2}{x - 1} \le x$ using a table of signs.
| $x$ | $-2$ | $-1$ | $0$ | $1$ | $1.5$ | $2$ | $3$ |
|---|---|---|---|---|---|---|---|
| LHS | $\tfrac43$ | $0$ | $-2$ | $*$ | $2.5$ | $0$ | $-2$ |
| sign | $+$ | $0$ | $-$ | $*$ | $+$ | $0$ | $-$ |
You could also solve Example 2 the 1A way: multiply by $(x - 1)^2$ to get $2(x - 1) \le x(x - 1)^2$, then factor out $(x - 1)$. Both methods give the same answer. The table of signs is better when the fraction is messy, and it doubles as a sketch.
From table to sketch
The table tells you which side of the axis the graph is on in each gap. For $y = \dfrac{x + 1}{x - 3}$, the zero is $x = -1$, the vertical asymptote is $x = 3$, and the signs are $+$, $-$, $+$. Writing $y = 1 + \dfrac{4}{x - 3}$ shows $y \to 1$ as $x \to \pm\infty$, so $y = 1$ is a horizontal asymptote. With the intercept $(0, -\tfrac13)$, that is enough for a good sketch.
Your turn
Solve $\dfrac{x + 4}{x - 2} \gt 0$.
Show the working
Zero at $x = -4$, discontinuity at $x = 2$. Test $x = -5$: $\tfrac{-1}{-7} \gt 0$. Test $x = 0$: $\tfrac{4}{-2} \lt 0$. Test $x = 3$: $\tfrac71 \gt 0$. So $x \lt -4$ or $x \gt 2$.
A function can only change sign at:
Between neighbouring zeroes and discontinuities the graph is unbroken and does not touch the axis, so it keeps the same sign. A fraction can change sign at an asymptote without ever being zero.
Solve $(x + 1)(x - 2)(x - 5) \lt 0$.
Zeroes at $-1, 2, 5$. Test $x = -2$: $(-1)(-4)(-7) = -28$, negative. Test $x = 0$: $(1)(-2)(-5) = 10$, positive. Test $x = 3$: $(4)(1)(-2) = -8$, negative. Test $x = 6$: positive. So $x \lt -1$ or $2 \lt x \lt 5$.
How many positive integers satisfy $x(x + 3)(x - 4) \lt 0$?
Zeroes at $-3, 0, 4$. The cubic is negative for $x \lt -3$ and for $0 \lt x \lt 4$. The positive integers there are $1, 2, 3$.
Solve $(x - 2)^2(x + 1) \gt 0$.
The factor $(x - 2)^2$ is positive except at $x = 2$, where it is zero. So the sign matches $x + 1$, which is positive for $x \gt -1$. Remove $x = 2$, where the product is $0$.
Solve $\dfrac{x - 3}{x + 2} \le 0$.
Zero at $3$, discontinuity at $-2$. Test $x = -3$: $\tfrac{-6}{-1} \gt 0$. Test $x = 0$: $\tfrac{-3}{2} \lt 0$. Test $x = 4$: $\tfrac16 \gt 0$. Include the zero, exclude the discontinuity: $-2 \lt x \le 3$.
For $y = \dfrac{x + 1}{x - 2}$, find the value of $y$ at the test point $x = 0$.
$y = \dfrac{0 + 1}{0 - 2} = -\dfrac12 = -0.5$.
Write $y = \dfrac{x + 1}{x - 3}$ as $1 + \dfrac{4}{x - 3}$. Enter the value $y$ approaches as $x \to \infty$.
$x + 1 = (x - 3) + 4$, so $y = 1 + \dfrac{4}{x - 3}$. As $x \to \infty$ the fraction tends to $0$, so $y \to 1$.
Solve $x^3 \ge 4x$.
$x^3 - 4x \ge 0$, so $x(x - 2)(x + 2) \ge 0$. Zeroes $-2, 0, 2$. Signs: $-, +, -, +$. Non-negative for $-2 \le x \le 0$ or $x \ge 2$. Dividing by $x$ would have lost half of this.
Exam style: solve $\dfrac{2}{x - 1} \le x$. The solution is $a \le x \lt b$ or $x \ge c$. Enter $a$.
$\dfrac{2}{x - 1} - x \le 0$ becomes $\dfrac{-(x - 2)(x + 1)}{x - 1} \le 0$. Zeroes $-1$ and $2$, discontinuity $1$. Signs: $+$ for $x \lt -1$, $-$ for $-1 \lt x \lt 1$, $+$ for $1 \lt x \lt 2$, $-$ for $x \gt 2$. So $-1 \le x \lt 1$ or $x \ge 2$, and $a = -1$.
Exam style: solve $\dfrac{x^2 - 4}{x} \ge 0$. The solution is $-a \le x \lt 0$ or $x \ge a$. Enter $a$.
$\dfrac{(x - 2)(x + 2)}{x} \ge 0$. Zeroes $\pm 2$, discontinuity $0$. Test $x = -3$: $\tfrac{5}{-3} \lt 0$. Test $x = -1$: $\tfrac{-3}{-1} \gt 0$. Test $x = 1$: $\tfrac{-3}{1} \lt 0$. Test $x = 3$: $\tfrac53 \gt 0$. So $-2 \le x \lt 0$ or $x \ge 2$, and $a = 2$.
Coaching Centre