James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA HL › Topic 2: Functions › Inequalities

Inequalities

Solving f(x)>g(x) graphically and analytically: polynomial inequalities with sign diagrams, rational inequalities without the classic multiplying error, and calculator inequalities on Paper 2.

AHL 2.15HL onlyPaper 1Paper 2≈ 75 min to work through
Before you start: factorising polynomials and solving quadratic inequalities. See Polynomials and Quadratics.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Solve f(x)>g(x) from a graph: where is one curve above the other?AHL 2.15
  • Solve polynomial inequalities using factors and a sign diagramAHL 2.15
  • Handle repeated factors correctlyAHL 2.15
  • Solve rational inequalities without multiplying by an expression of unknown signAHL 2.15
  • Solve inequalities with a GDC and give answers to 3 s.f.AHL 2.15

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

Every inequality f(x)>g(x) is a question about two graphs: for which x is the graph of f above the graph of g? Equivalently, for which x is h(x)=f(x)−g(x) positive? The answer changes only where h crosses zero (the critical values) or where h is undefined. Find those values, test each interval between them, and you are done.

2.1 Inequalities from graphs

If you can see both graphs, find the x-coordinates of their intersections. Between consecutive intersections, one graph stays above the other. Read off the intervals where the correct graph is on top. Strict inequalities (<, >) exclude the intersection points; ≤ and ≥ include them. Values where a function is undefined are always excluded.

2.2 Polynomial inequalities and sign diagrams

Rearrange so one side is 0, factorise, then draw a sign diagram: a number line marked with the critical values, with the sign of the expression on each interval.

Worked example 1Paper 1
Solve x3−2x2−5x+6>0.
Factorise: (x−1)(x−3)(x+2)>0
Using the factor theorem: see WE3 on the Polynomials page.
Critical values −2,1,3.
Sign for large x: positive. Each single factor changes the sign: + on x>3, − on (1,3), + on (−2,1), − on x<−2.
Start from the right, where every factor is positive, and alternate.
−2<x<1 or x>3

The alternating pattern breaks at a repeated factor: (x−a)2 is never negative, so the sign does not change at a.

Worked example 2Paper 1
Solve (x−2)2(x+1)≤0.
Critical values −1 and 2 (repeated).
For x>2: +. At 2 the sign does not change, so also + on (−1,2). For x<−1: −.
x≤−1 or x=2
Do not forget the single point x=2, where the expression equals 0.

2.3 Rational inequalities: the trap

Multiplying both sides of an inequality by a negative number reverses it. If you multiply by an expression like x−1, you do not know its sign, so you do not know whether to reverse. This is the most common error in this topic.

The wrong method, and why it fails

Solve x+3x−1≥2. Multiplying by (x−1): x+3≥2x−2, so x≤5. But x=0 satisfies x≤5, and 0+30−1=−3, which is not ≥2. The method silently assumed x−1>0.

There are two safe methods. Learn both: method A is usually quicker, method B avoids fractions.

Two safe methods Not in booklet: learn it

A. One side zero. Subtract, write as a single fraction N(x)D(x), factorise, and use a sign diagram with the zeros of N and D as critical values.
B. Multiply by a square. Multiply both sides by D(x)2, which is positive, so the inequality keeps its direction. Then factorise and use a sign diagram, excluding zeros of D.

Worked example 3Paper 1
Solve x+3x−1≥2.
Method A: x+3x−1−2≥0⇒x+3−2(x−1)x−1≥0⇒5−xx−1≥0
Critical values 1 and 5. Test x=2: 31>0. Signs: − for x<1, + on (1,5), − for x>5.
One test point plus alternating signs is enough when every factor is single.
1<x≤5
x=5 is included (the fraction is 0); x=1 is excluded (undefined).
Method B check: (x+3)(x−1)≥2(x−1)2⇒(x−1)(5−x)≥0⇒1≤x≤5, and x≠1.
Both methods agree.
Worked example 4Paper 1
Solve 1x+1<2x−2.
1x+1−2x−2<0⇒(x−2)−2(x+1)(x+1)(x−2)<0⇒−x−4(x+1)(x−2)<0
Multiply by −1 and reverse: x+4(x+1)(x−2)>0
Multiplying by a known negative number is fine: just reverse.
Critical values −4,−1,2. For x>2: +. Alternate: − on (−1,2), + on (−4,−1), − for x<−4.
−4<x<−1 or x>2
Worked example 5Paper 1
Solve x2−1x+2≥x−1.
(x−1)(x+1)x+2−(x−1)≥0
Do not divide both sides by x−1: its sign is unknown, and you would lose the solution x=1.
(x−1)[x+1x+2−1]≥0⇒(x−1)·−1x+2≥0⇒x−1x+2≤0
−2<x≤1
Worked example 6 (faded)Paper 1
Solve 2x−1x+2<1.
2x−1−(x+2)x+2<0⇒x−3x+2<0. Critical values −2 and 3  ← you work this out
Solution: −2 < x < 3  ← you work this out

