This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 2.15 · HL only
Solutions of g(x) ≥ f(x), graphically and analytically
For which values of x is one function at least as big as another, and how do you find every such x, with algebra when you can and with technology when you cannot?
What you will learn
HL Understand that g(x) ≥ f(x) holds where the graph of g is on or above the graph of f.
HL Know how to solve polynomial inequalities up to degree 3 by factorising and a sign diagram.
HL Know how to solve rational inequalities and handle repeated roots and excluded points safely.
HL Understand how to solve other inequalities on a graphing calculator by finding every meeting point.
You must be able to
HL Solve an inequality between two functions on the GDC, giving end points to 3 significant figures.
HL Solve a cubic inequality by factorising and drawing a sign diagram.
HL Solve a rational inequality by writing it as a single fraction, excluding any asymptote.
HL Sketch two graphs and hence read off the solution of an inequality.
HL State a solution set correctly, joining separate intervals with "or".
HL Find the values of a parameter for which a quadratic has two, one or no real roots.
In the exam. almost always on Paper 2, with a calculator: "find the values of x for which f(x)<g(x)", usually 2 to 4 marks, with an answer that may come in pieces, broken at an asymptote or cut to a stated domain. The commands are mostly Find and Solve, then Sketch (both graphs, meeting points marked), Hence, solve (read it off an earlier sketch) and, rarely, Prove (true for every x). Paper 1 can ask for a short cubic or fraction by hand, and inequalities often close longer questions on the factor theorem (2.12), rational functions (2.13) and modulus (2.16).
1Two graphs, one question
Figure 1 shows f(x)=x2−2x−3 and g(x)=x+1. Where is g(x)≥f(x)?
Figure 1 · Solving g(x) ≥ f(x) is reading where g is on top
Graphically
The graphs meet at (−1,0) and (4,5). The line is above the parabola between those x-values, below outside them.
The answer is a set of x-values, the amber bar on the x-axis: −1≤x≤4. Only the x-coordinates of the meeting points go into it. They are included because the inequality is ≥ and the graphs are equal there.
Analytically.
x+1≥x2−2x−30≥x2−3x−4bring everything to one side(x−4)(x+1)≤0−1≤x≤4a positive quadratic is ≤0 between its roots
The two methods are one thought: subtracting turns "g above f" into "g−f above the x-axis", easier to compare with than a second curve.
To solve g(x)≥f(x), solve h(x)=g(x)−f(x)≥0: find the zeros of h, then the sign of h between them.
Worked example 1 · reading a given picture. A sketch shows a cubic y=f(x) and a line y=g(x) crossing at x=−2, 1 and 5. The curve is above the line on the far left. Find all x with g(x)≥f(x).
Figure 2 · A cubic and a line that cross three times
In Figure 2, on the far left the curve is on top, so g<f. The order swaps at each crossing: line on top after −2, curve after 1, line after 5. With the meeting points included for the "or equal":
−2≤x≤1 or x≥5
2Cubic inequalities and the sign diagram
For polynomials up to degree 3 the guide asks for graphical or algebraic methods. Factorise first, using the factor theorem or the calculator's root finder on Paper 2. Then build a sign diagram.
Worked example 2. Solve x3−2x2−5x+6≤0.
Trial gives P(1)=1−2−5+6=0, so (x−1) is a factor. Dividing, x3−2x2−5x+6=(x−1)(x2−x−6)=(x−1)(x+2)(x−3).
The critical values −2, 1 and 3 cut the line into four intervals. On each, every factor keeps its sign, so the product does too:
Interval
x+2
x−1
x−3
Product
x<−2
−
−
−
−
−2<x<1
+
−
−
+
1<x<3
+
+
−
−
x>3
+
+
+
+
We want ≤0: the negative intervals plus the zeros, x≤−2 or 1≤x≤3. Figure 3 shows it as a graph with the sign row beneath.
Figure 3 · The sign of (x + 2)(x − 1)(x − 3), interval by interval
The quick way
With three single roots and a positive leading coefficient, the signs alternate. Start from + on the far right, because the cubic's right-hand end goes up. Reading leftwards the signs are +, −, +, −.
A negative leading coefficient flips the row. The shortcut is safe only if every root is single (section 3).
If the terms pair up around a common bracket, group them instead: x3−2x2+3x−6=x2(x−2)+3(x−2)=(x−2)(x2+3).
Here x2+3 is never zero, so 2 is the only critical value.
Worked example 3 · exact answer with surds. Solve x3−7x≥x2−3, leaving the critical values exact.
x3−x2−7x+3≥0P(3)=27−9−21+3=0,so(x−3)is a factor(x−3)(x2+2x−1)≥0x2+2x−1=0⇒x=−1±2
The quadratic formula gives the other two critical values. Order them by decimals: −1−2≈−2.41, then −1+2≈0.414, then 3.
All three roots are single and the leading coefficient is positive. So the signs from the right are +, −, +, −. We want ≥0:
−1−2≤x≤−1+2 or x≥3
Keep the surds unless the question asks for decimals.
3Repeated roots, excluded points and quadratics that never cross
A squared factor never changes sign. At a double root the graph touches the axis and turns back. The sign on the two sides is the same.
Worked example 4. Solve (x−1)2(x+3)>0.
(x−1)2 is positive except at x=1, where it is 0. So the product has the sign of (x+3) everywhere else. Strictly greater than zero excludes x=1:
x>−3,x=1
In Figure 4 the graph crosses the axis at −3 and touches it at 1. The value 0 there fails ">0", so the hollow circle marks the excluded point.
Had the question said ≥0, the answer would be x≥−3, with 1 included. A double root inside the answer leaves a hole only for a strict inequality.
Figure 4 · A squared factor touches without changing sign
Strict (<, >) and non-strict (≤, ≥) inequalities differ only at the critical values. Decide each end point separately:
A zero of the numerator is included for ≤ or ≥.
An asymptote (a zero of the denominator) is never included, because the function has no value there.
Worked example 5 · no real roots. Solve (a) x2+2x+5>0 and (b) (x−1)(x2+4)>0.
(a) The discriminant is 4−20=−16<0. So the upward parabola never meets the x-axis and lies above it: true for every real x. For the same reason x2+2x+5<0 has no solution.
(b) x2+4>0 for every x, so it cannot change the sign: x>1.
4Never divide by an expression that might be negative
Worked example 6 · the trap. Solve x3≥4x.
Dividing both sides by x gives x2≥4, so x≤−2 or x≥2. That is wrong. It keeps every x<−2 (try x=−3: −27≥−12 is false) and throws away −2<x≤0.
Dividing by x keeps the sign only when x>0. For x<0 it reverses the sign, and x=0 cannot be divided by at all. Keep everything as factors:
x3−4x≥0x(x−2)(x+2)≥0critical values: −2,0,2signs from the right: +,−,+,−x(x−2)(x+2)≥0when−2≤x≤0orx≥2
Figure 5 shows the piece the division lost: between −2 and 0, x3 is above 4x as well.
Figure 5 · Why you must not divide x³ ≥ 4x by x
Multiplying by an expression of unknown sign is the same mistake. Squaring both sides is safe only when both are known to be non-negative.
5Rational inequalities
A simple rational inequality is quick on Paper 1 if you do not multiply by the denominator. Bring everything to one side as a single fraction. Then sign the top and bottom together.
Worked example 7. Solve x−2x+1≥3.
x−2x+1−3≥0x−2x+1−3(x−2)≥0one fraction over the common denominatorx−27−2x≥0critical values: x=3.5(top is zero),x=2(bottom is zero)
Interval
7−2x
x−2
Fraction
x<2
+
−
−
2<x<3.5
+
+
+
x>3.5
−
+
−
The fraction is positive on 2<x<3.5 and 0 at 3.5. At 2 it is undefined, so 2 is excluded: 2<x≤3.5.
Figure 6: the curve is on or above y=3 only between the asymptote and the meeting point.
Figure 6 · x + 1 ÷ x − 2 ≥ 3
Multiplying both sides by (x−2) would give x+1≥3x−6, so x≤3.5. That is all wrong: it includes every x below 2.
A safe alternative is to multiply by (x−2)2, positive for every x=2, and factorise. It reaches the same answer (with x=2 stated) after more algebra.
Worked example 8 · when the fraction comes from comparing two functions. Solve x>x+15.
Critical values in order: 2−1−21≈−2.79, then −1, then 2−1+21≈1.79.
All three are single and the far right is +. So the signs from the right are +, −, +, −. We want +:
2−1−21<x<−1 or x>2−1+21
Worked example 9 · a double inequality. Solve −1≤x−13x+2<5.
A double inequality is two inequalities that must both hold. The answer is where their solution sets overlap. Solve each part on its own.
Left part: x−13x+2+1≥0⇒x−14x+1≥0⇒x≤−41orx>1Right part: x−13x+2−5<0⇒x−17−2x<0⇒x−12x−7>0⇒x<1orx>3.5
Put both sets on one line. For x≤−41 both hold. For −41<x<1 the left part fails. For 1<x≤3.5 the right part fails. For x>3.5 both hold.
The answer is x≤−41 or x>3.5. (In the right part, multiplying the top by −1 turned < into >.)
Worked example 10 · "hence" from a sketch. Given f(x)=x−32x, sketch f, and hence solve f(x)≤1.
Write f(x)=2+x−36. The asymptotes are x=3 and y=2, and the curve goes through the origin.
Left of the asymptote the curve lies below y=2. It falls through (0,0) to −∞ as x→3−. Right of it the curve lies above y=2.
The line y=1 meets it only where 2x=x−3, at x=−3. So the left branch is at most 1 from x=−3 up to the asymptote, and the right branch never is: −3≤x<3.
The algebra agrees: x−3x+3≤0. When the question says Hence, use the sketch.
6With technology
For anything that will not factorise, Paper 2 expects the calculator: exponentials, logarithms, trigonometric functions, a polynomial with awkward roots. Most of this subtopic's marks are here.
The method is the graphical method of section 2.
Worked example 11. Solve ex≥x+2.
Graph y=ex and y=x+2 in a window that shows every meeting point (or graph y=ex−x−2 and find its zeros).
Use the intersect tool at each meeting point: x=−1.84 and x=1.15 (3 s.f.).
Read the order of the graphs on each piece. Figure 7 shows ex on top to the left of −1.84 and to the right of 1.15.
Write the set: x≤−1.84 or x≥1.15.
Figure 7 · eˣ ≥ x + 2, solved with a GDC
Before writing the answer, zoom out for more meeting points (a quartic can cross a line four times). Look for points where either function is undefined. Test one point per piece.
Worked example 12 · with an asymptote. Solve x−14≤x−2.
Graph both. The intersect tool gives x=−0.562 and x=3.56 (3 s.f.), the roots of x2−3x−2=0. The curve has a vertical asymptote at x=1.
These three values cut the line into four pieces. A test point in each shows which graph is on top. We want the curve on or below the line:
Piece
Test x
Curve
Line
Curve at most line?
x<−0.562
−2
−1.33
−4
no
−0.562<x<1
0
−4
−2
yes
1<x<3.56
2
4
0
no
x>3.56
4
1.33
2
yes
The answer is
−0.562≤x<1 or x≥3.56
with the meeting points included (non-strict) and 1 excluded (no value there). The answer breaks at the asymptote even though the graphs do not meet there.
Sketch questions want both graphs on one set of axes, meeting points labelled, then a part that uses them.
Example: ln(x+3)>x2−1. The logarithm exists only for x>−3, with an asymptote there. The intersect tool gives (−1.25,0.560) and (1.59,1.52). Between them the logarithm is on top: −1.25<x<1.59.
Worked example 13 · a quadratic in disguise. Some logarithm or exponential inequalities are quadratics in lnx or ex. Algebra solves them.
(a) Solve (lnx)2+lnx−2≤0. Let u=lnx:
u2+u−2≤0(u+2)(u−1)≤0−2≤u≤1−2≤lnx≤1e−2≤x≤ethe exponential is increasing, so each sign keeps its direction
So e−2≤x≤e, about 0.135≤x≤2.72.
Solve for u first, then undo the substitution. The answer lies inside the domain x>0 of lnx.
Because ex>0, any part of a u-answer at or below 0 gives no x. Here 0<u≤2 gives x≤ln2.
7Inequalities with a parameter, and "show that"
The same sign thinking solves questions where the letter is not x.
Worked example 14. Find the values of k for which x2+(k−2)x+4=0 has two distinct real roots.
Two distinct real roots need a positive discriminant: (k−2)2−16>0, that is k2−4k−12>0, or (k−6)(k+2)>0.
A positive quadratic in k is positive outside its roots: k<−2 or k>6. A repeated root needs k=−2 or k=6; no real roots, −2<k<6.
Show that
To prove x2−4x+7>0 for all real x, complete the square: (x−2)2+3≥3>0, because a square is never negative. Write that reason down: it is the proof.
The same move shows x2+2x+5=(x+1)2+4>0 in worked example 5.
8Writing the answer
Use "or" between separate pieces: x≤−2 or 1≤x≤3. Writing "x≤−2 and 1≤x≤3" describes no numbers at all.
A compound inequality such as −1≤x≤4 is one piece. Never write 4≤x≤−1 or −2≥x≥3.
Interval notation is equally acceptable: [−1,4], or ]−∞,−2]∪[1,3]. Turn the brackets outwards (or use round ones) at excluded ends, as the IB writes them.
State excluded single points: x>−3,x=1.
Cut the answer to any stated domain (a length, a graph drawn only for 0<x≤9). For example x2−x−12<0 gives −3<x<4, but for a side length x the answer is 0<x<4.
On Paper 2, give critical values to 3 s.f. and keep the inequality signs from the question.
Practice questions
6 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.
Practice · 2.15 Solutions of g(x) ≥ f(x), graphically and analytically