Composite Functions - Algebra 3

  1. Let f(x)=x−1x+2f(x)=\frac{x-1}{x+2} and g(x)=2x+1g(x)=2x+1. Which value is excluded from the domain of (f∘g)(x)(f\circ g)(x)?
    Answer: x=−32x=-\frac{3}{2} When you see a composition like (f∘g)(x)(f\circ g)(x), the key is to remember that the input to ff is not xx; it is g(x)g(x). So you need g(x)g(x) to be defined, and then you need g(x)g(x) to be in the domain of ff. Here, g(x)=2x+1g(x)=2x+1 is defined for all real xx, and ff is undefined only when its denominator is zero: x+2=0⇒x=−2. x+2=0 \quad\Rightarrow\quad x=-2. So in the composition, f(g(x))=(2x+1)−1(2x+1)+2=2x2x+3, f(g(x))=\frac{(2x+1)-1}{(2x+1)+2}=\frac{2x}{2x+3}, you must exclude any xx where g(x)=−2g(x)=-2: 2x+1=−2⇒2x=−3⇒x=−32. 2x+1=-2 \quad\Rightarrow\quad 2x=-3 \quad\Rightarrow\quad x=-\frac{3}{2}. Thus x=−32x=-\frac{3}{2} is the excluded value. The choice x=−2x=-2 is a trap: it is excluded from ff's own domain, but that does not matter unless g(x)g(x) actually equals −2-2, which happens at −32-\frac{3}{2}, not at −2-2. The choice x=0x=0 makes the numerator zero, giving f(g(0))=f(1)=0f(g(0))=f(1)=0, which is perfectly allowed. The choice x=12x=\frac{1}{2} gives g(12)=2g\left(\frac12\right)=2, and f(2)=14f(2)=\frac14, so it is also valid. Study tip: for a composition, always substitute g(x)g(x) into ff's denominator and solve g(x)=excluded valueg(x)=\text{excluded value}, rather than using xx alone.
  2. Let f(x)=1x−1f(x)=\frac{1}{x-1} and g(x)=x+1xg(x)=\frac{x+1}{x}. Which expression is equal to (f∘g)(x)(f \circ g)(x) and gives its correct domain?
    Answer: xx, x≠0x\neq 0 First simplify: 1(x+1)/x−1=11/x=x\frac{1}{(x+1)/x-1}=\frac{1}{1/x}=x. The only restriction is x≠0x\neq 0 from the definition of gg; g(x)=1g(x)=1 has no solution, so ff adds no further restriction. Excluding x=1x=1 or x=−1x=-1 is unnecessary, and 1x\frac{1}{x} is a simplification error.
  3. A store applies a 20-dollar-off coupon before adding 7% sales tax. If an item's original price is pp dollars, which expression gives the final price F(p)F(p)?
    Answer: F(p)=1.07p−21.40F(p)=1.07p-21.40 When you see a coupon applied before tax, think of it as a two-step process: first adjust the price, then apply the multiplier for sales tax. The item starts at pp dollars, and the 20-dollar coupon is applied first, so the taxable price is p−20p-20. Adding 7% tax means multiplying by 1.071.07, giving F(p)=1.07(p−20)F(p)=1.07(p-20). Distributing, this becomes F(p)=1.07p−21.40F(p)=1.07p-21.40, which is the right expression. The choice F(p)=1.07p−20F(p)=1.07p-20 is the most common trap: it applies the coupon after tax, effectively charging tax on the original price and then subtracting 20 from the total. That would be correct only if the store taxed first and then applied the coupon. The choice F(p)=0.07p−20F(p)=0.07p-20 uses only the tax rate instead of the full multiplier 1.071.07, so it calculates the tax as a separate amount and then subtracts the coupon, which misses the original price entirely. Finally, F(p)=p−20F(p)=p-20 ignores the sales tax completely. A good strategy for these problems is to identify the order of operations in the wording. If a discount happens before tax, write (p−discount)(p-\text{discount}) first, then multiply by 1+tax rate1+\text{tax rate}. If tax is added first, multiply first and subtract after. Expanding the parentheses shows why the 21.40 appears.
  4. Let f(x)=2x+1f(x)=2x+1 for x<0x<0 and f(x)=x2−1f(x)=x^2-1 for x≥0x\ge0. If g(x)=2−xg(x)=2-x, find (f∘g)(2)(f\circ g)(2).
    Answer: −1-1 Whenever you see a composite function with a piecewise definition, work from the inside out. First evaluate the inner function, then decide which piece of ff applies using the value you got, not the original xx. Here, g(2)=2−2=0g(2)=2-2=0, so (f∘g)(2)=f(0)(f\circ g)(2)=f(0). Since 00 satisfies x≥0x\ge 0, you must use the second branch: f(0)=02−1=−1f(0)=0^2-1=-1. So the value is −1-1. Now look at the wrong answers to see what they represent. Choosing 11 means you used the first branch 2x+12x+1 for f(0)f(0), but that branch requires x<0x<0, and 00 is not less than 00. Choosing 55 means you evaluated f(2)f(2) instead of f(g(2))f(g(2)): 2(2)+1=52(2)+1=5, which also uses the wrong branch since 2≥02\ge 0. Choosing −3-3 comes from reversing the composition or stacking errors: if you incorrectly compute f(2)=5f(2)=5, then g(5)=2−5=−3g(5)=2-5=-3, but the composition asks for f(g(2))f(g(2)), not g(f(2))g(f(2)). A useful habit for piecewise composition: evaluate the inner function first, write down its exact output, and then check which interval that output falls into before choosing a branch. This prevents the most common traps of using the wrong piece or the wrong order.
  5. If (f∘g)(x)=x2+4x+7(f\circ g)(x)=x^2+4x+7 and g(x)=x+2g(x)=x+2, which of the following is f(x)f(x)?
    Answer: f(x)=x2+3f(x)=x^2+3 When you see a composite function like (f∘g)(x)(f\circ g)(x), remember it means f(g(x))f(g(x)). Here g(x)=x+2g(x)=x+2, so you need a function ff such that f(x+2)=x2+4x+7f(x+2)=x^2+4x+7. Let y=x+2y=x+2, so x=y−2x=y-2. Substitute into the composite: f(y)=(y−2)2+4(y−2)+7f(y)=(y-2)^2+4(y-2)+7. Expanding, y2−4y+4+4y−8+7=y2+3y^2-4y+4+4y-8+7=y^2+3. Since yy is just a placeholder, f(x)=x2+3f(x)=x^2+3. The choice x2+4x+7x^2+4x+7 is the original composite itself—it confuses the input xx with the input x+2x+2. The choice x2+7x^2+7 misses the constant adjustment from substituting x=y−2x=y-2, likely because it ignores the linear terms. The choice x2+4x+3x^2+4x+3 also fails: if you try f(x)=x2+4x+3f(x)=x^2+4x+3, then f(x+2)=x2+8x+15f(x+2)=x^2+8x+15, not the given composite. Your takeaway: when solving for an outer function, substitute u=g(x)u=g(x), rewrite the composite entirely in terms of uu, then replace uu with xx. This prevents the common trap of treating the composite expression as already being f(x)f(x).
  6. Let f(x)=x2−1f(x)=x^2-1 and g(x)=2sin⁡xg(x)=2\sin x. How many values of xx in [0,2π)[0,2\pi) satisfy (f∘g)(x)=0(f \circ g)(x)=0?
    Answer: 4 (f∘g)(x)=4sin⁡2x−1(f\circ g)(x)=4\sin^2 x-1. Setting this to zero gives sin⁡x=±12\sin x=\pm\frac12. In [0,2π)[0,2\pi), sin⁡x=12\sin x=\frac12 at π/6\pi/6 and 5π/65\pi/6, and sin⁡x=−12\sin x=-\frac12 at 7π/67\pi/6 and 11π/611\pi/6, for 4 solutions.
  7. Let f(x)=x2−3xf(x)=x^2-3x and g(x)=2x+1g(x)=2x+1. Find all xx for which (f∘g)(x)=(g∘f)(x)(f\circ g)(x)=(g\circ f)(x).
    Answer: x=−2±102x=\frac{-2\pm\sqrt{10}}{2} Whenever you see a composition question like this, your first step should be to build each composite separately. Remember (f∘g)(x)(f\circ g)(x) means plug g(x)g(x) into ff, while (g∘f)(x)(g\circ f)(x) means plug f(x)f(x) into gg. Here, (f∘g)(x)=(2x+1)2−3(2x+1)=4x2−2x−2(f\circ g)(x)=(2x+1)^2-3(2x+1)=4x^2-2x-2, and (g∘f)(x)=2(x2−3x)+1=2x2−6x+1(g\circ f)(x)=2(x^2-3x)+1=2x^2-6x+1. Set them equal: 4x2−2x−2=2x2−6x+1⇒2x2+4x−3=0. 4x^2-2x-2=2x^2-6x+1 \Rightarrow 2x^2+4x-3=0. By the quadratic formula, x=−4±42−4(2)(−3)2(2)=−4±404=−4±2104=−2±102. x=\frac{-4\pm\sqrt{4^2-4(2)(-3)}}{2(2)} =\frac{-4\pm\sqrt{40}}{4} =\frac{-4\pm 2\sqrt{10}}{4} =\frac{-2\pm\sqrt{10}}{2}. So the correct expression is −2±102\frac{-2\pm\sqrt{10}}{2}. The choice −2±10-2\pm\sqrt{10} is double the correct answer; it treats the fraction −4±2104\frac{-4\pm2\sqrt{10}}{4} as if only the numerator were divided by 22. The choice −2±104\frac{-2\pm\sqrt{10}}{4} comes from factoring 22 out of the numerator but then failing to cancel it with the denominator 44. The choice 2±102\frac{2\pm\sqrt{10}}{2} uses +4+4 instead of −4-4 for the −b-b term in the quadratic formula — a sign error. For your study tip: whenever you get a result involving radicals, always check whether you can simplify the fraction by canceling common factors, and double-check the sign on bb in the quadratic formula. Compositions just ask you to substitute carefully — once the two expressions are set equal, it's just a quadratic.
  8. Let f(x)=1x2f(x)=\frac{1}{x^2} and g(x)=x+2g(x)=\sqrt{x+2}. What is the domain of (f∘g)(x)(f \circ g)(x)?
    Answer: (−2,∞)(-2,\infty) (f∘g)(x)=1(x+2)2=1x+2(f\circ g)(x)=\frac{1}{(\sqrt{x+2})^2}=\frac{1}{x+2}. The square root requires x≥−2x\ge -2, and the denominator requires x+2≠0x+2\neq 0, so x>−2x>-2. The interval including -2 makes the denominator zero, and the other intervals are not related to the actual restrictions.
  9. Let f(x)=x2−4f(x)=x^2-4 and g(x)=x+2g(x)=\sqrt{x+2}. How many real solutions does the equation (f∘g)(x)=(g∘f)(x)(f \circ g)(x)=(g \circ f)(x) have?
    Answer: 0 Compute f(g(x))=x−2f(g(x))=x-2 for x≥−2x\ge -2, and g(f(x))=x2−2g(f(x))=\sqrt{x^2-2} for x2≥2x^2\ge 2. The equation x−2=x2−2x-2=\sqrt{x^2-2} forces x≥2x\ge 2. Squaring gives x2−4x+4=x2−2x^2-4x+4=x^2-2, hence x=3/2x=3/2, which contradicts x≥2x\ge 2. So there are no real solutions.
  10. Let f(x)=xf(x)=\sqrt{x} and g(x)=x2−4x−2g(x)=\frac{x^2-4}{x-2}. What is the domain of (f∘g)(x)(f \circ g)(x)?
    Answer: [−2,2)∪(2,∞)[-2,2)\cup(2,\infty) For x≠2x\neq 2, g(x)=x+2g(x)=x+2, and at x=2x=2 the formula for gg is undefined. Since ff requires g(x)≥0g(x)\ge 0, we need x+2≥0x+2\ge 0 and x≠2x\neq 2, giving [−2,2)∪(2,∞)[-2,2)\cup(2,\infty). Including 2 ignores the hole, excluding -2 is too restrictive, and the reversed interval has the wrong sign.
  11. Let f(x)=9−x2f(x)=\sqrt{9-x^2}. Which of the following functions gg makes (f∘g)(x)(f \circ g)(x) have domain all real numbers?
    Answer: g(x)=3cos⁡xg(x)=3\cos x For ff to be defined, 9−(g(x))2≥09-(g(x))^2\ge 0, i.e. ∣g(x)∣≤3|g(x)|\le 3. The cosine function multiplied by 3 has range [−3,3][-3,3], so the composition is defined for every real xx. The quadratic choices either exceed 3 in absolute value for some xx or never enter the interval, so each fails.
  12. Let f(x)=1x+1f(x)=\frac{1}{x+1} and g(x)=1xg(x)=\frac{1}{x}. Which set is the domain of (f∘g)(x)(f\circ g)(x)?
    Answer: x≠0x\ne0 and x≠−1x\ne-1 When you see composition (f∘g)(x)(f\circ g)(x), you're plugging one function into another. The domain is not automatically the domain of the outer function; it's all inputs that are allowed in the inner function and whose outputs are then allowed in the outer function. Start with g(x)=1xg(x)=\frac1x, which requires x≠0x\ne0. Now compute f(g(x))=f(1x)=11x+1f(g(x))=f\left(\frac1x\right)=\frac{1}{\frac1x+1}. The outer function ff is undefined when its input equals −1-1. So you also need 1x≠−1\frac1x\ne -1. Solving 1x=−1\frac1x=-1 gives x=−1x=-1. Therefore x=0x=0 is excluded by gg, and x=−1x=-1 is excluded because it makes g(x)=−1g(x)=-1,which is outside the domain of ff. The correct domain is x≠0x\ne0 and x≠−1x\ne-1. Why the others miss the full picture: the choice x≠0x\ne0 andx≠1x\ne1 includes an unnecessary restriction — at x=1x=1, g(1)=1g(1)=1, then f(1)=12f(1)=\frac12, so it's perfectly defined. The choice x≠−1x\ne-1 alone forgets that gg itself is undefined at 00. The choice x≠0x\ne0 alone misses the composition break at x=−1x=-1, where g(−1)=−1g(-1)=-1, causing division by zero in ff. The correct answer must combine both restrictions: the inner function's domain and the outer function's domain applied to the inner output. Strategy: for composition questions, find the inner domain first, then set the inner output equal to whatever makes the outer function undefined, and exclude those xx-values too. This two-step check prevents missing restrictions.
  13. Suppose f(x)=2x−5f(x)=2x-5 and (f∘g)(x)=6x+1(f \circ g)(x)=6x+1. What is (g∘f)(x)(g \circ f)(x)?
    Answer: 6x−126x-12 From 2g(x)−5=6x+12g(x)-5=6x+1, solve g(x)=3x+3g(x)=3x+3. Then g(f(x))=3(2x−5)+3=6x−12g(f(x))=3(2x-5)+3=6x-12. The other expressions come from sign errors or composing in the wrong order.
  14. Let f(x)=x−1x+2f(x)=\frac{x-1}{x+2} and g(x)=2x−3g(x)=\frac{2}{x-3}. Which expression is equal to (f∘g)(x)(f \circ g)(x), and what is its domain?
    Answer: 5−x2(x−2)\frac{5-x}{2(x-2)}, domain x≠2,3x\neq 2,3 Compute f(g(x))=2/(x−3)−12/(x−3)+2=5−x2(x−2)f(g(x))=\frac{2/(x-3)-1}{2/(x-3)+2}=\frac{5-x}{2(x-2)}. The domain excludes x=3x=3 because gg is undefined, and x=2x=2 because g(2)=−2g(2)=-2, where ff is undefined. Omitting the x=3x=3 restriction, using the opposite numerator sign, or keeping x−3x-3 in the denominator are the common errors.
  15. Let f(x)=x+1f(x)=\sqrt{x+1} and g(x)=x2−1g(x)=x^2-1. Which statement is true?
    Answer: (f∘g)(x)=∣x∣(f \circ g)(x)=|x| for all real xx. (f∘g)(x)=x2=∣x∣(f\circ g)(x)=\sqrt{x^2}=|x| for all real xx. (g∘f)(x)=x(g\circ f)(x)=x only for x≥−1x\ge -1, not for all real xx. Thus the true statement is the one saying f∘gf\circ g equals ∣x∣|x|.
  16. Let f(x)=1x+1f(x)=\frac{1}{x+1} and g(x)=x−1x+2g(x)=\frac{x-1}{x+2}. Which set of xx-values must be excluded from the domain of (f∘g)(x)(f \circ g)(x)?
    Answer: {−2,−12}\{-2,-\frac{1}{2}\} gg is undefined at x=−2x=-2. Also f(g(x))f(g(x)) is undefined when g(x)=−1g(x)=-1; solving x−1x+2=−1\frac{x-1}{x+2}=-1 gives x=−12x=-\frac12. The excluded set is {−2,−12}\{-2,-\frac12\}. The set containing −1-1 confuses ff's own undefined input with a composition restriction, and 12\frac12 is a sign error.
  17. Let f(x)=3x−1f(x)=3x-1 and g(x)=x2+2g(x)=x^2+2. If h(x)=(f∘g)(x)−(g∘f)(x)h(x)=(f\circ g)(x)-(g\circ f)(x), which expression is equivalent to h(x)h(x)?
    Answer: −6x2+6x+2-6x^2+6x+2 Whenever you see function composition like (f∘g)(x)(f\circ g)(x), read it as f(g(x))f(g(x)): apply the inner function first, then plug that entire result into the outer function. On questions like this, the safest process is to compute f(g(x))f(g(x)) and g(f(x))g(f(x)) separately before subtracting. Here f(g(x))=3(x2+2)−1=3x2+5f(g(x))=3(x^2+2)-1=3x^2+5. And g(f(x))=(3x−1)2+2=9x2−6x+3g(f(x))=(3x-1)^2+2=9x^2-6x+3. Subtracting: (3x2+5)−(9x2−6x+3)=−6x2+6x+2(3x^2+5)-(9x^2-6x+3)=-6x^2+6x+2. So the expression −6x2+6x+2-6x^2+6x+2 is correct. The distractor −6x2−6x+2-6x^2-6x+2 usually comes from squaring (3x−1)(3x-1) as 9x2+6x+19x^2+6x+1; the cross term inside g(f(x))g(f(x)) has the wrong sign, which flips the middle term in the final answer. The choice 6x2−6x−26x^2-6x-2 is exactly what you get if you reverse the order and compute (g∘f)−(f∘g)(g\circ f)-(f\circ g) instead. The remaining choice 6x2+6x+26x^2+6x+2 combines that reversal with a sign error in the squared binomial and a constant slip; testing your result at x=0x=0 or x=1x=1 would reveal it doesn't match. Study tip: When subtracting one composite expression from another, put parentheses around the entire second expression and distribute the minus sign term-by-term. Also remember (a−b)2=a2−2ab+b2(a-b)^2=a^2-2ab+b^2 — the middle sign is easy to drop.
  18. Let f(x)=x−af(x)=\sqrt{x-a} and g(x)=x2−2g(x)=x^2-2. If the domain of (f∘g)(x)(f \circ g)(x) is (−∞,−3]∪[3,∞)(-\infty,-3]\cup[3,\infty), what is the value of aa?
    Answer: 7 (f∘g)(x)=x2−2−a(f\circ g)(x)=\sqrt{x^2-2-a}. Its domain is x2≥a+2x^2\ge a+2. For the boundary to be ±3\pm 3, a+2=9a+2=9, so a=7a=7. The value 9 is the value of a+2a+2, not aa.
  19. Let f(x)=1x−2f(x)=\frac{1}{x-2} and g(x)=xg(x)=\sqrt{x}. Which set is the domain of (f∘g)(x)(f\circ g)(x)?
    Answer: x≥0x\ge0 and x≠4x\ne4 Whenever you see a composition like (f∘g)(x)(f\circ g)(x), remember that the domain must satisfy both functions: the input has to work in gg, and the output of gg has to work in ff. Start with g(x)=xg(x)=\sqrt{x}, so you already need x≥0x\ge 0. Now compute the composition: (f∘g)(x)=f(x)=1x−2. (f\circ g)(x)=f(\sqrt{x})=\frac{1}{\sqrt{x}-2}. The denominator forces x≠2\sqrt{x}\ne 2,which means x≠4x\ne 4. Thus the domain is x≥0x\ge 0 and x≠4x\ne 4. The choice that says "x≥0x\ge0 and x≠2x\ne2" is a classic trap: it nowhere checks ff's restriction on x\sqrt{x} instead of on xx. Actually x=2x=2 is fine, since 2−2≠0\sqrt2-2\ne0. The choice that simply says "x≥0x\ge0" misses the denominator issue entirely. And the choice that says "x>0x>0 and x≠4x\ne4" incorrectly excludes x=0x=0, but 0=0\sqrt0=0, so f(0)=1/(0−2)f(0)=1/(0-2) is defined. So for composition problems, run the input through the inner function first,then ask whether that result is allowed by the outer function. Check both layers and you will avoid the most common domain mistakes.
  20. Let f(x)=3x−2f(x)=\frac{3}{x-2}. Which function gg satisfies (f∘g)(x)=x(f \circ g)(x)=x for every xx in the domain of gg?
    Answer: g(x)=2x+3xg(x)=\frac{2x+3}{x} Set 3g(x)−2=x\frac{3}{g(x)-2}=x. Then g(x)−2=3xg(x)-2=\frac{3}{x}, so g(x)=2+3x=2x+3xg(x)=2+\frac{3}{x}=\frac{2x+3}{x}. The alternatives give −x-x, 3xx+2\frac{3x}{x+2}, or a different rational function.

Start this quiz