Composite Functions | Domain

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]:

  1. Rule 1: The initial input x must be acceptable to the inner function g ๐Ÿšซ.

    • If your x is not in the domain of g (x โˆ‰ Domain(g)), then g(x) simply won’t exist. If g(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.
  2. Rule 2: The output of the inner function g(x) must be acceptable to the outer function f โœ….

    • You must exclude any x values for which the output g(x) falls outside the domain of f (g(x) โˆ‰ Domain(f)) [Conversation History, 5.9]. Even if g(x) produces a value, that value might be something f 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!

Combining these two rules, the domain of (f โ—ฆ g)(x) consists of all x such that:

  • x is in the domain of g [5.9].
  • g(x) is in the domain of f [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)):

    1. g(x) transforms x into xยฒ (input for f) [Conversation History].
    2. f(xยฒ) = 3(xยฒ) - 4 = **3xยฒ - 4** (final result) [Conversation History, 5.9].
    • Domain: Both f(x) and g(x) have domains of all real numbers (โ„) [Conversation History]. So, x can be any real number, and g(x) will always be a real number that f(x) can handle. Thus, the domain of (f โ—ฆ g)(x) is โ„.
  • (g โ—ฆ f)(x) = g(f(x)):

    1. f(x) transforms x into 3x - 4 (input for g) [Conversation History].
    2. g(3x - 4) = (3x - 4)ยฒ = **9xยฒ - 24x + 16** (final result) [Conversation History, 5.9].
    • Domain: Similar to above, both f(x) and g(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]:

  1. f(x) (15% off) is applied first.
  2. The result, f(x), is then fed into g(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, so Domain(f) is (0, โˆž). The output f(x) will also be positive, which is valid for g(x). Thus, the domain of h(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)):

    1. Substitute g(x) into f(x): f(3/x) = 2 / ( (3/x) - 1 ) [Conversation History, 5.9].
    2. Simplify: 2 / ( (3-x)/x ) = **2x / (3-x)** [Conversation History, 5.9].
  • Domain of (f โ—ฆ g)(x) ๐ŸŒ:

    1. Rule 1 (Domain of g): g(x) = 3/x. The denominator cannot be zero. So, x โ‰  0 ๐Ÿšซ [Conversation History, 5.9].
    2. Rule 2 (Output of g in domain of f): f(x) = 2/(x-1). Its input (g(x)) cannot make its denominator zero. So, g(x) cannot be 1 [Conversation History, 5.9]. Set g(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].


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 every x kilograms of dough, they add 0.5x + 1 kilograms of chocolate chips ๐Ÿซ. So, P(x) = 0.5x + 1.
  • Step 2 (C(y)): The total mixture y (dough + chips) is then cooked, and 0.1y kilograms evaporate ๐ŸŒฌ๏ธ, so the final cookie weight is y - 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:

  1. 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.

  2. Cooking Function (C(y)) ๐Ÿ’ก: C(y) = 0.9y. This function represents the final weight after cooking.

  3. Composite Function for Final Cookie Weight ๐Ÿ”—: Since P(x) determines the mixture before cooking, and C(y) takes that mixture as input, the composite function is **(C โ—ฆ P)(x) = C(P(x))** [5.9]. Substitute P(x) into C(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).

  4. 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, โˆž)** ๐ŸŒ.