Educerie

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 xx is one function at least as big as another, and how do you find every such xx, 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

  1. HL Solve an inequality between two functions on the GDC, giving end points to 3 significant figures.
  2. HL Solve a cubic inequality by factorising and drawing a sign diagram.
  3. HL Solve a rational inequality by writing it as a single fraction, excluding any asymptote.
  4. HL Sketch two graphs and hence read off the solution of an inequality.
  5. HL State a solution set correctly, joining separate intervals with "or".
  6. 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 xx for which f(x)<g(x)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 xx). 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−3f(x) = x^{2} - 2x - 3 and g(x)=x+1g(x) = x + 1. Where is g(x)≥f(x)g(x) \ge f(x)?

Figure 1 · Solving g(x) ≥ f(x) is reading where g is on top x y −2 2 6 −4 4 8 (−1, 0) (4, 5) y = f(x) y = g(x) g ≥ f here f(x) = x² − 2x − 3 and g(x) = x + 1 meet at x = −1 and x = 4. Between them g is on top: −1 ≤ x ≤ 4.
Figure 1 · Solving g(x) ≥ f(x) is reading where g is on top

Graphically

  • The graphs meet at (−1,0)(-1, 0) and (4,5)(4, 5). The line is above the parabola between those xx-values, below outside them.
  • The answer is a set of xx-values, the amber bar on the xx-axis: −1≤x≤4-1 \le x \le 4. Only the xx-coordinates of the meeting points go into it. They are included because the inequality is ≥\ge and the graphs are equal there.

Analytically.

x+1≥x2−2x−3x + 1 \ge x^{2} - 2x - 30≥x2−3x−4bring everything to one side0 \ge x^{2} - 3x - 4 \qquad \textcolor{#838c91}{\text{bring everything to one side}}(x−4)(x+1)≤0(x - 4)(x + 1) \le 0−1≤x≤4a positive quadratic is ≤0 between its roots-1 \le x \le 4 \qquad \textcolor{#838c91}{\text{a positive quadratic is }\le 0\text{ between its roots}}

The two methods are one thought: subtracting turns "gg above ff" into "g−fg - f above the xx-axis", easier to compare with than a second curve.

To solve g(x)≥f(x)g(x) \ge f(x), solve h(x)=g(x)−f(x)≥0h(x) = g(x) - f(x) \ge 0: find the zeros of hh, then the sign of hh between them.

Worked example 1 · reading a given picture. A sketch shows a cubic y=f(x)y = f(x) and a line y=g(x)y = g(x) crossing at x=−2x = -2, 1 and 5. The curve is above the line on the far left. Find all xx with g(x)≥f(x)g(x) \ge f(x).

Figure 2 · A cubic and a line that cross three times x y 4 6 2 −2 1 5 y = f(x) y = g(x) Curve on top on the far left; the order swaps at each crossing. g ≥ f: −2 ≤ x ≤ 1 or x ≥ 5.
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<fg < f. The order swaps at each crossing: line on top after −2-2, curve after 1, line after 5. With the meeting points included for the "or equal":

−2≤x≤1-2 \le x \le 1 or x≥5x \ge 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≤0x^{3} - 2x^{2} - 5x + 6 \le 0.

Trial gives P(1)=1−2−5+6=0P(1) = 1 - 2 - 5 + 6 = 0, so (x−1)(x - 1) is a factor. Dividing, x3−2x2−5x+6=(x−1)(x2−x−6)=(x−1)(x+2)(x−3)x^{3} - 2x^{2} - 5x + 6 = (x - 1)(x^{2} - x - 6) = (x - 1)(x + 2)(x - 3).

The critical values −2-2, 1 and 3 cut the line into four intervals. On each, every factor keeps its sign, so the product does too:

Intervalx+2x + 2x−1x - 1x−3x - 3Product
x<−2x < -2−-−-−-−-
−2<x<1-2 < x < 1++−-−-++
1<x<31 < x < 3++++−-−-
x>3x > 3++++++++

We want ≤0\le 0: the negative intervals plus the zeros, x≤−2x \le -2 or 1≤x≤31 \le x \le 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 x y −10 10 −2 1 3 − + − + 0 0 0 sign The sign can change only at the roots. Below the axis: x ≤ −2 or 1 ≤ x ≤ 3.
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)x^{3} - 2x^{2} + 3x - 6 = x^{2}(x - 2) + 3(x - 2) = (x - 2)(x^{2} + 3).
    • Here x2+3x^{2} + 3 is never zero, so 2 is the only critical value.

