Algebra 3 Quiz: Composite Functions
12 questions · exam conditions
0:00
Composite FunctionsQuestion 1 of 12

Let f(x)=1x2f(x)=\frac{1}{x-2} and g(x)=xg(x)=\sqrt{x}. Which set is the domain of (fg)(x)(f\circ g)(x)?

x0x\ge0 and x2x\ne2
x0x\ge0
x0x\ge0 and x4x\ne4
x>0x>0 and x4x\ne4
← Back to quizzes

Algebra 3 Quiz

Algebra 3 Quiz: Composite Functions

Practice Composite Functions in Algebra 3 with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Composite Functions, giving you a quick way to practice the rules, question types, and explanations that matter most for Algebra 3.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

Let f(x)=1x2f(x)=\frac{1}{x-2} and g(x)=xg(x)=\sqrt{x}. Which set is the domain of (fg)(x)(f\circ g)(x)?

  1. x0x\ge0 and x2x\ne2
  2. x0x\ge0
  3. x0x\ge0 and x4x\ne4 (correct answer)
  4. x>0x>0 and x4x\ne4
Explanation: Whenever you see a composition like (fg)(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 x0x\ge 0. Now compute the composition: (fg)(x)=f(x)=1x2.(f\circ g)(x)=f(\sqrt{x})=\frac{1}{\sqrt{x}-2}. The denominator forces x2\sqrt{x}\ne 2,which means x4x\ne 4. Thus the domain is x0x\ge 0 and x4x\ne 4. The choice that says "x0x\ge0 and x2x\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 220\sqrt2-2\ne0. The choice that simply says "x0x\ge0" misses the denominator issue entirely. And the choice that says "x>0x>0 and x4x\ne4" incorrectly excludes x=0x=0, but 0=0\sqrt0=0, so f(0)=1/(02)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.

Question 2

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)?

  1. F(p)=1.07p21.40F(p)=1.07p-21.40 (correct answer)
  2. F(p)=1.07p20F(p)=1.07p-20
  3. F(p)=0.07p20F(p)=0.07p-20
  4. F(p)=p20F(p)=p-20
