Solving by Graphing
From the work we did in a previous example, we found that solving a quadratic inequality by graphing works best when we can use the zeros as points of reference on the graph.
To find and use the zeros, one side of the inequality should be \(0\) and the other side should be factored.
This idea extends to solving a quadratic inequality algebraically.
For an algebraic solution, the recommended strategy is the same. Ensure that one side of the inequality equals \(0\), and factor the other side.
Let's look at some examples of this now.
Example 4
Solve each inequality algebraically.
- \(x^2+3x \lt 18\)
- \(-5x^2 +45x \leq 0\)
Solution — Part A
We're going to discuss two algebraic methods, a case analysis and a sign analysis.
Both of these methods require us to rewrite the inequality with \(0\) on one side and a factored expression on the other.
Re-write the inequality \(x^2 + 3x \lt 18\).
\( x^{2}+3 x \lt 18 \)
Subtract \(18\) from both sides of the inequality.
\( x^{2}+3 x-18 \lt 0\)
We can then factor the inequality.
\( (x+6)(x-3) \lt 0 \)
Let's begin with the first method, case analysis.
Method 1: Case Analysis
The inequality states that the result of multiplying the factor \((x + 6)(x - 3)\) needs to be negative.
To achieve this result, one of the factors needs to be negative while the other is positive.
There are, thus, two cases that we need to consider.
Case 1: \( x+6 \lt 0 \) and \(x-3 \gt 0 \)
\(\begin{align*} x+6 &\lt 0 \\ x &\;\lt -6 \end{align*}\)
\(\begin{align*} x-3 &\gt 0 \\ x &\;\gt 3 \end{align*}\)

There are no numbers that meet both of these conditions at the same time!
A number can't be simultaneously less than \(-6\) and greater than \(3\).
So case one leads to no solutions.
Case 2: \(x + 6 \gt 0\) and \(x - 3 \lt 0\)
\(\begin{align*} x+6 &\gt 0 \\ x &\;\gt -6 \end{align*}\)
\(\begin{align*} x-3 &\lt 0 \\ x &\;\lt 3 \end{align*}\)

The set of real numbers between \(-6\) and \(3\) meets both of these conditions.
The solution is \(-6 \lt x \lt 3\).
This method worked fairly well, but it might be nice to avoid having to check a case that leads to no solutions. The second algebraic method called sign analysis allows us to do this.
Let's solve the inequality again using the method called sign analysis.
Method 2: Sign Analysis
We will again use the rewritten version of the inequality, \( (x+6)(x-3) \lt 0 \), which has the same solutions as \(x^2 + 3x \lt 18\).
Let \(f(x)=(x+6)(x-3)\).
For the method known as sign analysis, we use the zeros of this function to divide the real number line into three intervals.
Here the zeros are \(-6\) and \(3\).
So our intervals will be \(x\)-values that are less than \(-6\), \(x\)-values between \(-6\) and \(3\), and \(x\)-values that are greater than \(3\).

