Real functions: the vertical line test, piecewise rules, domains, operations and composition
Week 1 Β· Real functions: the vertical line test, domain and range from a graph, piecewise-defined functions, the domain of a rule, operations on functions and composition Β· 3 lessons
3
Adding, subtracting, multiplying and dividing functions, and composing them: g after f
Pure Mathematics Sec 2 Term 1, Unit 1, Lesson 1
GoalCombine two functions by an operation or by composition, and find the domain of the result.
New words
composition Β· (g β f)(x) = g(f(x)): apply f first, then gdomain of the result Β· the inputs where every function involved is defined
Explanation
Functions can be added, subtracted and multiplied value by value: (f + g)(x) = f(x) + g(x). The result exists only where both f and g exist, so its domain is the overlap of the two domains. For a quotient (f/g)(x) = f(x)/g(x) we also remove every x where g(x) = 0. Composition is different: (g β f)(x) = g(f(x)) means that x goes into f first, and the output of f goes into g. A market stall sells oranges at 8 LE a kilogram, f(x) = 8x, and takes 5 LE off the bill, g(p) = p β 5. The bill for x kilograms is g(f(x)) = 8x β 5. For this to make sense the output of f must be an allowed input of g, so the range of f must meet the domain of g. In general g β f and f β g are different functions: order matters, like putting on socks and then shoes. In Arabic the names are Ψ§ΩΨΉΩ ΩΩΨ§Ψͺ ΨΉΩΩ Ψ§ΩΨ―ΩΨ§Ω and ΨͺΨ±ΩΩΨ¨ Ψ§ΩΨ―ΩΨ§Ω.
xfβf(x)gβg(f(x))
Worked examples
f(x) = xΒ² β 3x, g(x) = β(x + 5), h(x) = β(20 β x). Domains: f is R, g is [β5, β[, h is ]ββ, 20]. So g + h and g Β· h live on [β5, 20]. At x = 4: g(4) = 3, h(4) = 4, so (g + h)(4) = 7, (g Β· h)(4) = 12, (g β h)(4) = β1 and (h/g)(4) = 4/3. The quotient h/g also drops x = β5 (g = 0): domain ]β5, 20]. (g Β· h)(25) is not defined, since 25 is not in the domain of h.
With f(x) = 3x and g(x) = xΒ² + 5: (g β f)(2) = g(6) = 41, but (f β g)(2) = f(9) = 27. The rules are (g β f)(x) = 9xΒ² + 5 and (f β g)(x) = 3xΒ² + 15, different. Solve (g β f)(x) = 86: 9xΒ² + 5 = 86, so xΒ² = 9 and x = 3 or x = β3.
x
f(x) = x β 4
g(f(x)) = β(x β 4)
4
0
0
5
1
1
8
4
2
13
9
3
2
β2
not defined
f(x) = x β 4 and g(x) = βx. Then (g β f)(x) = β(x β 4). The square root needs f(x) β₯ 0, that is x β₯ 4, so the domain is [4, β[. The table shows x = 2 fails: f(2) = β2 is outside the domain of g.
Class activity
Socks and shoes. Take f(x) = x + 3 and g(x) = 2x. Compute g β f and f β g for x = 1, 2, 3 in a table and see that they never agree.
Practice
1
For f(x) = x + 3 and g(x) = 2x, find the rules of g β f and f β g.