2.4 Inequalities with a GDC

On Paper 2, inequalities that cannot be solved algebraically (mixing exponentials, logs, trig and polynomials) are solved by graphing both sides and finding intersections. Write down the intersection values, then give the solution set.

Worked example 7Paper 2
Solve 2x≥x2.
Graph y=2x and y=x2. Intersections: x=−0.767, x=2, x=4.
Zoom out: the third intersection at x=4 is easy to miss.
2x is above for −0.767<x<2 and for x>4.
−0.767≤x≤2 or x≥4
Worked example 8Paper 2
Solve ex<x+2.
Intersections: x=−1.84 and x=1.15.
The line is above the exponential between them: −1.84<x<1.15.
Checklist for any inequality
  1. Never multiply or divide by an expression whose sign you do not know.
  2. Get one side to 0 and write the other side as a product or quotient of factors.
  3. Critical values: zeros of the numerator and of the denominator.
  4. Sign diagram: single factors flip the sign, squared factors do not.
  5. Endpoints: include zeros of the numerator for ≤,≥; always exclude zeros of the denominator.
  6. Check one value from your answer in the original inequality.
On your TI-Nspire Calculator tricks →

Paper 2: graph f1(x)= left side, f2(x)= right side, then Analyze Graph → Intersection for each crossing. Alternatively graph f1(x)−f2(x) and find its zeros. Watch for intersections outside the default window.

3Explore it

Choose an inequality. The curve is h(x)= left side − right side. The green bars on the x-axis show where the inequality is true: where h has the right sign.

4Common mistakes & exam tips

Common mistakes

  • Multiplying both sides by an expression such as x−1 without knowing its sign.
  • Dividing both sides by a common factor and losing solutions.
  • Alternating signs across a repeated factor, where the sign does not change.
  • Including a value that makes the denominator zero.
  • On Paper 2, missing an intersection outside the default viewing window.

Exam tips

  • Show the sign diagram or a sketch: it earns method marks and makes the answer easy to check.
  • Write the final answer clearly as intervals, e.g. "−2<x<1 or x>3", not as a list of numbers.
  • For "hence" questions, the earlier factorisation is the starting point of the sign diagram.
  • Test one value from each interval of your answer in the original inequality if time allows.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Solve (x+1)(x−2)(x−4)≤0.
x≤−1 or 2≤x≤4
FluencyP2
Solve x2(x−3)>0.
x>3 (x2≥0, and x=0 gives 0).
FluencyP3
Solve x−4x+1≥0.
x<−1 or x≥4
FluencyP4
Solve 3x−2>1.
5−xx−2>0: 2<x<5
Problem solvingP5
Solve xx+1≤2x.
x2−2x−2x(x+1)≤0. Critical values 1±3,−1,0: −1<x≤1−3 or 0<x≤1+3.
Problem solvingP6
Use a GDC to solve ln(x+3)>x−1.
Intersections x=−2.98 and x=2.75: −2.98<x<2.75.

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[5 marks]

Solve the inequality x+5x−1≤3.

x+5x−1−3≤0 or multiplying by (x−1)2M1
8−2xx−1≤0 or equivalentA1
critical values 1 and 4A1
x<1 or x≥4A1A1
Question 2Paper 1[6 marks]

Let P(x)=x3+x2−10x+8.

  • (a)Show that (x−1) is a factor of P(x), and hence factorise P(x) fully.[3]
  • (b)Hence solve P(x)<0.[3]
(a)
P(1)=1+1−10+8=0A1
P(x)=(x−1)(x2+2x−8)M1
(x−1)(x+4)(x−2)A1
(b)
sign diagram or sketch with critical values −4,1,2M1
x<−4A1
1<x<2A1
Question 3Paper 2[5 marks]

Solve the inequality 2x≥x2.

attempt to find intersections of y=2x and y=x2(M1)
x=−0.767, 2, 4A1A1
−0.767≤x≤2A1
x≥4A1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
May 2022 · TZ2 · Paper 1Q3Solving a rational inequality analytically★★
May 2022 · TZ1 · Paper 2Q6Solving f(x)≥g(x) with a GDC★★
Nov 2023 · TZ1 · Paper 2Q11Solving f(x)>x within a longer question★★
May 2025 · TZ1 · Paper 1Q10Inequalities involving a composite function★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake