AdvertisementYour brand could be hereYour brand hereOn every Darslab page Β· students, parents and teachersinfo@darslab.comAsk for pricesPricesinfo@darslab.com
☰ Year plan · Pure Mathematics

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 ΨͺΨ±ΩƒΩŠΨ¨ Ψ§Ω„Ψ―ΩˆΨ§Ω„.

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.
xf(x) = x βˆ’ 4g(f(x)) = √(x βˆ’ 4)
400
511
842
1393
2βˆ’2not 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.
2
With f(x) = 2x + 1 and g(x) = xΒ² βˆ’ 3, find (g ∘ f)(2) and (f ∘ g)(2).
3
With f(x) = xΒ² βˆ’ 4 and g(x) = √(x + 3), find (f Β· g)(1) and (f/g)(6), and the domain of f/g.
4
Find the domain of (g ∘ f)(x) when f(x) = 6 βˆ’ x and g(x) = √x.
5
The stall gives 5 LE off: g(p) = p βˆ’ 5 after f(x) = 8x. How many kilograms cost 43 LE after the discount?