Worked example 3 · exact answer with surds. Solve x3−7x≥x2−3x^{3} - 7x \ge x^{2} - 3, leaving the critical values exact.

x3−x2−7x+3≥0x^{3} - x^{2} - 7x + 3 \ge 0P(3)=27−9−21+3=0, so (x−3) is a factorP(3) = 27 - 9 - 21 + 3 = 0, \ \text{so}\ (x - 3)\ \text{is a factor}(x−3)(x2+2x−1)≥0(x - 3)(x^{2} + 2x - 1) \ge 0x2+2x−1=0 ⇒ x=−1±2x^{2} + 2x - 1 = 0 \ \Rightarrow\ x = -1 \pm \sqrt{2}

The quadratic formula gives the other two critical values. Order them by decimals: −1−2≈−2.41-1 - \sqrt{2} \approx -2.41, then −1+2≈0.414-1 + \sqrt{2} \approx 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\ge 0:

−1−2≤x≤−1+2-1 - \sqrt{2} \le x \le -1 + \sqrt{2} or x≥3x \ge 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}(x + 3) > 0.

(x−1)2(x - 1)^{2} is positive except at x=1x = 1, where it is 0. So the product has the sign of (x+3)(x + 3) everywhere else. Strictly greater than zero excludes x=1x = 1:

x>−3,x≠1x > -3, x \ne 1

In Figure 4 the graph crosses the axis at −3-3 and touches it at 1. The value 0 there fails ">0> 0", so the hollow circle marks the excluded point.

Had the question said ≥0\ge 0, the answer would be x≥−3x \ge -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 x y −1 1 2 3 10 −3 touches at x = 1 crosses at x = −3 (x − 1)²(x + 3) > 0 for x > −3, except at x = 1, where it is 0: x > −3, x ≠ 1.
Figure 4 · A squared factor touches without changing sign

Strict (<<, >>) and non-strict (≤\le, ≥\ge) inequalities differ only at the critical values. Decide each end point separately:

  • A zero of the numerator is included for ≤\le or ≥\ge.
  • 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>0x^{2} + 2x + 5 > 0 and (b) (x−1)(x2+4)>0(x - 1)(x^{2} + 4) > 0.

(a) The discriminant is 4−20=−16<04 - 20 = -16 < 0. So the upward parabola never meets the xx-axis and lies above it: true for every real xx. For the same reason x2+2x+5<0x^{2} + 2x + 5 < 0 has no solution.

(b) x2+4>0x^{2} + 4 > 0 for every xx, so it cannot change the sign: x>1x > 1.

4Never divide by an expression that might be negative

Worked example 6 · the trap. Solve x3≥4xx^{3} \ge 4x.

Dividing both sides by xx gives x2≥4x^{2} \ge 4, so x≤−2x \le -2 or x≥2x \ge 2. That is wrong. It keeps every x<−2x < -2 (try x=−3x = -3: −27≥−12-27 \ge -12 is false) and throws away −2<x≤0-2 < x \le 0.

Dividing by xx keeps the sign only when x>0x > 0. For x<0x < 0 it reverses the sign, and x=0x = 0 cannot be divided by at all. Keep everything as factors:

