Skip to main content

Functions and Equations — Diagnostic Tests

Unit Tests

Tests edge cases, boundary conditions, and common misconceptions for functions and equations.

UT-1: Domain of Composite Functions with Restrictions

Question:

Given f(x)=x3f(x) = \sqrt{x - 3} and g(x)=1x1g(x) = \dfrac{1}{x - 1}:

(a) Find the domain of fgf \circ g.

(b) Find the domain of gfg \circ f.

(c) A student claims that dom(fg)=dom(g)\mathrm{dom}(f \circ g) = \mathrm{dom}(g). Explain why this is incorrect.

[Difficulty: hard. Tests the subtle but critical rule that the domain of fgf \circ g excludes values where g(x)g(x) falls outside the domain of ff.]

Solution:

(a) (fg)(x)=f(g(x))=1x13=13(x1)x1=43xx1(f \circ g)(x) = f(g(x)) = \sqrt{\frac{1}{x-1} - 3} = \sqrt{\frac{1 - 3(x-1)}{x-1}} = \sqrt{\frac{4 - 3x}{x-1}}.

Domain restrictions:

  1. From gg: x1x \neq 1 (denominator of gg).
  2. From ff: the argument of the square root must be non-negative: 43xx10\dfrac{4 - 3x}{x - 1} \geq 0.

Solve 43xx10\dfrac{4 - 3x}{x - 1} \geq 0:

Critical values: x=43x = \frac{4}{3} (numerator zero) and x=1x = 1 (denominator zero).

Sign chart:

  • x<1x \lt 1: numerator 43x>04 - 3x \gt 0, denominator x1<0x - 1 \lt 0. Ratio <0\lt 0. Not valid.
  • 1<x431 \lt x \leq \frac{4}{3}: numerator 0\geq 0, denominator >0\gt 0. Ratio 0\geq 0. Valid.
  • x>43x \gt \frac{4}{3}: numerator <0\lt 0, denominator >0\gt 0. Ratio <0\lt 0. Not valid.

Domain of fgf \circ g: (1,43]\left(1, \frac{4}{3}\right].

(b) (gf)(x)=g(f(x))=1x31(g \circ f)(x) = g(f(x)) = \dfrac{1}{\sqrt{x-3} - 1}.

Domain restrictions:

  1. From ff: x30x - 3 \geq 0, so x3x \geq 3.
  2. From gg: x31\sqrt{x-3} \neq 1, so x31x - 3 \neq 1, giving x4x \neq 4.

Domain of gfg \circ f: [3,4)(4,)[3, 4) \cup (4, \infty).

(c) The student is incorrect. dom(fg)\mathrm{dom}(f \circ g) is not dom(g)\mathrm{dom}(g). It is the subset of dom(g)\mathrm{dom}(g) for which g(x)g(x) falls within dom(f)\mathrm{dom}(f). Here dom(g)={R}{1}\mathrm{dom}(g) = \mathbb{'\{'}R{'\}'} \setminus \{1\}, but dom(fg)=(1,43]\mathrm{dom}(f \circ g) = \left(1, \frac{4}{3}\right], which is a proper subset.


UT-2: Inverse Function Notation Confusion

Question:

Let f(x)=2x+3x1f(x) = \dfrac{2x + 3}{x - 1} for x1x \neq 1.

(a) Find f1(x)f^{-1}(x) and state its domain.

(b) A student writes f1(x)=x12x+3f^{-1}(x) = \dfrac{x - 1}{2x + 3}. Identify the error.

(c) Verify that f(f1(x))=xf(f^{-1}(x)) = x for all xx in the domain of f1f^{-1}.

[Difficulty: hard. Tests the common misconception that f1f^{-1} means reciprocal.]

Solution:

(a) Let y=2x+3x1y = \dfrac{2x + 3}{x - 1}.

y(x1)=2x+3    xyy=2x+3    xy2x=y+3    x(y2)=y+3y(x - 1) = 2x + 3 \implies xy - y = 2x + 3 \implies xy - 2x = y + 3 \implies x(y - 2) = y + 3

f1(x)=x+3x2,x2f^{-1}(x) = \frac{x + 3}{x - 2}, \quad x \neq 2

The domain of f1f^{-1} equals the range of ff. Since f(x)=2x+3x1=2+5x1f(x) = \dfrac{2x + 3}{x - 1} = 2 + \dfrac{5}{x - 1}, as x±x \to \pm\infty, f(x)2f(x) \to 2, but f(x)2f(x) \neq 2. The horizontal asymptote at y=2y = 2 is never reached. Domain: {R}{2}\mathbb{'\{'}R{'\}'} \setminus \{2\}.

(b) The student computed 1f(x)=x12x+3\dfrac{1}{f(x)} = \dfrac{x - 1}{2x + 3}, confusing the inverse function f1f^{-1} with the reciprocal 1f\dfrac{1}{f}. The notation f1f^{-1} means the function that "undoes" ff, not 1/f1/f.

(c) For x2x \neq 2:

f(f1(x))=f ⁣(x+3x2)=2x+3x2+3x+3x21=2x+6+3x6x2x+3(x2)x2=5x5=xf(f^{-1}(x)) = f\!\left(\frac{x + 3}{x - 2}\right) = \frac{2 \cdot \frac{x+3}{x-2} + 3}{\frac{x+3}{x-2} - 1} = \frac{\frac{2x + 6 + 3x - 6}{x - 2}}{\frac{x + 3 - (x - 2)}{x - 2}} = \frac{5x}{5} = x

Verified.


UT-3: Function Transformation Order

Question:

The graph of y=f(x)y = f(x) passes through the point (2,5)(2, 5). After the transformation y=2f(x1)+3y = -2f(x - 1) + 3, the graph passes through the point (a,b)(a, b).

Find the values of aa and bb.

A student reasons: "We translate left by 1, so a=1a = 1. Then stretch vertically by 2 and translate up by 3, so b=2×5+3=13b = 2 \times 5 + 3 = 13."

(a) Identify the error in the student's reasoning.

(b) Find the correct values of aa and bb.

[Difficulty: hard. Tests the counterintuitive nature of horizontal transformations.]

Solution:

(a) The student's error is in the horizontal transformation. The transformation f(x1)f(x - 1) shifts the graph to the right by 1 (not left). The student said "translate left by 1" and set a=21=1a = 2 - 1 = 1, but the correct calculation would give a=2+1=3a = 2 + 1 = 3.

(b) For y=2f(x1)+3y = -2f(x - 1) + 3:

  • The transformation f(x1)f(x - 1) shifts right by 1, so the input changes: x=2x = 2 requires x1=2x - 1 = 2, i.e., x=3x = 3. So a=3a = 3.
  • At the original point, f(2)=5f(2) = 5. The vertical stretch by 2-2 (reflection in xx-axis then stretch by 2) gives 2×5=10-2 \times 5 = -10. Then translate up by 3: b=10+3=7b = -10 + 3 = -7.

The point (2,5)(2, 5) maps to (3,7)(3, -7).


Integration Tests

Tests synthesis of functions and equations with other topics.

IT-1: Iteration and Fixed Points (with Sequences)

Question:

The function ff is defined by f(x)=2x+3x+2f(x) = \dfrac{2x + 3}{x + 2}.

(a) Find the fixed points of ff (values where f(x)=xf(x) = x).

(b) Show that f(f(x))=xf(f(x)) = x for all x2x \neq -2, and hence state f1(x)f^{-1}(x).

[Difficulty: hard. Combines function iteration with inverse function identification.]

Solution:

(a) Solve f(x)=xf(x) = x:

2x+3x+2=x    2x+3=x2+2x    x2=3    x=3 or x=3\frac{2x + 3}{x + 2} = x \implies 2x + 3 = x^2 + 2x \implies x^2 = 3 \implies x = \sqrt{3} \text{ or } x = -\sqrt{3}

The fixed points are x=3x = \sqrt{3} and x=3x = -\sqrt{3}.

(b)

f(f(x))=f ⁣(2x+3x+2)=22x+3x+2+32x+3x+2+2f(f(x)) = f\!\left(\frac{2x + 3}{x + 2}\right) = \frac{2 \cdot \frac{2x+3}{x+2} + 3}{\frac{2x+3}{x+2} + 2}

=4x+6+3x+6x+22x+3+2x+4x+2=7x+124x+7= \frac{\frac{4x + 6 + 3x + 6}{x + 2}}{\frac{2x + 3 + 2x + 4}{x + 2}} = \frac{7x + 12}{4x + 7}

This should equal xx:

7x+124x+7=x    7x+12=4x2+7x    4x2=12    x2=3\frac{7x + 12}{4x + 7} = x \implies 7x + 12 = 4x^2 + 7x \implies 4x^2 = 12 \implies x^2 = 3

This is not identically equal to xx, confirming that ff is not self-inverse.

Since ff is a Mobius transformation with adbc=2213=10ad - bc = 2 \cdot 2 - 1 \cdot 3 = 1 \neq 0, it is invertible. The inverse is:

f1(x)=2x3x+2=2x32x,x2f^{-1}(x) = \frac{2x - 3}{-x + 2} = \frac{2x - 3}{2 - x}, \quad x \neq 2

We can verify: f(f1(x))=22x32x+32x32x+2=2(2x3)+3(2x)2x(2x3)+2(2x)2x=4x6+63x2x3+42x=x1=xf(f^{-1}(x)) = \frac{2 \cdot \frac{2x-3}{2-x} + 3}{\frac{2x-3}{2-x} + 2} = \frac{\frac{2(2x-3) + 3(2-x)}{2-x}}{\frac{(2x-3) + 2(2-x)}{2-x}} = \frac{4x-6+6-3x}{2x-3+4-2x} = \frac{x}{1} = x.

So f1(x)=2x32xf^{-1}(x) = \dfrac{2x - 3}{2 - x} with domain x2x \neq 2.