3.3. Function Operations
3.3. Function Operations
Thus, if we are given any two functions 𝑓 and 𝑔, we can define the four
𝑓
new functions 𝑓 + 𝑔, 𝑓 − 𝑔, 𝑓𝑔, and as follows.
𝑔
Example 1
Solution
= (3𝑥 − 2) + (𝑥 2 + 6) = 𝑥 2 + 3𝑥 + 4
= (3𝑥 − 2) − (𝑥 2 + 6) = −𝑥 2 + 3𝑥 − 8
𝑓 𝑓(𝑥) 3𝑥−2
(d) ( ) (𝑥 ) = = 2
𝑔 𝑔(𝑥) 𝑥 +6
Example 2
𝑓
If 𝑓(𝑥) = √𝑥 − 1 and 𝑔(𝑥) = 𝑥 2 − 4, find the domains of 𝑓 + 𝑔, 𝑓 − 𝑔, 𝑓𝑔,
𝑔
𝑔
and .
𝑓
Solution
𝑓(𝑥 ) = √𝑥 − 1, 𝑔(𝑥 ) = 𝑥 2 − 4.
𝐷𝑓 = [1, ∞), 𝐷𝑔 = ℝ.
𝐷𝑓/𝑔 = 𝐷𝑓 ∩ 𝐷𝑔 , 𝑔(𝑥 ) ≠ 0.
𝑔(𝑥 ) = 0 ⇒ 𝑥 2 − 4 = 0 ⇒ (𝑥 − 2)(𝑥 + 2) = 0
⇒ 𝑥 = ±2
𝐷𝑔/𝑓 = 𝐷𝑔 ∩ 𝐷𝑓 , 𝑓(𝑥) ≠ 0
𝑓 (𝑥 ) = 0 if √𝑥 − 1 = 0 ⇒ 𝑥 = 1.
1
If 𝑓(𝑥 ) = √𝑥 − 1 − 2 and 𝑔(𝑥 ) = .
𝑥−1
(i) Find
𝑓
(a) (𝑓 + 𝑔)(𝑥 ) (b) (𝑓 − 𝑔)(𝑥 ) (c) (𝑓𝑔)(𝑥 ) (d) ( ) (𝑥 )
𝑔
𝑓 𝑔
(ii) Find the domains of 𝑓 + 𝑔, 𝑓 − 𝑔, 𝑓𝑔, and .
𝑔 𝑓
Answer:
𝐷𝑓+𝑔 = 𝐷𝑓−𝑔 − 𝐷𝑓𝑔 = 𝐷𝑓 ∩ 𝐷𝑔 = (1, ∞)
𝐷𝑓/𝑔 = (1, ∞)
𝐷𝑔/𝑓 = (1,5) ∪ (5, ∞)
Solution
Example 3
Solution
= ((5)2 − 9) + (2(5) + 6)
= 16 + 16 = 32.
= ((−2)2 − 9) − (2(−2) + 6)
= −5 − 2 = −7
= [(−1)2 − 9][2(−1) + 6]
= (−8)(4) = −32.
𝑓 𝑓(4) 42 −9 7 1
(d) ( ) (4) = = = = .
g 𝑔(4) 2(4)+6 14 2
The Figure below shows the graph of functions 𝑓 and 𝑔. Use their graph
to calculate:
(a) (𝑓 + 𝑔)(1) (b) (𝑓 − 𝑔)(2) (c) (𝑓𝑔)(1) (d) (𝑓𝑔)(0)
𝑓 𝑔 𝑓
(e) ( ) (0) (f) ( ) (0) (e) ( ) (2)
𝑔 𝑓 𝑔
Solution
𝑓(𝑥 + ℎ) − 𝑓(𝑥)
, ℎ≠0
ℎ
Example 5
Note that
𝑓(𝑔(𝑥 )) = √𝑔(𝑥)
= √𝑥 + 4
In particular,
𝑓(𝑔(0)) = 𝑓(4) = 2
• Let 𝑓 and 𝑔 be two functions such that 𝑔(𝑥) is in the domain of 𝑓 for all
𝑥 in the domain of 𝑔.
• Then the composition of the two functions, denoted by 𝑓 ∘ 𝑔, is the
function whose value at 𝑥 is given by
(𝑓 ∘ 𝑔)(𝑥) = 𝑓[𝑔(𝑥)].
Example 6
Solution
𝑔(𝑥 ) = 𝑥 2 − 3
𝑔(−1) = (−1)2 − 3
= −2 Evaluate 𝑔 at − 1.
𝑓(𝑥 ) = 2𝑥 − 1
(𝑓 ∘ 𝑔)(−1) = 𝑓[𝑔(−1)] = 𝑓 (−2) Replace 𝑥 with 𝑔(−1).
= 2(−2) − 1 = −5 𝑔(−1) = −2
= 2[ 𝑥 2 − 3] − 1 - Simplify.
= 2𝑥 2 − 7 (∗)
(𝑓 ∘ 𝑔)(𝑥 ) = 2𝑥 2 − 7
⇒ (𝑓 ∘ 𝑔)(−1) = 2(−1)2 − 7 = 2 − 7 = −5
(𝑓 ∘ 𝑔)(𝑥) ≠ (𝑔 ∘ 𝑓)(𝑥) .
Checkpoint 4
Solution
• Method 1: First evaluate 𝑔(𝑐). Then substitute this result for 𝑥 in 𝑓(𝑥).
Example 7
Solution
Method 1:
(𝑓 ∘ 𝑔)(3) = 𝑓 [𝑔(3)]
= 𝑓[(3)2 + 4] Evaluate 𝑔(3).
= 𝑓(13)
= 2(13) − 7 = 19 Substitute 13 for 𝑥 in 𝑓.
Method 2:
(𝑓 ∘ 𝑔)(𝑥 ) = 𝑓(𝑔(𝑥 )) = 2[𝑔(𝑥 )] − 7 Form 𝑓[𝑔(𝑥)].
= 2[ 𝑥 2 + 4] − 7
= 2𝑥 2 + 1
Then (𝑓 ∘ 𝑔)(3) = 2(3)2 + 1 = 19 Substitute 3 for 𝑥.
that:
2 3
Given 𝑓(𝑥) = and 𝑔(𝑥) = , find
𝑥−1 𝑥
(a) (𝑓 ∘ 𝑔)(𝑥) (b) the domain of 𝑓 ∘ 𝑔.
Solution
2
(a) Because (𝑓 ∘ 𝑔)(𝑥) means 𝑓(𝑔(𝑥)), we must replace 𝑥 in 𝑓(𝑥) =
𝑥−1
with 𝑔(𝑥).
2 2 2 2𝑥
(𝑓 ∘ 𝑔)(𝑥) = 𝑓(𝑔(𝑥)) = = = =
𝑔(𝑥) − 1 3 − 1 3 − 𝑥 3 − 𝑥
𝑥 𝑥
2𝑥
Thus, (𝑓 ∘ 𝑔)(𝑥) = .
3−𝑥
steps.
domain of 𝑓 ∘ 𝑔 is
• then you can exclude all values that make 𝑓 ∘ 𝑔 undefined from
this step.
3
✓ −1≠0 (From the denominator in 3
2
)
𝑥 𝑥
−1
⇒𝑥≠3
⇒ {0,3} ∉ 𝐷𝑓∘𝑔 ⇒ 𝐷𝑓∘𝑔 = ℝ\{0,3}
Example 9
1
Given 𝑓 (𝑥 ) = − 1 and 𝑔(𝑥) = √𝑥 − 5, find 𝑓 ∘ 𝑔, 𝑔 ∘ 𝑓 and state their
𝑥
domain.
Solution
𝑔(𝑥 ) = √𝑥 − 5, 𝑥 ⩾ 5
(𝑓 ∘ 𝑔)(𝑥 ) = 𝑓(𝑔(𝑥 ))
= 𝑓(√𝑥 − 5)
1
= − 1, 𝑥 > 5.
√𝑥−5
(𝑔 ∘ 𝑓)(𝑥 ) = 𝑔(𝑓(𝑥 ))
1
= 𝑔 ( − 1)
𝑥
1 1
= √( − 1) − 5, ( − 1) − 5 ⩾ 0
𝑥 𝑥
1 1
= √ − 6, −6⩾0
𝑥 𝑥
1 1 1
= √ − 6, 0 < 𝑥 ≤ . (Exercise: Solve the inequality −6⩾0)
𝑥 6 𝑥
1
∴ 𝐷𝑔∘𝑓 = (0, ]
6
Checkpoint 5
4 1
Given 𝑓(𝑥) = and 𝑔(𝑥) = , find
𝑥+2 𝑥
(a) (𝑓 ∘ 𝑔)(𝑥) (b) (𝑓 ∘ 𝑔)(𝑥) (c) the domain of 𝑓 ∘ 𝑔 and 𝑔 ∘ 𝑓
Answer:
4𝑥 1
(𝑓 ∘ 𝑔)(𝑥 ) = , 𝑥 ≠ 0, 𝑥 ≠ − .
1+2𝑥 2
𝑥+2
(𝑔 ∘ 𝑓)(𝑥 ) = , 𝑥 ≠ −2.
4
Solution
Appendix
Example 10
Solution
Thus, if we let
𝑓(𝑥) = (𝑥 + 1)5
{
𝑔(𝑥) = 3𝑥 2 − 4𝑥
Checkpoint 6
3
Express ℎ(𝑥) as a composition of two functions: ℎ(𝑥) = √𝑥 2 + 1 .
Solution