x3−4x≥0x^{3} - 4x \ge 0x(x−2)(x+2)≥0x(x - 2)(x + 2) \ge 0critical values:  −2, 0, 2\text{critical values: } \ -2, \ 0, \ 2signs from the right:  +, −, +, −\text{signs from the right: } \ +, \ -, \ +, \ -x(x−2)(x+2)≥0  when  −2≤x≤0  or  x≥2x(x - 2)(x + 2) \ge 0 \ \ \text{when}\ \ -2 \le x \le 0 \ \ \text{or}\ \ x \ge 2

Figure 5 shows the piece the division lost: between −2-2 and 0, x3x^{3} is above 4x4x as well.

Figure 5 · Why you must not divide x³ ≥ 4x by x x y 1 2 −8 8 −2 −1 (−2, −8) (2, 8) y = x³ y = 4x x³ is on top for −2 ≤ x ≤ 0 as well as for x ≥ 2. Dividing by x loses the first piece.
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+1x−2≥3\dfrac{x + 1}{x - 2} \ge 3.

x+1x−2−3≥0\frac{x + 1}{x - 2} - 3 \ge 0x+1−3(x−2)x−2≥0one fraction over the common denominator\frac{x + 1 - 3(x - 2)}{x - 2} \ge 0 \qquad \textcolor{#838c91}{\text{one fraction over the common denominator}}7−2xx−2≥0\frac{7 - 2x}{x - 2} \ge 0critical values:  x=3.5 (top is zero), x=2 (bottom is zero)\text{critical values: } \ x = 3.5 \ \text{(top is zero)}, \ x = 2 \ \text{(bottom is zero)}
Interval7−2x7 - 2xx−2x - 2Fraction
x<2x < 2++−-−-
2<x<3.52 < x < 3.5++++++
x>3.5x > 3.5−-++−-

The fraction is positive on 2<x<3.52 < x < 3.5 and 0 at 3.5. At 2 it is undefined, so 2 is excluded: 2<x≤3.52 < x \le 3.5.

Figure 6: the curve is on or above y=3y = 3 only between the asymptote and the meeting point.

Figure 6 · (x + 1)/(x − 2) ≥ 3 x y −1 3.5 6 6 2 (3.5, 3) x = 2 y = 1 y = 3 The curve is on or above y = 3 only between the asymptote x = 2 and the meeting point x = 3.5.
Figure 6 · x + 1 ÷ x − 2 ≥ 3

Multiplying both sides by (x−2)(x - 2) would give x+1≥3x−6x + 1 \ge 3x - 6, so x≤3.5x \le 3.5. That is all wrong: it includes every xx below 2.

A safe alternative is to multiply by (x−2)2(x - 2)^{2}, positive for every x≠2x \ne 2, and factorise. It reaches the same answer (with x≠2x \ne 2 stated) after more algebra.

Worked example 8 · when the fraction comes from comparing two functions. Solve x>5x+1x > \dfrac{5}{x + 1}.

x−5x+1>0x - \frac{5}{x + 1} > 0x(x+1)−5x+1>0\frac{x(x + 1) - 5}{x + 1} > 0x2+x−5x+1>0\frac{x^{2} + x - 5}{x + 1} > 0x2+x−5=0 ⇒ x=−1±212x^{2} + x - 5 = 0 \ \Rightarrow\ x = \frac{-1 \pm \sqrt{21}}{2}

Critical values in order: −1−212≈−2.79\frac{-1 - \sqrt{21}}{2} \approx -2.79, then −1-1, then −1+212≈1.79\frac{-1 + \sqrt{21}}{2} \approx 1.79.

All three are single and the far right is ++. So the signs from the right are ++, −-, ++, −-. We want ++:

−1−212<x<−1\dfrac{-1 - \sqrt{21}}{2} < x < -1 or x>−1+212x > \dfrac{-1 + \sqrt{21}}{2}

Worked example 9 · a double inequality. Solve −1≤3x+2x−1<5-1 \le \dfrac{3x + 2}{x - 1} < 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:  3x+2x−1+1≥0 ⇒ 4x+1x−1≥0 ⇒ x≤−14 or x>1\text{Left part: } \ \frac{3x + 2}{x - 1} + 1 \ge 0 \ \Rightarrow\ \frac{4x + 1}{x - 1} \ge 0 \ \Rightarrow\ x \le -\tfrac{1}{4} \ \text{or}\ x > 1Right part:  3x+2x−1−5<0 ⇒ 7−2xx−1<0 ⇒ 2x−7x−1>0 ⇒ x<1 or x>3.5\text{Right part: } \ \frac{3x + 2}{x - 1} - 5 < 0 \ \Rightarrow\ \frac{7 - 2x}{x - 1} < 0 \ \Rightarrow\ \frac{2x - 7}{x - 1} > 0 \ \Rightarrow\ x < 1 \ \text{or}\ x > 3.5

Put both sets on one line. For x≤−14x \le -\tfrac14 both hold. For −14<x<1-\tfrac14 < x < 1 the left part fails. For 1<x≤3.51 < x \le 3.5 the right part fails. For x>3.5x > 3.5 both hold.

The answer is x≤−14x \le -\tfrac14 or x>3.5x > 3.5. (In the right part, multiplying the top by −1-1 turned << into >>.)

Worked example 10 · "hence" from a sketch. Given f(x)=2xx−3f(x) = \dfrac{2x}{x - 3}, sketch ff, and hence solve f(x)≤1f(x) \le 1.

Write f(x)=2+6x−3f(x) = 2 + \dfrac{6}{x - 3}. The asymptotes are x=3x = 3 and y=2y = 2, and the curve goes through the origin.

Left of the asymptote the curve lies below y=2y = 2. It falls through (0,0)(0, 0) to −∞-\infty as x→3−x \to 3^{-}. Right of it the curve lies above y=2y = 2.

The line y=1y = 1 meets it only where 2x=x−32x = x - 3, at x=−3x = -3. So the left branch is at most 1 from x=−3x = -3 up to the asymptote, and the right branch never is: −3≤x<3-3 \le x < 3.

The algebra agrees: x+3x−3≤0\frac{x + 3}{x - 3} \le 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+2e^{x} \ge x + 2.

  1. Graph y=exy = e^{x} and y=x+2y = x + 2 in a window that shows every meeting point (or graph y=ex−x−2y = e^{x} - x - 2 and find its zeros).
  2. Use the intersect tool at each meeting point: x=−1.84x = -1.84 and x=1.15x = 1.15 (3 s.f.).
  3. Read the order of the graphs on each piece. Figure 7 shows exe^{x} on top to the left of −1.84-1.84 and to the right of 1.15.
  4. Write the set: x≤−1.84x \le -1.84 or x≥1.15x \ge 1.15.
Figure 7 · eˣ ≥ x + 2, solved with a GDC x y −3 −1 1 2 4 6 2 (−1.84, 0.159) (1.15, 3.15) y = eˣ y = x + 2 The graphs meet at x = −1.84 and x = 1.15. eˣ is on top outside them: 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 4x−1≤x−2\dfrac{4}{x - 1} \le x - 2.

Graph both. The intersect tool gives x=−0.562x = -0.562 and x=3.56x = 3.56 (3 s.f.), the roots of x2−3x−2=0x^{2} - 3x - 2 = 0. The curve has a vertical asymptote at x=1x = 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:

PieceTest xxCurveLineCurve at most line?
x<−0.562x < -0.562−2-2−1.33-1.33−4-4no
−0.562<x<1-0.562 < x < 100−4-4−2-2yes
1<x<3.561 < x < 3.56224400no
x>3.56x > 3.56441.331.3322yes

The answer is

−0.562≤x<1-0.562 \le x < 1 or x≥3.56x \ge 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\ln(x + 3) > x^{2} - 1. The logarithm exists only for x>−3x > -3, with an asymptote there. The intersect tool gives (−1.25,0.560)(-1.25, 0.560) and (1.59,1.52)(1.59, 1.52). Between them the logarithm is on top: −1.25<x<1.59-1.25 < x < 1.59.

Worked example 13 · a quadratic in disguise. Some logarithm or exponential inequalities are quadratics in ln⁡x\ln x or exe^{x}. Algebra solves them.

(a) Solve (ln⁡x)2+ln⁡x−2≤0(\ln x)^{2} + \ln x - 2 \le 0. Let u=ln⁡xu = \ln x:

u2+u−2≤0u^{2} + u - 2 \le 0(u+2)(u−1)≤0(u + 2)(u - 1) \le 0−2≤u≤1-2 \le u \le 1−2≤ln⁡x≤1-2 \le \ln x \le 1e−2≤x≤ethe exponential is increasing, so each sign keeps its directione^{-2} \le x \le e \qquad \textcolor{#838c91}{\text{the exponential is increasing, so each sign keeps its direction}}

So e−2≤x≤ee^{-2} \le x \le e, about 0.135≤x≤2.720.135 \le x \le 2.72.

Solve for uu first, then undo the substitution. The answer lies inside the domain x>0x > 0 of ln⁡x\ln x.

(b) Solve e2x−5ex+6≥0e^{2x} - 5e^{x} + 6 \ge 0. Let u=exu = e^{x}, so u>0u > 0:

u2−5u+6≥0u^{2} - 5u + 6 \ge 0(u−2)(u−3)≥0(u - 2)(u - 3) \ge 0u≤2  or  u≥3u \le 2 \ \ \text{or}\ \ u \ge 30<ex≤2  or  ex≥30 < e^{x} \le 2 \ \ \text{or}\ \ e^{x} \ge 3x≤ln⁡2  or  x≥ln⁡3x \le \ln 2 \ \ \text{or}\ \ x \ge \ln 3

Because ex>0e^{x} > 0, any part of a uu-answer at or below 0 gives no xx. Here 0<u≤20 < u \le 2 gives x≤ln⁡2x \le \ln 2.

7Inequalities with a parameter, and "show that"

The same sign thinking solves questions where the letter is not xx.

Worked example 14. Find the values of kk for which x2+(k−2)x+4=0x^{2} + (k - 2)x + 4 = 0 has two distinct real roots.

Two distinct real roots need a positive discriminant: (k−2)2−16>0(k - 2)^{2} - 16 > 0, that is k2−4k−12>0k^{2} - 4k - 12 > 0, or (k−6)(k+2)>0(k - 6)(k + 2) > 0.

A positive quadratic in kk is positive outside its roots: k<−2k < -2 or k>6k > 6. A repeated root needs k=−2k = -2 or k=6k = 6; no real roots, −2<k<6-2 < k < 6.

Show that

  • To prove x2−4x+7>0x^{2} - 4x + 7 > 0 for all real xx, complete the square: (x−2)2+3≥3>0(x - 2)^{2} + 3 \ge 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>0x^{2} + 2x + 5 = (x + 1)^{2} + 4 > 0 in worked example 5.

8Writing the answer

  • Use "or" between separate pieces: x≤−2x \le -2 or 1≤x≤31 \le x \le 3. Writing "x≤−2x \le -2 and 1≤x≤31 \le x \le 3" describes no numbers at all.
  • A compound inequality such as −1≤x≤4-1 \le x \le 4 is one piece. Never write 4≤x≤−14 \le x \le -1 or −2≥x≥3-2 \ge x \ge 3.
  • Interval notation is equally acceptable: [−1,4][-1, 4], or ]−∞,−2]∪[1,3]\left]-\infty, -2\right] \cup [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≠1x > -3, x \ne 1.
  • Cut the answer to any stated domain (a length, a graph drawn only for 0<x≤90 < x \le 9). For example x2−x−12<0x^{2} - x - 12 < 0 gives −3<x<4-3 < x < 4, but for a side length xx the answer is 0<x<40 < 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.