Explanation: 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 p20p-20. Adding 7% tax means multiplying by 1.071.07, giving F(p)=1.07(p20)F(p)=1.07(p-20). Distributing, this becomes F(p)=1.07p21.40F(p)=1.07p-21.40, which is the right expression. The choice F(p)=1.07p20F(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.07p20F(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)=p20F(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 (pdiscount)(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.

Question 3

Let f(x)=2x+1f(x)=2x+1 for x<0x<0 and f(x)=x21f(x)=x^2-1 for x0x\ge0. If g(x)=2xg(x)=2-x, find (fg)(2)(f\circ g)(2).

  1. 3-3
  2. 11
  3. 55
  4. 1-1 (correct answer)
Explanation: 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)=22=0g(2)=2-2=0, so (fg)(2)=f(0)(f\circ g)(2)=f(0). Since 00 satisfies x0x\ge 0, you must use the second branch: f(0)=021=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 202\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)=25=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.

Question 4

Let f(x)=3x1f(x)=3x-1 and g(x)=x2+2g(x)=x^2+2. If h(x)=(fg)(x)(gf)(x)h(x)=(f\circ g)(x)-(g\circ f)(x), which expression is equivalent to h(x)h(x)?

  1. 6x26x+2-6x^2-6x+2
  2. 6x26x26x^2-6x-2
  3. 6x2+6x+2-6x^2+6x+2 (correct answer)
  4. 6x2+6x+26x^2+6x+2
Explanation: Whenever you see function composition like (fg)(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))=(3x1)2+2=9x26x+3g(f(x))=(3x-1)^2+2=9x^2-6x+3. Subtracting: (3x2+5)(9x26x+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 6x26x+2-6x^2-6x+2 usually comes from squaring (3x1)(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 6x26x26x^2-6x-2 is exactly what you get if you reverse the order and compute (gf)(fg)(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 (ab)2=a22ab+b2(a-b)^2=a^2-2ab+b^2 — the middle sign is easy to drop.

Question 5

Let f(x)=x1x+2f(x)=\frac{x-1}{x+2} and g(x)=2x+1g(x)=2x+1. Which value is excluded from the domain of (fg)(x)(f\circ g)(x)?

  1. x=0x=0
  2. x=2x=-2
  3. x=32x=-\frac{3}{2} (correct answer)
  4. x=12x=\frac{1}{2}
Explanation: When you see a composition like (fg)(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=0x=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=22x=3x=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.

Question 6

Let f(x)=xf(x)=\sqrt{x} and g(x)=x1x+2g(x)=\frac{x-1}{x+2}. What is the domain of (fg)(x)(f\circ g)(x)?

  1. x2x\le-2 or x1x\ge1
  2. x<2x<-2 or x1x\ge1 (correct answer)
  3. 2<x1-2<x\le1
  4. x>2x>-2
Explanation: Whenever you see a composite function like (fg)(x)(f\circ g)(x), think in two layers: first, g(x)g(x) must be defined; second, its output must be in the domain of ff. Since f(x)=xf(x)=\sqrt{x}, you need g(x)0g(x)\ge 0. So here you need x1x+20\frac{x-1}{x+2}\ge 0 and x2x\ne -2. Solve that rational inequality by testing intervals around the critical values x=2x=-2 and x=1x=1. For x<2x<-2, numerator and denominator are both negative, so the fraction is positive — good. For 2<x<1-2<x<1, the fraction is negative — not allowed. For x>1x>1, it is positive — good. At x=1x=1, the fraction equals 00, and 0\sqrt{0} is defined, so include 11. At x=2x=-2, g(x)g(x) is undefined, so exclude it. Thus the domain is x<2orx1.x<-2 \quad \text{or} \quad x\ge 1. The choice saying x2x\le -2 or x1x\ge1 is close but wrongly includes x=2x=-2. The choice 2<x1-2<x\le1 includes exactly the interval where the fraction is negative, so it fails. And x>2x>-2 also covers that negative interval while omitting the valid region x<2x<-2. The correct domain keeps the denominator-zero value excluded but includes the numerator-zero value. A useful habit for composite domain problems: make a sign chart for the inside function's output, exclude values where it is undefined, and include values where the outside function can accept the result. That two-step check avoids most domain traps.

Question 7

Let f(x)=1x+1f(x)=\frac{1}{x+1} and g(x)=1xg(x)=\frac{1}{x}. Which set is the domain of (fg)(x)(f\circ g)(x)?

  1. x0x\ne0 and x1x\ne1
  2. x1x\ne-1
  3. x0x\ne0
  4. x0x\ne0 and x1x\ne-1 (correct answer)
Explanation: When you see composition (fg)(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 x0x\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 1x1\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 x0x\ne0 and x1x\ne-1. Why the others miss the full picture: the choice x0x\ne0 andx1x\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 x1x\ne-1 alone forgets that gg itself is undefined at 00. The choice x0x\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.

Question 8

Let f(x)=x23xf(x)=x^2-3x and g(x)=2x+1g(x)=2x+1. Find all xx for which (fg)(x)=(gf)(x)(f\circ g)(x)=(g\circ f)(x).

  1. x=2±102x=\frac{-2\pm\sqrt{10}}{2} (correct answer)
  2. x=2±10x=-2\pm\sqrt{10}
  3. x=2±104x=\frac{-2\pm\sqrt{10}}{4}
  4. x=2±102x=\frac{2\pm\sqrt{10}}{2}
Explanation: Whenever you see a composition question like this, your first step should be to build each composite separately. Remember (fg)(x)(f\circ g)(x) means plug g(x)g(x) into ff, while (gf)(x)(g\circ f)(x) means plug f(x)f(x) into gg. Here, (fg)(x)=(2x+1)23(2x+1)=4x22x2(f\circ g)(x)=(2x+1)^2-3(2x+1)=4x^2-2x-2, and (gf)(x)=2(x23x)+1=2x26x+1(g\circ f)(x)=2(x^2-3x)+1=2x^2-6x+1. Set them equal: 4x22x2=2x26x+12x2+4x3=0.4x^2-2x-2=2x^2-6x+1 \Rightarrow 2x^2+4x-3=0. By the quadratic formula, x=4±424(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.

Question 9

Let f(x)=3x2f(x)=3x-2. If (fg)(x)=x(f\circ g)(x)=x, which could be g(x)g(x)?

  1. g(x)=x23g(x)=\frac{x-2}{3}
  2. g(x)=x+23g(x)=\frac{x+2}{3} (correct answer)
  3. g(x)=3x+2g(x)=3x+2
  4. g(x)=x+2g(x)=x+2
Explanation: When you see (fg)(x)=x(f\circ g)(x)=x, you're being asked to undo ff: gg must be the inverse of ff, because plugging g(x)g(x) into ff returns the original xx. Start with f(g(x))=xf(g(x))=x, so 3g(x)2=x3g(x)-2=x. Solve for g(x)g(x): add 22 to both sides to get 3g(x)=x+23g(x)=x+2, then divide by 33. This gives g(x)=x+23g(x)=\frac{x+2}{3}. You can verify: f(x+23)=3(x+23)2=x+22=xf\left(\frac{x+2}{3}\right)=3\left(\frac{x+2}{3}\right)-2=x+2-2=x. The distractor g(x)=x23g(x)=\frac{x-2}{3} comes from using x2x-2 instead of x+2x+2, a sign error; plugging it in gives x4x-4, not xx. The expression g(x)=3x+2g(x)=3x+2 misunderstands "undoing" as "doing same operation with different numbers"; plugging it in gives 9x+49x+4, definitely not xx. Similarly, g(x)=x+2g(x)=x+2 only reverses the subtraction before multiplication; plugging it in gives 3x+43x+4, not xx. All three fail the defining test that composition equals identity. So on this exam, when a composition equals xx, solve directly by isolating g(x)g(x), then verify by substituting back into ff. Watch the order and sign of inverse operations: for 3x23x-2, add 22 first, evinthen divide by 33.

Question 10

If (fg)(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)?

  1. f(x)=x2+4x+7f(x)=x^2+4x+7
  2. f(x)=x2+3f(x)=x^2+3 (correct answer)
  3. f(x)=x2+7f(x)=x^2+7
  4. f(x)=x2+4x+3f(x)=x^2+4x+3
Explanation: When you see a composite function like (fg)(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=y2x=y-2. Substitute into the composite: f(y)=(y2)2+4(y2)+7f(y)=(y-2)^2+4(y-2)+7. Expanding, y24y+4+4y8+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=y2x=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).

Question 11

Let f(x)=x5f(x)=\sqrt{x-5} and g(x)=x2+5g(x)=x^2+5. What is the domain of (fg)(x)(f\circ g)(x)?

  1. x0x\ge 0
  2. x5x\ge 5
  3. x5x\le -5 or x5x\ge 5
  4. all real numbers\text{all real numbers} (correct answer)
Explanation: Whenever you see a composition like (fg)(x)(f\circ g)(x), your first move is to write it out: f(g(x))f(g(x)). Don't just look at ff's domain and apply it to xx directly. Here, f(x)=x5f(x)=\sqrt{x-5}, so f(g(x))=g(x)5f(g(x))=\sqrt{g(x)-5}. Since g(x)=x2+5g(x)=x^2+5, this becomes (x2+5)5=x2.\sqrt{(x^2+5)-5}=\sqrt{x^2}. Now ask: when is x2\sqrt{x^2} defined? The radicand is x2x^2, and x20x^2\ge 0 for every real number xx. So the domain is all real numbers. The choice x0x\ge 0 is too restrictive: negative values of xx still produce a nonnegative x2x^2, so they are perfectly valid.
The choice x5x\ge 5 confuses the range of gg—which is always at least 55—with a restriction on xx itself; xx can be anything.
The choice x5x\le -5 or x5x\ge 5 would be the domain for something like x225\sqrt{x^2-25}, but here the radicand simplifies to x2x^2, not x225x^2-25. That choice over-restricts by solving an inequality that doesn't apply.
For your study strategy: always substitute and simplify the composition first. A restricted domain like x5x\ge 5 for ff can disappear after composing, because gg's outputs may already satisfy ff's requirements. On exam day, simplify the composed expression before deciding the domain.

Question 12

Let f(x)=x+3f(x)=\sqrt{x+3} and g(x)=x21g(x)=x^2-1. Which statement about the domains of fgf\circ g and gfg\circ f is true?

  1. Domain of fgf\circ g is all real numbers; domain of gfg\circ f is x3x\ge-3. (correct answer)
  2. Domain of fgf\circ g is all real numbers; domain of gfg\circ f is all real numbers.
  3. Domain of fgf\circ g is x3x\ge-3; domain of gfg\circ f is all real numbers.
  4. Domain of fgf\circ g is x1x\ge-1; domain of gfg\circ f is x3x\ge-3.
Explanation: Whenever you see composite functions, first ask: what input xx keeps every evaluation legal? For fgf\circ g, xx goes into gg first. g(x)=x21g(x)=x^2-1 is a polynomial, so its domain is all real numbers. Then its output must be in the domain of ff, which requires the input to ff to be 3\ge -3. So you need g(x)+3=(x21)+3=x2+20g(x)+3=(x^2-1)+3=x^2+2\ge 0. Since x2+2x^2+2 is always positive, fgf\circ g has domain all real numbers. For gfg\circ f, xx goes into ff first, so you need x+30x+3\ge 0, meaning x3x\ge -3. The outer function gg accepts any real output, so the domain of gfg\circ f is exactly x3x\ge -3. The statement saying both domains are all real numbers comes from simplifying g(f(x))=x+2g(f(x))=x+2 and forgetting that the original ff is undefined for x<3x<-3. The statement claiming fgf\circ g is x3x\ge -3 and gfg\circ f is all real numbers reverses which composition carries the restriction: fgf\circ g has no restriction, while gfg\circ f requires x3x\ge -3. The statement claiming fgf\circ g is x1x\ge -1 has no basis: x2+20x^2+2\ge 0 holds for every real xx, not just x1x\ge -1. Study tip: To find the domain of a composition, first restrict inputs to the inner function's domain, then require the inner output to satisfy the outer function's domain. Never rely only on the simplified final formula.