Composite Functions | Domain
Alright, let’s dive into composite functions again, this time focusing on their domain with some friendly emojis! ๐คโจ
What are Composite Functions? ๐ค
As we discussed, imagine two magical machines ๐คโ๏ธ:
- Machine G (the inner function
g
): Takes your initial idea (x
) and transforms it into something new (g(x)
). - Machine F (the outer function
f
): Takes what Machine G made (g(x)
) and transforms that into a final product (f(g(x))
).
A composite function is essentially a “function of a function” [Conversation History]. If you have two functions, f
and g
, their composition is typically written as f โฆ g
(read as “f of g”), and it’s formally defined by the equation:
(f โฆ g)(x) = f(g(x)) [Conversation History, 5.9]
This means you apply g
first, then f
to the result [Conversation History, 5.9].
Understanding the Domain of a Composite Function ๐
Determining the domain of a composite function (f โฆ g)(x) = f(g(x))
is super important because it tells you which input values x
are allowed for the entire process to work seamlessly. Think of it as ensuring both magical machines can handle the materials at each step! โ๏ธ๐
There are two crucial rules to follow to find the domain of (f โฆ g)(x)
[Conversation History, 5.9]:
Rule 1: The initial input
x
must be acceptable to the inner functiong
๐ซ.- If your
x
is not in the domain ofg
(x โ Domain(g)
), theng(x)
simply won’t exist. Ifg(x)
doesn’t exist,f
can’t even start its work, so(f โฆ g)(x)
cannot exist either [Conversation History, 5.9]. - Emoji Analogy: You can’t put square pegs ๐ฉ into round holes โญ! The first machine (
g
) needs to be able to process the raw material (x
) you feed it.
- If your
Rule 2: The output of the inner function
g(x)
must be acceptable to the outer functionf
โ .- You must exclude any
x
values for which the outputg(x)
falls outside the domain off
(g(x) โ Domain(f)
) [Conversation History, 5.9]. Even ifg(x)
produces a value, that value might be somethingf
cannot handle (e.g., trying to take the square root of a negative number, or dividing by zero). - Emoji Analogy: The output from the first machine โ๏ธ must be compatible raw material for the second machine ๐ค. If machine G makes something too hot ๐ฅ or too cold โ๏ธ for machine F to handle, the whole operation breaks down!
- You must exclude any
Combining these two rules, the domain of (f โฆ g)(x)
consists of all x
such that:
x
is in the domain ofg
[5.9].g(x)
is in the domain off
[5.9].
Examples from the Sources ๐ก
Let’s look at some examples to illustrate these concepts:
Example 1: Basic Algebraic Composition
If f(x) = 3x - 4
and g(x) = xยฒ
[Conversation History, 5.9]:
(f โฆ g)(x) = f(g(x))
:g(x)
transformsx
intoxยฒ
(input forf
) [Conversation History].f(xยฒ) = 3(xยฒ) - 4 = **3xยฒ - 4**
(final result) [Conversation History, 5.9].
- Domain: Both
f(x)
andg(x)
have domains of all real numbers (โ) [Conversation History]. So,x
can be any real number, andg(x)
will always be a real number thatf(x)
can handle. Thus, the domain of(f โฆ g)(x)
is โ.
(g โฆ f)(x) = g(f(x))
:f(x)
transformsx
into3x - 4
(input forg
) [Conversation History].g(3x - 4) = (3x - 4)ยฒ = **9xยฒ - 24x + 16**
(final result) [Conversation History, 5.9].
- Domain: Similar to above, both
f(x)
andg(x)
have domains of โ. So, the domain of(g โฆ f)(x)
is also โ.
Notice how the order of composition produces different results [Conversation History].
Example 2: Shop Discounts (Real-World Application) ๐๏ธ๐ฐ A shop offers two discounts on a product with a Manufacturer’s Recommended Price (MRP) of ยฃ14,000 [Conversation History, 5.9].
- First discount (
f(x)
): 15% off the MRP. This means you pay 85% of the price. So,f(x) = 0.85x
[Conversation History, 5.9]. - Second discount (
g(x)
): A flat ยฃ3,000 discount. So,g(x) = x - 3000
[Conversation History, 5.9].
If the first discount is applied then the second, this is h(x) = g(f(x))
[Conversation History, 5.9]:
f(x)
(15% off) is applied first.- The result,
f(x)
, is then fed intog(x)
(the flat ยฃ3,000 discount).h(x) = g(f(x)) = g(0.85x) = 0.85x - 3000
[Conversation History, 5.9].
For an MRP of ยฃ14,000:
h(14000) = 0.85(14000) - 3000 = 11900 - 3000 = **ยฃ8,900**
[Conversation History, 5.9].
- Domain: In this real-world scenario,
x
(price) must be positive, soDomain(f)
is(0, โ)
. The outputf(x)
will also be positive, which is valid forg(x)
. Thus, the domain ofh(x)
is(0, โ)
.
Example 3: Composition with Domain Restrictions ๐
Let f(x) = 2/(x-1)
and g(x) = 3/x
[Conversation History, 5.9]. Let’s 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 )
[Conversation History, 5.9]. - Simplify:
2 / ( (3-x)/x ) = **2x / (3-x)**
[Conversation History, 5.9].
- Substitute
Domain of
(f โฆ g)(x)
๐:- Rule 1 (Domain of
g
):g(x) = 3/x
. The denominator cannot be zero. So,x โ 0
๐ซ [Conversation History, 5.9]. - Rule 2 (Output of
g
in domain off
):f(x) = 2/(x-1)
. Its input (g(x)
) cannot make its denominator zero. So,g(x)
cannot be1
[Conversation History, 5.9]. Setg(x) = 1
:3/x = 1
โก๏ธx = 3
[Conversation History, 5.9]. Therefore,x โ 3
๐ซ.
Combining these, the domain of
(f โฆ g)(x)
is all real numbers except 0 and 3. This can be written asโ \ {0, 3}
or(-โ, 0) โช (0, 3) โช (3, โ)
[Conversation History, 5.9].- Rule 1 (Domain of
Practice Questions with Solutions ๐
Let’s test your understanding with some fresh examples!
Question 1: Given the functions f(x) = xยฒ - 4
and g(x) = x + 2
.
Find:
(a) (f โฆ g)(x)
๐ค
(b) (g โฆ f)(x)
๐ค
Solution:
(a) (f โฆ g)(x) = f(g(x))
๐ก
1. First, the inner function g(x)
gives us x + 2
[5.9].
2. Then, we substitute x + 2
into f(x)
wherever x
appears: f(x + 2) = (x + 2)ยฒ - 4
[5.9].
3. Expand and simplify: (xยฒ + 4x + 4) - 4 = **xยฒ + 4x**
โ
(b) (g โฆ f)(x) = g(f(x))
๐ก
1. First, the inner function f(x)
gives us xยฒ - 4
[5.9].
2. Then, we substitute xยฒ - 4
into g(x)
wherever x
appears: g(xยฒ - 4) = (xยฒ - 4) + 2
[5.9].
3. Simplify: **xยฒ - 2**
โ
Question 2: A bakery has a process for making special cookies ๐ช.
- Step 1 (
P(x)
): For everyx
kilograms of dough, they add0.5x + 1
kilograms of chocolate chips ๐ซ. So,P(x) = 0.5x + 1
. - Step 2 (
C(y)
): The total mixturey
(dough + chips) is then cooked, and0.1y
kilograms evaporate ๐ฌ๏ธ, so the final cookie weight isy - 0.1y = 0.9y
. So,C(y) = 0.9y
.
Write the composite function that represents the final weight of cookies for x
kilograms of dough, and calculate the final cookie weight if they start with 10 kilograms of dough. ๐ญโ๏ธ
Solution:
Chocolate Chip Function (
P(x)
) ๐ก:P(x) = 0.5x + 1
. This function represents the amount of chocolate chips added based on the dough. Note: The problem states “total mixture y (dough + chips)”. So, P(x) should represent the total mixture. Let’s adjust P(x) to be the total mass after adding chips:P(x) = x + (0.5x + 1) = 1.5x + 1
.Cooking Function (
C(y)
) ๐ก:C(y) = 0.9y
. This function represents the final weight after cooking.Composite Function for Final Cookie Weight ๐: Since
P(x)
determines the mixture before cooking, andC(y)
takes that mixture as input, the composite function is**(C โฆ P)(x) = C(P(x))**
[5.9]. SubstituteP(x)
intoC(y)
:C(P(x)) = C(1.5x + 1) = 0.9(1.5x + 1)
Simplify:**W(x) = 1.35x + 0.9**
(where W is the final weight).Calculate Final Weight for x = 10 kg of dough ๐:
W(10) = 1.35(10) + 0.9
W(10) = 13.5 + 0.9
W(10) = **14.4 kilograms**
โ .
Question 3: Let f(x) = 1/x
and g(x) = x - 4
.
Find the domain of:
(a) (f โฆ g)(x)
๐
(b) (g โฆ f)(x)
๐
Solution:
(a) Domain of (f โฆ g)(x) = f(g(x))
๐ก:
* First, find the expression for (f โฆ g)(x)
:
f(g(x)) = f(x - 4) = **1/(x - 4)**
* Rule 1 (Domain of g
): g(x) = x - 4
is defined for all real numbers. So, x โ โ
โ
.
* Rule 2 (Output of g
in domain of f
): f(x) = 1/x
. Its input (g(x)
) cannot be zero. So, g(x) โ 0
.
Set g(x) = 0
: x - 4 = 0
โก๏ธ x = 4
๐ซ.
* Therefore, the domain of (f โฆ g)(x)
is all real numbers except 4. In interval notation: **(-โ, 4) โช (4, โ)**
๐.
(b) Domain of (g โฆ f)(x) = g(f(x))
๐ก:
* First, find the expression for (g โฆ f)(x)
:
g(f(x)) = g(1/x) = **(1/x) - 4**
* Rule 1 (Domain of f
): f(x) = 1/x
is defined for all real numbers except where its denominator is zero. So, x โ 0
๐ซ.
* Rule 2 (Output of f
in domain of g
): g(x) = x - 4
. Its input (f(x)
) can be any real number because there are no restrictions (e.g., square roots of negatives, division by zero) [Conversation History, 5.9]. So, f(x)
can be any real number, and g
can always process it โ
.
* Therefore, the domain of (g โฆ f)(x)
is all real numbers except 0. In interval notation: **(-โ, 0) โช (0, โ)**
๐.