DoAssignment.ca

C4.2 · Solve polynomial and rational inequalities graphically

Learn to solve polynomial and rational inequalities graphically through clear examples and targeted practice.

Ontario Grade 12 Mathematics

Polynomial and Rational Functions

Use a function’s position relative to the horizontal axis to find the solution

An equation asks when two expressions have the same value. An inequality asks when one expression is greater or less than another. A graph makes that comparison visible. If a function’s graph is above the horizontal axis, its output is positive. If it is below the axis, its output is negative. This lesson uses those observations to solve polynomial and rational inequalities. You will identify important inputs, read the graph on each interval, and decide which endpoints belong in the solution.

What you will learn

1. Prerequisite bridge: expressions and zeros

A polynomial is an expression made from terms with non-negative whole-number powers of a variable. For example, x2−4x^2-4 is a polynomial. A rational expression is a fraction whose numerator and denominator are polynomials, such as x+1x−2\frac{x+1}{x-2}.
A function gives an output for an input. A zero is an input that makes the output equal to zero. On a graph, a zero appears as an xx-intercept: a point where the graph meets the horizontal axis. A rational function is undefined when its denominator is zero. It has no graph point at that input.
These ideas connect inequalities to graphs. Solving f(x)>0f(x)>0 means finding inputs where the graph of y=f(x)y=f(x) is above the horizontal axis. Solving f(x)<0f(x)<0 means finding inputs where it is below. For f(x)≥0f(x)\geq 0 or f(x)≤0f(x)\leq 0, points on the axis can also be included, but only when the function is defined there.
If an inequality compares two expressions, first put them on one side. For example, p(x)>q(x)p(x)>q(x) can be rewritten as p(x)−q(x)>0p(x)-q(x)>0. Then graph the function made by the difference. This turns the comparison into a question about whether one graph is above or below the horizontal axis.
y=f(x)y=f(x)

2. Read intervals and endpoints from a graph

Begin by marking the important inputs on the horizontal axis. For a polynomial, mark its zeros. For a rational function, mark its zeros and every input where its denominator is zero. These values divide the number line into intervals. An interval is a continuous stretch of values between marked inputs.
On each interval, inspect the graph’s position. If the graph is above the axis, that interval satisfies a positive inequality. If it is below, it satisfies a negative inequality. A graph may touch the axis and turn back, so do not assume that the sign changes at every zero. Read the graph on both sides of each marked value.
The inequality sign determines whether a zero can be included. A strict inequality, using >> or <<, does not include a zero, because the function’s value there is exactly zero. An inclusive inequality, using ≥\geq or ≤\leq, can include a zero if the function is defined at that input. A value that makes a rational function’s denominator zero is always excluded.
In interval notation, parentheses exclude endpoints and square brackets include them. For example, (a,b)(a,b) excludes both endpoints, while [a,b][a,b] includes both. A mixed interval such as [a,b)[a,b) includes aa but excludes bb. Infinity is never an endpoint value, so intervals that extend without bound use parentheses at infinity.
A graphing tool can show the curve, but the window and scale matter. A curve may look close to the axis without meeting it. Use intercepts to locate zeros. If you need to confirm whether an interval is above or below the axis, inspect a plotted point within that interval. f(x)>0\iff y=f(x) is above the horizontal axis

3. Guided example: a rational inequality

Solve x+1x−2≥0\frac{x+1}{x-2}\geq 0 graphically. Consider the graph of y=x+1x−2y=\frac{x+1}{x-2}. We want the parts of the graph that are on or above the horizontal axis.
The numerator is zero at x=−1x=-1, so the graph has an intercept there. The denominator is zero at x=2x=2, so the function is undefined there. These two inputs divide the number line into three intervals: values less than −1-1, values between −1-1 and 22, and values greater than 22.
To read the graph’s sign, check one input from each interval. At x=−2x=-2, the function’s output is positive. At x=0x=0, it is negative. At x=3x=3, it is positive. The graph is therefore above the axis on the two outer intervals and below it in the middle interval. These checks support what the graph shows.
The inequality includes equality, so include the zero at x=−1x=-1. Do not include x=2x=2, because the rational function is undefined there. Write the answer as the union of the two intervals where the graph is positive, including the defined zero at −1-1.
x+1x−2≥0\frac{x+1}{x-2}\geq 0

4. Apply the method to polynomial inequalities

For a polynomial inequality, graph the polynomial as a function and mark its zeros. There are no denominator restrictions to consider. Select the intervals where the graph is above or below the horizontal axis, according to the inequality. Include zeros only if the inequality allows equality.
For example, consider x2−4<0x^2-4<0. The graph of y=x2−4y=x^2-4 meets the horizontal axis at x=−2x=-2 and x=2x=2. Between those intercepts, the curve is below the axis. The inequality is strict, so its solution is the open interval between the intercepts, not including either one.
A polynomial graph can meet the axis and turn around instead of crossing it. That is why the graph’s actual position on each interval matters. The same interval-reading process applies to rational graphs, with the added rule that inputs where the denominator is zero are not part of the domain and cannot be solutions.
A clear written solution should show the intervals where the graph satisfies the inequality and explain endpoint choices. When possible, check the graph’s intercepts and use plotted values to confirm the sign on each interval. This keeps the answer tied to the graph rather than to a guess about the curve.
p(x)>q(x)  ⟺  p(x)−q(x)>0p(x)>q(x)\iff p(x)-q(x)>0

