All practice topics

Functions — General Properties

26 practice questions with full worked solutions. Free, no account needed.

Problems & worked solutions

Problem #0774 International

Problem 1Function Composition

Let f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2. Then (fg)(3)(f \circ g)(3) equals:

Show answer & worked solution
  1. A. 1616
  2. B. 1818
  3. C. 1919✓ correct
  4. D. 4949

g(3)=32=9g(3) = 3^2 = 9.

Then f(9)=29+1=19f(9) = 2 \cdot 9 + 1 = 19.

Problem #0775 International

Problem 2Function Composition

Let f(x)=x+3f(x) = x + 3 and g(x)=2xg(x) = 2x. Then (gf)(x)(g \circ f)(x) equals:

Show answer & worked solution
  1. A. 2x+32x + 3
  2. B. 2x+62x + 6✓ correct
  3. C. 2x+82x + 8
  4. D. 6x6x

g(f(x))=g(x+3)=2(x+3)=2x+6g\big(f(x)\big) = g(x + 3) = 2(x + 3) = 2x + 6.

Problem #0776 International

Problem 3Function Composition

Let f(x)=x2f(x) = x^2 and g(x)=x1g(x) = x - 1. Then (fg)(x)(f \circ g)(x) equals:

Show answer & worked solution
  1. A. (x1)2(x - 1)^2✓ correct
  2. B. x21x^2 - 1
  3. C. (x+1)2(x + 1)^2
  4. D. x2+1x^2 + 1

f(g(x))=f(x1)=(x1)2f\big(g(x)\big) = f(x - 1) = (x - 1)^2.

(Note g(f(x))=x21g\big(f(x)\big) = x^2 - 1 — composition order matters.)

Problem #0777 International

Problem 4Function Composition

If f(x)=2xf(x) = 2x, then (ff)(x)(f \circ f)(x) equals:

Show answer & worked solution
  1. A. 2x2x
  2. B. 4x4x✓ correct
  3. C. 2x22x^2
  4. D. 4x24x^2

f(f(x))=f(2x)=2(2x)=4xf\big(f(x)\big) = f(2x) = 2 \cdot (2x) = 4x.

Problem #0779 International

Problem 5Definition, Domain, Codomain

The domain of f(x)=x2f(x) = \sqrt{x - 2} (as a function RR\mathbb{R} \to \mathbb{R}) is:

Show answer & worked solution
  1. A. R\mathbb{R}
  2. B. (,2](-\infty, 2]
  3. C. [2,)[2, \infty)✓ correct
  4. D. (2,)(2, \infty)

We need x20x - 2 \ge 0, i.e. x2x \ge 2.

The value at x=2x = 2 is 0=0\sqrt{0} = 0, which is allowed, so the domain is [2,)[2, \infty).

Problem #0778 International

Problem 6Definition, Domain, Codomain

The largest subset of R\mathbb{R} on which f(x)=1x3f(x) = \dfrac{1}{x - 3} is defined is:

Show answer & worked solution
  1. A. R\mathbb{R}
  2. B. R{3}\mathbb{R} \setminus \{-3\}
  3. C. R{3}\mathbb{R} \setminus \{3\}✓ correct
  4. D. R{0}\mathbb{R} \setminus \{0\}

The denominator vanishes when x3=0x - 3 = 0, i.e. x=3x = 3.

Everywhere else the value exists, so the domain is R{3}\mathbb{R} \setminus \{3\}.

Problem #0780 International

Problem 7Definition, Domain, Codomain

For f:{1,2,3}Zf : \{1, 2, 3\} \to \mathbb{Z}, f(x)=2x1f(x) = 2x - 1, the image (range) of ff is:

Show answer & worked solution
  1. A. {1,2,3}\{1, 2, 3\}
  2. B. {1,3,5}\{1, 3, 5\}✓ correct
  3. C. {2,4,6}\{2, 4, 6\}
  4. D. {1,3,5,7}\{1, 3, 5, 7\}

f(1)=1f(1) = 1, f(2)=3f(2) = 3, f(3)=5f(3) = 5.

The image is the set of outputs: {1,3,5}\{1, 3, 5\}.

Problem #0781 International

Problem 8Definition, Domain, Codomain

Which of the following does not define a function RR\mathbb{R} \to \mathbb{R}?

Show answer & worked solution
  1. A. f(x)=x2f(x) = x^2
  2. B. f(x)=xf(x) = |x|
  3. C. f(x)=±xf(x) = \pm\sqrt{x}✓ correct
  4. D. f(x)=3f(x) = 3

x2x^2, x|x| and the constant 33 each give one value for every real xx.

±x\pm\sqrt{x} fails twice: it is not single-valued (two outputs) and is undefined for x<0x < 0. So it is not a function RR\mathbb{R} \to \mathbb{R}.

Problem #0782 International

Problem 9Injective, Surjective, Bijective, Invertible

The function f:RRf : \mathbb{R} \to \mathbb{R}, f(x)=2x+1f(x) = 2x + 1 is:

Show answer & worked solution
  1. A. injective but not surjective
  2. B. surjective but not injective
  3. C. bijective✓ correct
  4. D. neither injective nor surjective

2x+1=y    x=y122x + 1 = y \iff x = \dfrac{y - 1}{2}.

Every real yy has exactly one preimage, so ff is both injective and surjective, i.e. bijective.

Problem #0784 International

Problem 10Injective, Surjective, Bijective, Invertible

The function f:R[0,)f : \mathbb{R} \to [0, \infty), f(x)=x2f(x) = x^2 is:

Show answer & worked solution
  1. A. injective but not surjective
  2. B. surjective but not injective✓ correct
  3. C. bijective
  4. D. neither injective nor surjective

For any y0y \ge 0, y=(y)2y = (\sqrt{y})^2, so ff is surjective onto [0,)[0, \infty).

But f(2)=f(2)=4f(2) = f(-2) = 4, so ff is not injective. Hence surjective but not injective.

Which exam are you sitting?