Lesson 12 of 42 · Functions, exponentials and logarithms

Functions: notation, domain, composition and inverse

Read function notation precisely, find the domain of any formula from three rules, and compose and invert functions without mixing up the order.

About 22 minutes

In this lesson

  • Evaluate expressions such as f(a+1)f(a+1) or f(2x)f(2x) by substituting the whole input.
  • Find the domain of a formula from denominators, even roots and logarithms.
  • Compose two functions in the right order and find an inverse by swapping and solving.

The idea

What a function is

A function ff takes each input xx from a set called its domain and returns exactly one output f(x)f(x). The set of outputs actually produced is the range. "Exactly one" is the whole definition: a rule that sends the input 4 to both 2 and −2-2 is not a function, which is why 4\sqrt{4} means only 22.

The letter inside the brackets is a placeholder. If f(x)=x2−3xf(x) = x^2 - 3x, then ff means "square the input, then subtract three times the input". So

f(a+1)=(a+1)2−3(a+1)=a2−a−2.f(a+1) = (a+1)^2 - 3(a+1) = a^2 - a - 2.

Every xx is replaced by the whole input, brackets included. Most notation errors come from replacing only part of it: writing f(a+1)f(a+1) as a2+1−3a+1a^2 + 1 - 3a + 1, or f(2x)f(2x) as 2f(x)2f(x).

Finding the domain: three rules

When a question gives only a formula, the domain is every real number for which the formula makes sense. For the formulas in this course that comes down to three restrictions:

Expression Requirement Why
PQ\frac{P}{Q} Q≠0Q \neq 0 Division by zero is undefined.
E\sqrt{E} (any even root) E≥0E \geq 0 No real number squares to a negative.
log⁡aE\log_a E or ln⁡E\ln E E>0E > 0 A positive base raised to any power is positive.

Odd roots such as E3\sqrt[3]{E} impose nothing: −83=−2\sqrt[3]{-8} = -2. When a formula has several pieces, write every condition and take the values that satisfy all of them at once. Watch for combinations: an even root in a denominator needs its radicand strictly positive, because 0=0\sqrt{0} = 0 would put a zero underneath.

Simplifying a formula never enlarges its domain. x2−1x−1\frac{x^2 - 1}{x - 1} equals x+1x + 1 wherever both are defined, but the first is undefined at x=1x = 1, so its domain is x≠1x \neq 1 and its graph is the line y=x+1y = x + 1 with one point missing. Find the domain from the formula as given, before you cancel anything.

Composition: inside first

The composition f(g(x))f(g(x)), also written (f∘g)(x)(f \circ g)(x), means "apply gg, then apply ff to the result". The function written nearer to xx acts first. In general f(g(x))≠g(f(x))f(g(x)) \neq g(f(x)), and the test likes to offer the other order as a wrong option.

To build f(g(x))f(g(x)) as a formula, take the formula for ff and put the whole of g(x)g(x), in brackets, wherever ff has its variable. To evaluate f(g(3))f(g(3)) you do not need the formula at all: compute g(3)g(3), then feed that number to ff. Doing it both ways is a quick check on your algebra.

A composition also has a domain: xx must be in the domain of gg, and g(x)g(x) must be in the domain of ff.

Inverse functions

The inverse f−1f^{-1} undoes ff: if f(a)=bf(a) = b, then f−1(b)=af^{-1}(b) = a. It exists only when ff is one-to-one, meaning no two inputs share an output. f(x)=x2f(x) = x^2 on all reals is not one-to-one (f(3)=f(−3)f(3) = f(-3)), so it has no inverse there; restricted to x≥0x \geq 0 it has the inverse x\sqrt{x}.

To find an inverse from a formula:

  1. Write y=f(x)y = f(x).
  2. Solve for xx in terms of yy.
  3. Rename: the result is f−1(y)f^{-1}(y); swap letters to write f−1(x)f^{-1}(x).

The domain of f−1f^{-1} is the range of ff, and the range of f−1f^{-1} is the domain of ff. On a graph, ff and f−1f^{-1} are mirror images in the line y=xy = x, because every point (a,b)(a, b) becomes (b,a)(b, a).

The notation is a trap in itself: f−1(x)f^{-1}(x) is the inverse function, not 1f(x)\frac{1}{f(x)}. When a question asks only for one value such as f−1(5)f^{-1}(5), skip the formula: solve f(x)=5f(x) = 5.

Why this matters under time pressure

In multiple-choice function questions, wrong options tend to come from predictable slips: the other order of composition, a domain endpoint wrongly included, a reciprocal instead of an inverse. Before you choose, substitute one easy number into your answer and into the original; it takes seconds and catches most of these.

Worked examples

Example 1: Domain of a root over a quadratic