For each of these intervals, we're going to consider each of the factors, \((x - 3)\) and \((x + 6)\).
Note that it doesn't matter which order you list these factors in the table.
I tend to list whichever factor has a lower constant first.
In completing sign analysis, we want to know whether a particular factor will be positive or negative for \(x\)-values in each interval.
We can summarize this in a table.
Start with the factor \(x - 3\).
| |
\(x \lt -6\) |
\(-6 \lt x \lt 3\) |
\(x \gt 3\) |
| \(x-3\) |
|
|
|
| \(x+6\) |
|
|
|
| |
|
|
|
For any \(x \lt -6\), this factor will be negative.
You can test this by picking a representative \(x\)-value in the interval, such as \(-10\).
When \(x = -10\), \(x - 3 = 13\).
For \(-6 \lt x \lt 3\), the factor \(x - 3\) will still be negative.
Again, pick a representative \(x\)-value like \(0\) to check this.
Finally, for \(x \gt 3\), the factor \(x - 3\) will be positive.
We can check that this is true for a value like \(x = 4\).
| |
\(x \lt -6\) |
\(-6 \lt x \lt 3\) |
\(x \gt 3\) |
| \(x-3\) |
\(-\) |
\(-\) |
\(+\) |
| \(x+6\) |
|
|
|
| |
|
|
|
Completing a similar sign analysis for \(x + 6\), we find that this factor is
- negative for \(x \lt -6\),
- positive for \(-6 \lt x \lt 3\), and
- positive for \(x \gt 3\).
| |
\(x \lt -6\) |
\(-6 \lt x \lt 3\) |
\(x \gt 3\) |
| \(x-3\) |
\(-\) |
\(-\) |
\(+\) |
| \(x+6\) |
\(-\) |
\(+\) |
\(+\) |
| |
|
|
|
Take a moment to convince yourself that each of these signs makes sense.
Now let's consider the whole expression, \((x + 6)(x - 3)\).
| |
\(x \lt -6\) |
\(-6 \lt x \lt 3\) |
\(x \gt 3\) |
| \(x-3\) |
\(-\) |
\(-\) |
\(+\) |
| \(x+6\) |
\(-\) |
\(+\) |
\(+\) |
| \((x+6)(x-3)\) |
|
|
|
The sign of this expression depends on the signs of each individual factor.
- For \(x \lt -6\), a negative factor multiplies another negative factor, which will give a positive result.
- For \(-6 \lt x \lt 3\), a negative factor multiplies a positive factor, which will give a negative result.
- For \(x \gt 3\), a positive factor multiplies a positive factor, which gives a positive result.
| |
\(x \lt -6\) |
\(-6 \lt x \lt 3\) |
\(x \gt 3\) |
| \(x-3\) |
\(-\) |
\(-\) |
\(+\) |
| \(x+6\) |
\(-\) |
\(+\) |
\(+\) |
| \((x+6)(x-3)\) |
\(+\) |
\(-\) |
\(+\) |
So from this table, we can see that \((x+6)(x-3) \lt 0\) for \(-6 \lt x \lt 3\).
Therefore, the solution to \(x^2+3x \lt 18\) is the same interval, \(-6 \lt x \lt 3\).
Although this method took a bit of time to explain, it becomes quite efficient with practice.
Let's take a moment to check our solution to part a).
Any \(x\)-value in the range, \(-6 \lt x \lt 3\), should make the inequality true.
So we can pick any such \(x\)-value and evaluate both sides of the inequality.
When \(x=0\), the inequality should be true.
\(\begin{align*} 0^2+3(0) \lt 18 \\ 0 \lt 18 \end{align*}\)
Conversely, any \(x\)-value outside of the solution interval should make the inequality false.
When \(x=5\), the inequality should be false. An \(x\)-value of \(5\) is too high to be in the interval.
\(\begin{align*} 5^2+3(5) \not \lt 18 \\ 40 \not \lt 18 \end{align*}\)
When we substituted \(5\) for \(x\), the inequality is false., \(40 \not \lt 18\)
Similarly, an \(x\)-value of \(-7\) is too low to be part of the interval.
When \(x=-7\), the inequality should be false.
\(\begin{align*} (-7)^2+3(-7) \not \lt 18 \\ 28 \not \lt 18 \end{align*}\)
When we substitute \(-7\) for \(x\) the inequality is also false, \(28 \not \lt 18\).
As you may have figured out, this is not a complete check. But the fact that these three values gave us the expected result is a good sign.
Solution — Part B
Recall part b): Solve the inequality \(-5x^2 +45x \leq 0\) algebraically.
One side of the inequality is already \(0\), so we just need to factor the left hand side.
This common factors to \(-5x(x-9) \leq 0\).
In this example, we're going to use sign analysis in two different ways to solve the inequality.
Method 1: Sign Analysis
Let's start with the inequality as written.
\(-5x(x-9) \leq 0\)
This is a little different from the previous example in that there are actually three values being multiplied together, \(-5\), \(x\), and \(x - 9\).
We need to consider all three of these in our sign table.
To determine the intervals we need to check, define the function \(f(x)=-5x(x-9)\).
This function has zeros of \(0\) and \(9\).
So our three intervals will be \(x \lt 0\), \(0 \lt x \lt 9\), and \(x \gt 9\).
For each of these intervals, we need to decide whether the factor is \(-5\), \(x - 9\), and \(x\) will be positive or negative.
We will summarize our findings in a table.
| |
\(x \lt 0\) |
\(0 \lt x \lt 9\) |
\(x \gt 9\) |
| \(-5\) |
|
|
|
| \(x-9\) |
|
|
|
| \(x\) |
|
|
|
| |
|
|
|
The factor \(-5\) doesn't depend on \(x\) in any way. So it will always be negative, no matter what the interval.
| |
\(x \lt 0\) |
\(0 \lt x \lt 9\) |
\(x \gt 9\) |
| \(-5\) |
\(-\) |
\(-\) |
\(-\) |
| \(x-9\) |
|
|
|
| \(x\) |
|
|
|
| |
|
|
|
Now, let's look of \(x - 9\).
- When \(x \lt 0\), this factor is negative. We can check this by substituting in a value of less than \(0\), like \(-1\).
- When \(0 \lt x \lt 9\), this factor is negative. Check this by verifying what happens when \(x = 5\).
- When \(x \gt 9\), this factor will be positive.
| |
\(x \lt 0\) |
\(0 \lt x \lt 9\) |
\(x \gt 9\) |
| \(-5\) |
\(-\) |
\(-\) |
\(-\) |
| \(x-9\) |
\(-\) |
\(-\) |
\(+\) |
| \(x\) |
|
|
|
| |
|
|
|
We can complete a similar analysis for the factor \(x\). It is
- negative for \(x \lt 0\),
- positive for \(0 \lt x \lt 9\), and
- positive for \(x \gt 9\).
| |
\(x \lt 0\) |
\(0 \lt x \lt 9\) |
\(x \gt 9\) |
| \(-5\) |
\(-\) |
\(-\) |
\(-\) |
| \(x-9\) |
\(-\) |
\(-\) |
\(+\) |
| \(x\) |
\(-\) |
\(+\) |
\(+\) |
| |
|
|
|
We're now ready to determine the sign of the whole expression, \(-5x(x-9)\).
- For \(x \lt 0\), we need to multiply three negative factors together, which will give a negative result.
- For \(0 \lt x \lt 9\), have two negative factors multiplied with one positive factor for a positive result.
- for \(x \gt 9\), it's two positive factors and one negative factor, which multiply to a negative result.
| |
\(x \lt 0\) |
\(0 \lt x \lt 9\) |
\(x \gt 9\) |
| \(-5\) |
\(-\) |
\(-\) |
\(-\) |
| \(x-9\) |
\(-\) |
\(-\) |
\(+\) |
| \(x\) |
\(-\) |
\(+\) |
\(+\) |
| \(-5x(x-9)\) |
\(-\) |
\(+\) |
\(-\) |
So from this table, we can see that \(-5x(x-9) \lt 0\) when \(x \lt 0\) or \(x \gt 9\).
We also know that \(-5x(x-9)=0\) when \(x=0\) or \(x=9\).
Therefore, \(-5x^2+45x \le 0\) when \(x \le 0\) or \(x \ge 9\).
There's also a slightly different way we could perform sign analysis on this inequality.
After factoring to \(-5x(x-9) \leq 0\), we could divide both sides of the inequality by \(-5\), which produces the new inequality \(x(x-9) \geq 0\).
This changes the sign analysis just a little bit.
Method 2: Sign Analysis on \(x(x-9) \geq 0\)
The function we need to consider is \(g(x)=x(x-9)\).
This function still has zeros of \(0\) and \(9\).
So we can use the same intervals as we did in the previous table.
However, there aren't quite as many factories to check, just \(x\) and \(x - 9\).
| |
\(x \lt 0\) |
\(0 \lt x \lt 9\) |
\(x \gt 9\) |
| \(x-9\) |
|
|
|
| \(x\) |
|
|
|
| \(\phantom{x(x-9)}\) |
|
|
|
Take a moment to consider how you would complete the sign analysis in this table.
| |
\(x \lt 0\) |
\(0 \lt x \lt 9\) |
\(x \gt 9\) |
| \(x-9\) |
\(-\) |
\(-\) |
\(+\) |
| \(x\) |
\(-\) |
\(+\) |
\(+\) |
| \(x(x-9)\) |
\(+\) |
\(-\) |
\(+\) |
In this case, we're looking for intervals that produce positive results.
From the table, we can see that \(x(x-9) \gt 0\) when \(x \lt 0\) or \(x \gt 9\).
We also know that \(x(x-9)=0\) when \(x=0\) or \(x=9\).
Therefore, \(-5x^2+45x \le 0\) when \(x \le 0\) or \(x \ge 9\).
So we get the same solution to the inequality.
Graphing is an alternate way to solve an inequality, and it is also a way that we can verify our answers.
Let's sketch the function \(f(x)=-5x(x-9)\), which was part of our first solution to part b).

We've already identified the zeros, which are \(0\) and \(9\).

The coefficient \(-5\) indicates that the parabola opens down.
This is enough to create a rough sketch.

From the sketch, we can see that \(y \le 0\) when \(x \le 0\) or when \(x \ge 9\).

This confirms our solution, \(-5x^2 +45x \leq 0\), when \(x \leq 0\) or \(x \geq 9\).
Summary — Solving Quadratic Inequalities
To solve a quadratic inequality:
- Ensure that one side of the inequality equals \(0\).
- Factor the other side.
- Choose one of the following methods:
- Sketch a graph.
- Analyze the different cases that arise from the factors.
- Complete a sign analysis (i.e., with a table).
If the resulting quadratic expression in the inequality is not factorable, it's still possible to complete a sign analysis if you can find the zeros some other way. For example, by using the quadratic formula.
If there aren't any zeros, the inequality can be solved quite quickly with a graph.