Reading the graph in the guided example

Input interval or valueGraph positionIncluded in the solution?
(−∞,−1)(-\infty,-1)Above the axisYes
x=−1x=-1On the axisYes
(−1,2)(-1,2)Below the axisNo
x=2x=2UndefinedNo
(2,∞)(2,\infty)Above the axisYes

Worked example

Solve a rational inequality from its graph

Solve x+1x−2≥0\frac{x+1}{x-2}\geq 0 graphically.
  1. Mark the important inputs
    The graph meets the horizontal axis when the numerator is zero. It is undefined when the denominator is zero. Mark both inputs because they divide the number line into intervals to inspect.
    x=−1,x=2x=-1,\quad x=2
  2. Read the graph on each interval
    Graph the function and check a point from each interval. The outputs at x=−2x=-2, x=0x=0, and x=3x=3 show that the graph is above the axis on the outer intervals and below it between the marked inputs.
    f(−2)=14,f(0)=−12,f(3)=4f(-2)=\frac{1}{4},\quad f(0)=-\frac{1}{2},\quad f(3)=4
  3. Apply the endpoint rules
    The inequality includes equality, so include the zero at x=−1x=-1. The function is undefined at x=2x=2, so exclude that input. The graph satisfies the inequality on the outer intervals.
    (−∞,−1]∪(2,∞)(-\infty,-1]\cup(2,\infty)
Answer: (−∞,−1]∪(2,∞)(-\infty,-1]\cup(2,\infty)
Check: At x=−1x=-1, the expression equals zero, so it is included. At x=2x=2, the denominator is zero, so it is excluded. The checked values x=−2x=-2 and x=3x=3 give positive outputs, while x=0x=0 gives a negative output.

Common mistakes and how to avoid them

Including a zero for a strict inequality such as f(x)>0f(x)>0.
Correction: A zero gives an output of exactly zero, not a positive output. Include it only for an inclusive inequality and only when the function is defined there.
Including an input that makes a rational function’s denominator zero.
Correction: The function has no value at that input. Exclude it from the solution, whether the inequality is strict or inclusive.
Assuming the graph changes sign at every zero.
Correction: A graph can touch the axis and turn back. Read its position on each interval instead of assuming the sign changes.
Choosing intervals from a graph without checking intercepts or the scale.
Correction: Mark the zeros and undefined inputs first. Use the graph and, if needed, plotted values within the intervals to confirm the sign.

Lesson summary

Check your understanding

Question 1

The graph of y=g(x)y=g(x) is below the horizontal axis for −3<x<1-3<x<1 and meets the axis at both endpoints. What is the solution to g(x)<0g(x)<0 on this part of the graph?
  1. [−3,1][-3,1]
  2. (−3,1)(-3,1)
  3. (−∞,−3)∪(1,∞)(-\infty,-3)\cup(1,\infty)
  4. [−3,1)[-3,1)
Show answer and explanation
(−3,1)(-3,1)
The graph is below the axis between the intercepts. The inequality is strict, so neither endpoint is included.

Question 2

A rational function is undefined at x=4x=4. Can x=4x=4 be included in the solution to an inequality involving that function?
  1. Yes, if the inequality uses ≥\geq or ≤\leq.
  2. Yes, if the graph is above the axis nearby.
  3. No, because the function has no value there.
  4. No, unless x=4x=4 is also an intercept.
Show answer and explanation
No, because the function has no value there.
An input that makes the denominator zero is excluded because the rational function is undefined there.

Key terms

Polynomial
An expression made from terms with non-negative whole-number powers of a variable, including a constant term.
Rational expression
A fraction whose numerator and denominator are polynomial expressions.
Zero
An input that makes a function’s output equal to zero.
Interval
A continuous stretch of values on the number line.
Undefined input
An input at which a function has no value, such as an input that makes a rational function’s denominator zero.

Continue through MHF4U

View the complete MHF4U Ontario Grade 12 Mathematics curriculum and lessons

About this lesson and its review

Published by DoAssignment. This AI-assisted lesson follows Ontario Grade 12 Mathematics (MHF4U), expectation C4.2. It is a study resource, not an official curriculum publication.

Before publication, the draft is checked for structure, mathematical or chemical notation, calculations, course boundaries, and readability, and then requires administrator approval. Errors can still occur, so corrections are welcomed.

Official curriculum reference

Report a correction or ask a question