Find the domain of f(x)=6−2xx2−4x+3f(x) = \dfrac{\sqrt{6 - 2x}}{x^2 - 4x + 3}.

  1. The square root needs 6−2x≥06 - 2x \geq 0, so 2x≤62x \leq 6 and x≤3x \leq 3.

  2. The denominator must not be zero. Factor it: x2−4x+3=(x−1)(x−3)x^2 - 4x + 3 = (x - 1)(x - 3), which is zero at x=1x = 1 and x=3x = 3.

  3. Take the values that satisfy both conditions: x≤3x \leq 3, but x≠1x \neq 1 and x≠3x \neq 3. The endpoint 33 allowed by the root is removed by the denominator.

  4. Spot check: at x=0x = 0 the formula gives 63\frac{\sqrt{6}}{3}, defined; at x=2x = 2 it gives 2−1\frac{\sqrt{2}}{-1}, defined; at x=4x = 4 the root is −2\sqrt{-2}, undefined.

Answer

The domain is x<3x < 3 with x≠1x \neq 1, that is (−∞,1)∪(1,3)(-\infty, 1) \cup (1, 3). The tempting wrong answer is x≤3, x≠1x \leq 3,\ x \neq 1, which forgets that x=3x = 3 also zeroes the denominator.

Example 2: Composing in both orders

Let f(x)=2x−1f(x) = 2x - 1 and g(x)=x2+3g(x) = x^2 + 3. Find f(g(x))f(g(x)) and g(f(x))g(f(x)), and check both at x=2x = 2.

  1. For f(g(x))f(g(x)), put the whole of g(x)g(x) into ff: f(g(x))=2(x2+3)−1=2x2+5f(g(x)) = 2(x^2 + 3) - 1 = 2x^2 + 5.

  2. For g(f(x))g(f(x)), put the whole of f(x)f(x) into gg: g(f(x))=(2x−1)2+3=4x2−4x+1+3=4x2−4x+4g(f(x)) = (2x - 1)^2 + 3 = 4x^2 - 4x + 1 + 3 = 4x^2 - 4x + 4.

  3. Check f(g(2))f(g(2)) by numbers: g(2)=7g(2) = 7, then f(7)=13f(7) = 13. The formula gives 2⋅4+5=132 \cdot 4 + 5 = 13.

  4. Check g(f(2))g(f(2)): f(2)=3f(2) = 3, then g(3)=12g(3) = 12. The formula gives 16−8+4=1216 - 8 + 4 = 12.

Answer

f(g(x))=2x2+5f(g(x)) = 2x^2 + 5 and g(f(x))=4x2−4x+4g(f(x)) = 4x^2 - 4x + 4. They differ, so the order matters; writing (2x−1)2(2x - 1)^2 as 4x2+14x^2 + 1 would drop the middle term −4x-4x.

Example 3: Inverse of a fraction of linear terms

Find the inverse of f(x)=3x+2x−1f(x) = \dfrac{3x + 2}{x - 1}, x≠1x \neq 1, and state its domain.

  1. Write y=3x+2x−1y = \dfrac{3x + 2}{x - 1} and clear the fraction: y(x−1)=3x+2y(x - 1) = 3x + 2, so yx−y=3x+2yx - y = 3x + 2.

  2. Collect the xx terms on one side: yx−3x=y+2yx - 3x = y + 2, so x(y−3)=y+2x(y - 3) = y + 2 and x=y+2y−3x = \dfrac{y + 2}{y - 3}.

  3. Rename the variable: f−1(x)=x+2x−3f^{-1}(x) = \dfrac{x + 2}{x - 3}. It is undefined at x=3x = 3, which tells you that 33 is the one value ff never takes.

  4. Check with a number: f(2)=81=8f(2) = \frac{8}{1} = 8, and f−1(8)=105=2f^{-1}(8) = \frac{10}{5} = 2.

Answer

f−1(x)=x+2x−3f^{-1}(x) = \dfrac{x + 2}{x - 3}, with domain x≠3x \neq 3 (the range of ff). The reciprocal x−13x+2\frac{x - 1}{3x + 2} is the tempting wrong answer: it is 1f(x)\frac{1}{f(x)}, not the inverse.

Common traps

  • Cancelling before finding the domain

    x2−9x+3\frac{x^2 - 9}{x + 3} simplifies to x−3x - 3, but the original is undefined at x=−3x = -3. If you cancel first, you lose the restriction and may pick an option that includes −3-3. Read every condition off the formula exactly as it is written.

  • Composing in the wrong order

    In f(g(x))f(g(x)) the inner function gg acts first. The opposite order is almost always among the options and looks equally plausible. Say "first gg, then ff" before you substitute, and check one value numerically.

  • Reading f−1f^{-1} as a reciprocal

    f−1(x)f^{-1}(x) is the inverse function; 1f(x)\frac{1}{f(x)} is written (f(x))−1(f(x))^{-1}. The two agree only by accident. To find f−1(k)f^{-1}(k), solve f(x)=kf(x) = k.

  • Substituting only part of the input

    With f(x)=x2−3xf(x) = x^2 - 3x, f(a+1)f(a + 1) is (a+1)2−3(a+1)(a + 1)^2 - 3(a + 1), not a2+1−3a+1a^2 + 1 - 3a + 1. Put the whole input in brackets every time it replaces xx.

