One to One Functions | Definition & Tests
Let’s dive into Composite Functions! 🔗✨
Imagine you have two machines 🤖. One machine (g
) takes an input and gives an output. Then, you take that output and feed it into a second machine (f
), which then gives you a final output. That’s exactly what a composite function is! It’s when the output of one function becomes the input of another function.
What is a Composite Function? 🤔
A composite function is essentially a function inside another function. If you have two functions, say f
and g
, the composition of f
and g
is written as f ◦ g
. This is defined by (f ◦ g)(x) = f(g(x))
.
In simpler terms:
- You start with an input
x
🔢. - You apply the inner function
g
tox
, gettingg(x)
. - Then, you take that result
g(x)
and apply the outer functionf
to it, gettingf(g(x))
.
It’s like a chain reaction! ⛓️➡️
Determining the Domain of a Composite Function 🌍
When finding the domain of a composite function (f ◦ g)(x) = f(g(x))
, there are two crucial rules to follow to ensure the function is well-defined:
Rule 1: Input must be in the domain of the inner function ⚠️ If your initial input
x
is not in the domain ofg
(x ∉ Domain(g)
), thenx
cannot be in the domain off ◦ g
(x ∉ Domain(f ◦ g)
). Simply put, the first machine must be able to process the input.Rule 2: Output of inner function must be in the domain of the outer function ⚠️ You must exclude any
x
values for which the output ofg(x)
is not in the domain off
(g(x) ∉ Domain(f)
). This means the output from the first machine must be something the second machine can actually use as its input.
Examples from the Sources 💡
Let’s look at some examples to make this clearer:
Example 1: Basic Composition
If f(x) = 3x - 4
and g(x) = x²
:
(f ◦ g)(x) = f(g(x))
- First, we apply
g(x)
tox
, which isx²
. - Then, we substitute
x²
intof(x)
whereverx
appears:f(x²) = 3(x²) - 4 = **3x² - 4**
.
- First, we apply
(g ◦ f)(x) = g(f(x))
- First, we apply
f(x)
tox
, which is3x - 4
. - Then, we substitute
3x - 4
intog(x)
whereverx
appears:g(3x - 4) = (3x - 4)² = **9x² - 24x + 16**
.
- First, we apply
Notice that (f ◦ g)(x)
is not necessarily the same as (g ◦ f)(x)
. The order matters! 🔄
Example 2: Shop Discounts (Real-World Application) 🛍️💰 A shop offers two discounts on a product with a MRP of £14,000:
- First discount (
f(x)
): 15% off the MRP. So,f(x) = 0.85x
(you pay 85% of the price). - Second discount (
g(x)
): A flat £3,000 discount. So,g(x) = x - 3000
.
If both discounts are applied, with the first discount applied then the second, this is a composition h(x) = g(f(x))
:
f(x)
(15% off) is applied first.- The result
f(x)
is then fed intog(x)
(flat £3,000 discount).h(x) = g(f(x)) = 0.85x - 3000
.
For an MRP of £14,000:
h(14000) = 0.85(14000) - 3000 = 11900 - 3000 = **£8,900**
.
This shows how composition models sequential operations! 💡
Example 3: Composition with Domain Restrictions 🌍
Let f(x) = 2/(x-1)
and g(x) = 3/x
. Find (f ◦ g)(x)
and its domain.
(f ◦ g)(x) = f(g(x))
- Substitute
g(x)
intof(x)
:f(3/x) = 2 / ( (3/x) - 1 )
. - Simplify:
2 / ( (3-x)/x ) = **2x / (3-x)**
.
- Substitute
Domain of
(f ◦ g)(x)
🌍:- Rule 1 (Domain of
g
):g(x) = 3/x
is undefined ifx = 0
. So,x ≠ 0
. - Rule 2 (Output of
g
in domain off
):f(x) = 2/(x-1)
is undefined ifx - 1 = 0
, i.e.,x = 1
. This meansg(x)
cannot be1
. Setg(x) = 1
:3/x = 1
➡️x = 3
. So,x ≠ 3
.
Therefore, the domain of
(f ◦ g)(x)
is all real numbers except 0 and 3 (R \ {0, 3}
).- Rule 1 (Domain of
Practice Questions with Solutions 📝
Question 1: Given p(x) = x + 5
and q(x) = x² - 1
.
Find:
(a) (p ◦ q)(x)
🤔
(b) (q ◦ p)(x)
🤔
Solution:
(a) (p ◦ q)(x) = p(q(x))
💡
1. Substitute q(x)
into p(x)
: p(x² - 1)
.
2. Replace x
in p(x)
with x² - 1
: (x² - 1) + 5
.
3. Simplify: **x² + 4**
✅
(b) (q ◦ p)(x) = q(p(x))
💡
1. Substitute p(x)
into q(x)
: q(x + 5)
.
2. Replace x
in q(x)
with x + 5
: (x + 5)² - 1
.
3. Simplify: (x² + 10x + 25) - 1 = **x² + 10x + 24**
✅
Question 2: Let f(x) = √(x - 2)
and g(x) = 1/x
. Find the domain of (f ◦ g)(x)
. 🌍🤔
Solution:
To find the domain of (f ◦ g)(x) = f(g(x))
, we follow the two rules:
Rule 1: Domain of
g(x)
⚠️ The functiong(x) = 1/x
is defined for all real numbers except where the denominator is zero. So,x ≠ 0
.Rule 2: Output of
g(x)
must be in the domain off(x)
⚠️ The functionf(x) = √(x - 2)
is defined only when its input (x
) is greater than or equal to 2. So,x - 2 ≥ 0
impliesx ≥ 2
. This meansg(x)
must be greater than or equal to 2:g(x) ≥ 2
. Substituteg(x) = 1/x
:1/x ≥ 2
.Now, we solve
1/x ≥ 2
:- If
x
is positive, multiply both sides byx
:1 ≥ 2x
➡️x ≤ 1/2
. Combiningx > 0
andx ≤ 1/2
gives0 < x ≤ 1/2
. - If
x
is negative,1/x
will always be negative. Since2
is positive,1/x ≥ 2
can never be true for negativex
.
So, the condition
g(x) ∈ Domain(f)
implies0 < x ≤ 1/2
.- If
Combining results from Rule 1 (x ≠ 0
) and Rule 2 (0 < x ≤ 1/2
):
The only values that satisfy both conditions are **0 < x ≤ 1/2**
✅.
Therefore, the domain of (f ◦ g)(x)
is **(0, 1/2]**
🌍.
Question 3: A new online course offers a discount. First, a 20% discount is applied to the original price (P
). Then, a service fee of £50 is added. If D(P)
represents the discount function and F(P)
represents the service fee function, write the composite function that represents the final cost of the course and calculate the final cost if the original price P
is £500. 📚💸
Solution:
Discount Function (
D(P)
) 💡: A 20% discount means you pay 80% of the original price.D(P) = 0.80P
.Service Fee Function (
F(P)
) 💡: A £50 service fee is added.F(P) = P + 50
(Note: HereP
represents the price after the discount, which will be the input toF
).Composite Function for Final Cost 🔗: Since the discount is applied first, then the service fee is added, the output of
D(P)
becomes the input forF(P)
. This is**(F ◦ D)(P) = F(D(P))**
. SubstituteD(P)
intoF(P)
:F(D(P)) = F(0.80P) = (0.80P) + 50
So, the final cost function is**C(P) = 0.80P + 50**
✅.Calculate Final Cost for P = £500 💰:
C(500) = 0.80(500) + 50
C(500) = 400 + 50
C(500) = **£450**
✅.