The functions f and g are defined below. f(x)={22−xfor 0≤x<2,ln⁡(x−2)for 2<x≤4.f(x)=\begin{cases} \dfrac{2}{2-x} & \text{for } 0\le x<2, \\ \ln(x-2) & \text{for } 2<x\le 4. \end{cases} g(x)=−2x2+x+1for 0≤x<1.g(x) = -2x^{2} + x + 1 \quad \text{for } 0\le x<1.

  1. (i)

    Sketch the graph of y=f(x)y = f(x).

  2. (ii)

    State the range of gg and show that the composite function fgfg exist.

  3. (iii)

    Find the range of the composite function fgfg.

Work through it with AI →

It won't just hand you the answer — it asks where you're stuck.How the checker works

Worked solution

3(i)

1. Determine the endpoints and intercepts for both parts of the piecewise function.

For 0≤x<20 \le x < 2, f(x)=22−xf(x) = \dfrac{2}{2-x}.
When x=0x = 0, y=22=1y = \dfrac{2}{2} = 1. The starting endpoint is (0,1)(0, 1) (inclusive).

For 2<x≤42 < x \le 4, f(x)=ln⁡(x−2)f(x) = \ln(x-2).
Let y=0  ⟹  ln⁡(x−2)=0  ⟹  x−2=1  ⟹  x=3y = 0 \implies \ln(x-2) = 0 \implies x - 2 = 1 \implies x = 3. The xx-intercept is (3,0)(3, 0).
When x=4x = 4, y=ln⁡(4−2)=ln⁡2y = \ln(4-2) = \ln 2. The terminating endpoint is (4,ln⁡2)(4, \ln 2) (inclusive).

2. Identify the behavior near the common boundary $x = 2$ to find asymptotes.

As x→2−x \to 2^-, (2−x)→0+(2-x) \to 0^+, so f(x)=22−x→∞f(x) = \dfrac{2}{2-x} \to \infty.
As x→2+x \to 2^+, (x−2)→0+(x-2) \to 0^+, so f(x)=ln⁡(x−2)→−∞f(x) = \ln(x-2) \to -\infty.
Thus, the line x=2x = 2 is a vertical asymptote for both branches.

3. Combine the analysis into a single sketch.

  • Draw the axes and label the vertical asymptote x=2x = 2.
  • For the domain 0≤x<20 \le x < 2, draw a curve from the solid dot (0,1)(0, 1) going upwards towards the asymptote.
  • For the domain 2<x≤42 < x \le 4, draw a curve coming up from alongside the vertical asymptote, passing through (3,0)(3, 0), and finishing at the solid dot (4,ln⁡2)(4, \ln 2).
Answer

A sketched graph containing:

  • A vertical asymptote at x=2x = 2.
  • A left curve starting from a solid dot at (0,1)(0, 1) and curving upwards towards +∞+\infty as x→2−x \to 2^-.
  • A right logarithmic curve emerging from −∞-\infty as x→2+x \to 2^+, crossing the xx-axis at (3,0)(3, 0), and ending with a solid dot at (4,ln⁡2)(4, \ln 2).

3(ii)

1. Find the range of $g$ by finding its turning point and checking the domain endpoints.

To find the turning point of g(x)=−2x2+x+1g(x) = -2x^2 + x + 1, we can complete the square or differentiate:
g′(x)=−4x+1g'(x) = -4x + 1
Setting g′(x)=0g'(x) = 0 gives x=14x = \frac{1}{4}. Since the coefficient of x2x^2 is −2-2 (which is negative), this is a maximum point.
The maximum value is:
g(14)=−2(14)2+14+1=98g\left(\frac{1}{4}\right) = -2\left(\frac{1}{4}\right)^2 + \frac{1}{4} + 1 = \frac{9}{8}
Next, evaluate g(x)g(x) at the boundaries of its domain 0≤x<10 \le x < 1:
g(0)=−2(0)2+0+1=1g(0) = -2(0)^2 + 0 + 1 = 1
As x→1x \to 1, g(x)→−2(1)2+1+1=0g(x) \to -2(1)^2 + 1 + 1 = 0.
Since the domain is strictly x<1x < 1, the minimum is strictly greater than 00.
Therefore, the range of gg is 0<g(x)≤980 < g(x) \le \frac{9}{8}, or Rg=(0,98]\mathrm{R}_g = (0, \frac{9}{8}].

2. Show that the range of $g$ is a subset of the domain of $f$.

From the definition of ff, its domain Df\mathrm{D}_f is 0≤x<20 \le x < 2 and 2<x≤42 < x \le 4, meaning Df=[0,2)∪(2,4]\mathrm{D}_f = [0, 2) \cup (2, 4].
For the composite function fgfg to exist, we require the range of the inner function gg to be a subset of the domain of the outer function ff, i.e. Rg⊆Df\mathrm{R}_g \subseteq \mathrm{D}_f.
We have Rg=(0,98]\mathrm{R}_g = (0, \frac{9}{8}].
Since (0,98]⊆[0,2)∪(2,4](0, \frac{9}{8}] \subseteq [0, 2) \cup (2, 4], the condition Rg⊆Df\mathrm{R}_g \subseteq \mathrm{D}_f is satisfied.
Hence, the composite function fgfg exists.

Answer

Range of gg is 0<g(x)≤980 < g(x) \le \frac{9}{8} (or (0,98](0, \frac{9}{8}]).

3(iii)

1. Identify the range of $g$ from part (ii) and select the appropriate definition of $f(x)$.

From part (ii), the range of gg is Rg=(0,98]R_g = (0, \frac{9}{8}].
Since (0,98]⊂[0,2)(0, \frac{9}{8}] \subset [0, 2), the relevant piece of ff to apply is f(x)=22−xf(x) = \frac{2}{2-x}.

2. Find the range of $f$ over the interval $(0, \frac{9}{8}]$.

The function y=22−xy = \frac{2}{2-x} is strictly increasing for x<2x < 2.
Evaluate f(x)f(x) at the boundaries of the interval (0,98](0, \frac{9}{8}]:
As x→0+x \to 0^+, f(x)→22−0=1f(x) \to \frac{2}{2-0} = 1.
At x=98x = \frac{9}{8}, f(98)=22−98=278=167f\left(\frac{9}{8}\right) = \frac{2}{2-\frac{9}{8}} = \frac{2}{\frac{7}{8}} = \frac{16}{7}.
Therefore, the range of fgfg is (1,167](1, \frac{16}{7}].

Answer

(1,167](1, \frac{16}{7}]

AI analysis — may contain mistakes.

Worked this one out on paper? Snap your steps and Gigle's AI math checker will circle the step where it went wrong.

More questions on this topic

  1. 1The curve CC has equation y=x2+x+3x−2y = \frac{x^2 + x + 3}{x - 2}. Without using a calculator, find the set of values that yy…
  2. 2The functions ff and gg are defined by f:x↦16−4x,  x∈R,  x≤4,f : x \mapsto \sqrt{16 - 4x},\; x \in \mathbb{R},\; x \le 4, g:x↦x2,  x∈R.g : x \mapsto x^{2},\; x \in \mathbb{R}.…
  3. 3By expressing the equation of the curve y=12x+112x+1y = \frac{12x + 11}{2x + 1} in the form y=A+B2x+1y = A + \frac{B}{2x + 1}, where AA…
  4. 45 (a) Solve the following integral. ∫1−2x3+2x−x2 dx.\displaystyle\int \frac{1-2x}{\sqrt{3+2x-x^2}}\,\mathrm{d}x. ∫xln⁡(2−x2) dx\displaystyle\int x\ln\left(2-x^2\right)\,\mathrm{d}x…
  5. 5A curve C1C_1 has the equation p2x2−y2=p2p^2x^2 - y^2 = p^2 where p>1p > 1. Sketch C1C_1, stating the coordinates of any points o…