Check yourself

Answer each question before you open its answer.

Question 1: A root in a denominator and a logarithm

Functions

What is the domain of f(x)=1x+2+ln⁡(5−x)f(x) = \dfrac{1}{\sqrt{x + 2}} + \ln(5 - x)?

  1. A.−2≤x<5-2 \leq x < 5
  2. B.−2<x<5-2 < x < 5
  3. C.−2<x≤5-2 < x \leq 5
  4. D.x>−2x > -2
Show the answer

Answer: B. −2<x<5-2 < x < 5

Working

The root sits in a denominator, so x+2>0x + 2 > 0, giving x>−2x > -2. The logarithm needs 5−x>05 - x > 0, giving x<5x < 5. Both must hold: −2<x<5-2 < x < 5.

Why the other options are wrong

  • A. Including x=−2x = -2 makes the denominator 0=0\sqrt{0} = 0. A root in a denominator needs its radicand strictly positive.
  • C. At x=5x = 5 the logarithm would be ln⁡0\ln 0, which is undefined: the argument of a logarithm must be strictly positive.
  • D. This uses only the root and ignores the logarithm, which needs 5−x>05 - x > 0.

What carries over

List one condition for every denominator, even root and logarithm, then keep only the values that satisfy all of them.

Question 2: Which composition?

Functions

Let f(x)=x2−1f(x) = x^2 - 1 and g(x)=3−xg(x) = 3 - x. Which expression equals f(g(x))f(g(x))?

  1. A.4−x24 - x^2
  2. B.x2+8x^2 + 8
  3. C.x2−6x+8x^2 - 6x + 8
  4. D.−x3+3x2+x−3-x^3 + 3x^2 + x - 3
Show the answer

Answer: C. x2−6x+8x^2 - 6x + 8

Working

gg acts first, so put 3−x3 - x into ff: f(g(x))=(3−x)2−1=9−6x+x2−1=x2−6x+8f(g(x)) = (3 - x)^2 - 1 = 9 - 6x + x^2 - 1 = x^2 - 6x + 8. Check at x=1x = 1: g(1)=2g(1) = 2 and f(2)=3f(2) = 3; the expression gives 1−6+8=31 - 6 + 8 = 3.

Why the other options are wrong

  • A. This is g(f(x))=3−(x2−1)g(f(x)) = 3 - (x^2 - 1): the functions were applied in the opposite order.
  • B. This expands (3−x)2(3 - x)^2 as 9+x29 + x^2 and drops the middle term −6x-6x.
  • D. This is the product f(x)⋅g(x)f(x) \cdot g(x), not the composition.

What carries over

The function nearer to xx acts first; check the formula with one number.

Question 3: One value of an inverse

Functions

Let f(x)=2x+1x+3f(x) = \dfrac{2x + 1}{x + 3} for x≠−3x \neq -3. What is f−1(1)f^{-1}(1)?

  1. A.−2-2
  2. B.34\frac{3}{4}
  3. C.43\frac{4}{3}
  4. D.22
Show the answer

Answer: D. 22

Working

f−1(1)f^{-1}(1) is the input that ff sends to 1. Solve 2x+1x+3=1\frac{2x + 1}{x + 3} = 1: 2x+1=x+32x + 1 = x + 3, so x=2x = 2. Check: f(2)=55=1f(2) = \frac{5}{5} = 1.

Why the other options are wrong

  • A. A sign slip when collecting terms gives f−1(x)=3x−1x−2f^{-1}(x) = \frac{3x - 1}{x - 2} instead of 1−3xx−2\frac{1 - 3x}{x - 2}, and that formula gives −2-2 at x=1x = 1.
  • B. This is f(1)f(1), the function itself at 1, not its inverse.
  • C. This is 1f(1)\frac{1}{f(1)}: it reads f−1f^{-1} as a reciprocal.

What carries over

For a single value of an inverse, solve f(x)=kf(x) = k instead of building the whole inverse formula.

Key points

  • The domain comes from three rules: denominators ≠0\neq 0, even roots of something ≥0\geq 0, logarithms of something >0> 0.

  • Find the domain before simplifying; cancelling never removes a restriction.

  • In f(g(x))f(g(x)), gg acts first; the reverse order is a different function.

  • f−1f^{-1} undoes ff: swap the roles of input and output and solve; it is not 1f\frac{1}{f}.

All questions here are original and written for UniExamer; none comes from the test maker.

Written by the UniExamer team with AI assistance. Every worked example and check question was re-solved by an independent checker before publication. No subject expert has reviewed this lesson yet. If you find a mistake, write to support@uniexamer.com.

Bu konuyu çalış

Bu beceride çözümlü açıklamalarla yeni sorular. Çalışma için Single Exam Pass veya Plus gerekir.