Ten problems on functions: evaluating f at numbers and expressions, domains limited by a denominator or a square root, a piecewise shipping charge, ranges from completing the square, composing two functions in both orders, the domain of a composite, difference quotients, coupons applied in two orders, a composite whose simplified formula hides its domain, and the area of a spreading ripple, with worked solutions and the mistakes of distributing f over a sum, losing the negative root of a denominator, multiplying instead of composing, reading a domain from the simplified formula, and assuming the order of composition does not matter.
Before you start
A function is a rule that turns each allowed input into exactly one output, and most of precalculus is asking three questions about such a rule: which inputs are allowed, which outputs come out, and what happens when one rule is fed into another. These ten problems practice function notation until f(a+1) is as routine as ,f(3), find domains and ranges from the formula, and compose functions in both orders, including a shipping charge, two coupons at a checkout and a ripple spreading on a pond. Two of the mistakes at the end treat f as a number to be multiplied rather than a rule to be applied; the other three are about domains and the order of composition.
Function notation.f(x) is the output of the rule f at the input ;x; it is not f times .x. To find ,f(anything), replace every x in the formula by that thing, in brackets.
Domain. The set of inputs for which the formula gives a real number. Two things restrict it in this chapter: a denominator cannot be ,0, and the expression under a square root cannot be negative.
Range. The set of outputs the function actually produces as x runs over the domain.
Interval notation.[a,b] includes both ends, (a,b) excludes both, and ∪ joins two pieces: (−∞,2)∪(2,∞) is every real number except .2.
Composition.:(f∘g)(x)=f(g(x)): apply g first, then apply f to the result. Its domain is every x in the domain of g whose output g(x) is in the domain of .f.
Difference quotient.hf(x+h)−f(x) for :h=0: the average rate of change of f between x and .x+h. Calculus begins with this expression.
For ,f(x)=2x2−3x+1, find ,f(−2),f(21) and .f(a+1).
·
Find the domain of each function: (a) ,f(x)=x2−9x+1, (b) ,g(x)=10−2x, (c) .h(x)=x−2x+4.
··
A courier charges by the weight w of a parcel, in kilograms, up to 30 kg:
C(w)=⎩⎨⎧4.504.50+1.20(w−1)200<w≤11<w≤1010<w≤30
with C in dollars. Find ,C(0.6),,C(1),,C(3.5),C(10) and ,C(12), and give the domain and range of .C.
··
Find the range of each function: (a) ,f(x)=x2−6x+11, (b) ,g(x)=9−x2, (c) .h(x)=x−21+5.
··
Let f(x)=x2+1 and .g(x)=2x−3. Find ,(f∘g)(x),,(g∘f)(x),(f∘g)(2) and .(g∘f)(2). For which x do the two compositions agree?
···
Let f(x)=x−11 and .g(x)=x+2. Find formulas and domains for f∘g and .g∘f.
··
Find and simplify the difference quotient hf(x+h)−f(x) for (a) f(x)=x2−4x and (b) .f(x)=x1. Evaluate (a) at ,x=3,h=0.1 and (b) at ,x=2,.h=0.5.
··
At a checkout you have two coupons: 20 dollars off, and 15% off. Let f(x)=x−20 and g(x)=0.85x for a price .x. Find (g∘f)(x) and ,(f∘g)(x), say what each means, and find both for a cart of 180 dollars. Which order is better for you, and by how much?
···
Let f(x)=x−4 and .g(x)=x2+4. Simplify (f∘g)(x) and (g∘f)(x) and give the domain of each. Find (f∘g)(−3) and .(g∘f)(1).
··
A stone dropped into a pond sends out a circular ripple whose radius grows at 0.6 meters per second, so r(t)=0.6t after t seconds. The area inside a circle of radius r is .A(r)=πr2. Find (A∘r)(t) and say what it means. Find the area after 5 seconds, the time at which the area reaches 100 m², and the average rate at which the area grows between t=2 and .t=5.
Answers
,f(−2)=15,,f(21)=0,f(a+1)=2a2+a
(a) .x=±3. (b) ,x≤5, or .(−∞,5]. (c) x≥−4 with ,x=2, or [−4,2)∪(2,∞)
,4.50,,4.50,,7.50,15.30 and 20 dollars; domain ;(0,30]; range [4.50,15.30]∪{20}
(a) .[2,∞). (b) .[0,3]. (c) all real numbers except 5
,(f∘g)(x)=4x2−12x+10,;(g∘f)(x)=2x2−1; at 2 they give 2 and ;7; they agree only at x=3±214≈1.129 and 4.871
(f∘g)(x)=x+2−11 on ;[−2,−1)∪(−1,∞);(g∘f)(x)=x−12x−1 on (−∞,21]∪(1,∞)
(a) ,2x+h−4, which is .2.1. (b) ,−x(x+h)1, which is −0.2
(g∘f)(x)=0.85x−17 (dollars off, then percent off) gives ;136;(f∘g)(x)=0.85x−20 (percent off, then dollars off) gives .133. Percent first is better by 3 dollars, for every cart
(f∘g)(x)=∣x∣ for all real ,x, and ;(f∘g)(−3)=3;(g∘f)(x)=x for x≥4 only, and (g∘f)(1) is undefined
,(A∘r)(t)=0.36πt2, the area in m² after t seconds; 9π≈28.27 m² at 5 s; 100 m² at t≈9.40 s; average growth 2.52π≈7.92 m² per second
Worked solutions
Problem 1
For ,f(x)=2x2−3x+1, find ,f(−2),f(21) and .f(a+1).
.f(−2)=2(−2)2−3(−2)+1=8+6+1=15.Replace each x by ,(−2), with the brackets: ,(−2)2=4, and .−3(−2)=+6.
.f(21)=2⋅41−23+1=21−23+1=0.The same substitution with .21. An output of 0 means 21 is a zero of .f.
.f(a+1)=2(a+1)2−3(a+1)+1.The input is the whole expression ,a+1, so it goes in brackets wherever x was.
.=2(a2+2a+1)−3a−3+1=2a2+4a+2−3a−2.,(a+1)2=a2+2a+1, including the middle term, and the −3 multiplies both a and .1.
,f(−2)=15,,f(21)=0,f(a+1)=2a2+aCollect terms in step 4: 4a−3a=a and .2−2=0. Check with :a=1:f(2)=8−6+1=3 and .2+1=3.
Problem 2
Find the domain of each function: (a) ,f(x)=x2−9x+1, (b) ,g(x)=10−2x, (c) .h(x)=x−2x+4.
(a) x2−9=0 when x=3 or .x=−3.The only restriction is the denominator. x2=9 has two solutions. The numerator being 0 at x=−1 is no problem: 0 divided by a nonzero number is .0.
Domain of :f: all real x except ,±3, that is .(−∞,−3)∪(−3,3)∪(3,∞).Remove the two points from the number line, which leaves three intervals.
(b) ,10−2x≥0, so −2x≥−10 and .x≤5.The expression under the root must not be negative; 0 is allowed, since .0=0. Dividing by −2 reverses the inequality.
Domain of :g:.(−∞,5].The square bracket includes .5.
(c) x+4≥0 gives ,x≥−4, and x−2=0 gives .x=2.Both restrictions apply at once: the root on top and the denominator below.
(a) .x=±3. (b) ,x≤5, or .(−∞,5]. (c) x≥−4 with ,x=2, or [−4,2)∪(2,∞)Steps 2, 4 and 5.
Problem 3
A courier charges by the weight w of a parcel, in kilograms, up to 30 kg:
C(w)=⎩⎨⎧4.504.50+1.20(w−1)200<w≤11<w≤1010<w≤30
with C in dollars. Find ,C(0.6),,C(1),,C(3.5),C(10) and ,C(12), and give the domain and range of .C.
C(0.6)=4.50 and .C(1)=4.50.Both weights satisfy ,0<w≤1, the first rule. The ≤ puts w=1 in the first piece, not the second.
.C(3.5)=4.50+1.20(3.5−1)=4.50+3.00=7.50.,1<3.5≤10, so use the second rule: 1.20 dollars for each kilogram beyond the first.
.C(10)=4.50+1.20(9)=4.50+10.80=15.30.w=10 still belongs to the second piece.
.C(12)=20.:10<12≤30: the flat rate.
Domain: ,0<w≤30, that is .(0,30].The three conditions together cover every weight above 0 up to ,30, with no gaps and no overlaps.
On the second piece C rises steadily from just above 4.50 to ;15.30; the first piece gives 4.50 and the third gives .20.A piece that is a line with positive slope takes every value between its ends.
,4.50,,4.50,,7.50,15.30 and 20 dollars; domain ;(0,30]; range [4.50,15.30]∪{20}Steps 1 to 6. No parcel costs between 15.30 and 20 dollars: the charge jumps at 10 kg.5101520255101520wC(10,15.30)
Problem 4
Find the range of each function: (a) ,f(x)=x2−6x+11, (b) ,g(x)=9−x2, (c) .h(x)=x−21+5.
(a) .x2−6x+11=(x2−6x+9)+2=(x−3)2+2.Complete the square: half of −6 is ,−3, and .(−3)2=9.
,(x−3)2≥0, with equality at ,x=3, so ,f(x)≥2, and every value from 2 up is reached.A square is never negative and grows without bound. Range: .[2,∞).
(b) The domain is ,−3≤x≤3, where 9−x2 runs from 0 (at )x=±3) up to 9 (at ).x=0).9−x2≥0 means .x2≤9. Find the range of the inside first.
So 9−x2 runs from 0=0 to .9=3. Range: .[0,3].The square root is increasing, so it carries the interval [0,9] to .[0,3]. The graph is the top half of a circle of radius .3.
(c) x−21 takes every real value except .0.A fraction with numerator 1 is never ;0; and for any c=0 it equals c at .x=2+c1.
Adding 5 shifts every output up by ,5, so h takes every value except .5.Range: .(−∞,5)∪(5,∞).
(a) .[2,∞). (b) .[0,3]. (c) all real numbers except 5Steps 2, 4 and 6.
Problem 5
Let f(x)=x2+1 and .g(x)=2x−3. Find ,(f∘g)(x),,(g∘f)(x),(f∘g)(2) and .(g∘f)(2). For which x do the two compositions agree?
.(f∘g)(x)=f(2x−3)=(2x−3)2+1=4x2−12x+10.Apply g first; its output 2x−3 becomes the input of .f..(2x−3)2=4x2−12x+9.
.(g∘f)(x)=g(x2+1)=2(x2+1)−3=2x2−1.Now f first, and its output goes into .g.
(f∘g)(2)=16−24+10=2 and .(g∘f)(2)=8−1=7.Or step by step: g(2)=1 and ;f(1)=2;f(2)=5 and .g(5)=7. The order matters.
They agree when ,4x2−12x+10=2x2−1, that is .2x2−12x+11=0.Set the formulas equal and move everything to one side.
.x=412±144−88=412±56=3±214.Quadratic formula with ,a=2,,b=−12,;c=11;.56=214.
,(f∘g)(x)=4x2−12x+10,;(g∘f)(x)=2x2−1; at 2 they give 2 and ;7; they agree only at x=3±214≈1.129 and 4.871Steps 1 to 5. The two orders give different functions that happen to agree at just two inputs.
Problem 6
Let f(x)=x−11 and .g(x)=x+2. Find formulas and domains for f∘g and .g∘f.
.(f∘g)(x)=x+2−11.Put g(x) into .f.
g needs ,x≥−2, and f needs its input :g(x)=1:,x+2=1, so .x=−1.The two conditions for a composite: x is allowed into ,g, and g(x) is allowed into .f.
Domain of :f∘g:.[−2,−1)∪(−1,∞).Step 2.
.(g∘f)(x)=x−11+2=x−12x−1.Put f(x) into ;g;.x−11+2=x−11+2(x−1).
f needs ,x=1, and g needs its input ,f(x)≥−2, that is .x−12x−1≥0.f(x)+2≥0 is the same condition as the fraction in step 4 being non-negative.
The fraction is 0 at x=21 and undefined at .x=1. It is positive for x<21 (try :0:),−1−1=1), negative between (try :0.75:),−0.250.5=−2), and positive for x>1 (try :2:).3).A fraction can change sign only where its top or bottom is ,0, so test one point in each of the three intervals.
(f∘g)(x)=x+2−11 on ;[−2,−1)∪(−1,∞);(g∘f)(x)=x−12x−1 on (−∞,21]∪(1,∞)Steps 3 and 6. x=21 is included because 0 is fine; x=1 is not, because f(1) does not exist.
Problem 7
Find and simplify the difference quotient hf(x+h)−f(x) for (a) f(x)=x2−4x and (b) .f(x)=x1. Evaluate (a) at ,x=3,h=0.1 and (b) at ,x=2,.h=0.5.
(a) .f(x+h)=(x+h)2−4(x+h)=x2+2xh+h2−4x−4h.Replace x by (x+h) everywhere, then expand.
.f(x+h)−f(x)=2xh+h2−4h.Subtract .x2−4x. Every term without an h cancels; if one survives, there is an error in step 1.
.h2xh+h2−4h=2x+h−4.Each term has a factor of ,h, and ,h=0, so divide it out.
At ,x=3,:h=0.1:.6+0.1−4=2.1.Check directly: f(3.1)=9.61−12.4=−2.79 and ,f(3)=−3, so the quotient is .0.10.21=2.1.
(b) .x+h1−x1=x(x+h)x−(x+h)=x(x+h)−h.Subtract the fractions over the common denominator .x(x+h).
Dividing by :h:.x(x+h)−1. At ,x=2,:h=0.5:.2×2.5−1=−0.2.Check: ,2.51−21=0.4−0.5=−0.1, and .−0.1÷0.5=−0.2.
(a) ,2x+h−4, which is .2.1. (b) ,−x(x+h)1, which is −0.2Steps 3, 4 and 6.
Problem 8
At a checkout you have two coupons: 20 dollars off, and 15% off. Let f(x)=x−20 and g(x)=0.85x for a price .x. Find (g∘f)(x) and ,(f∘g)(x), say what each means, and find both for a cart of 180 dollars. Which order is better for you, and by how much?
.(g∘f)(x)=g(x−20)=0.85(x−20)=0.85x−17.f first: take 20 dollars off, then take 15% off what is left.
.(f∘g)(x)=f(0.85x)=0.85x−20.g first: take 15% off, then 20 dollars off.
For :x=180:(g∘f)(180)=0.85(160)=136 and .(f∘g)(180)=153−20=133.Step by step, or from the formulas: 153−17 and .153−20.
.(g∘f)(x)−(f∘g)(x)=(0.85x−17)−(0.85x−20)=3.The difference does not depend on the price.
(g∘f)(x)=0.85x−17 (dollars off, then percent off) gives ;136;(f∘g)(x)=0.85x−20 (percent off, then dollars off) gives .133. Percent first is better by 3 dollars, for every cartSteps 1 to 4. Taking the 20 dollars off first lets the 15% coupon shrink that discount too: 15% of 20 is the 3 dollars lost.
Problem 9
Let f(x)=x−4 and .g(x)=x2+4. Simplify (f∘g)(x) and (g∘f)(x) and give the domain of each. Find (f∘g)(−3) and .(g∘f)(1).
.(f∘g)(x)=(x2+4)−4=x2=∣x∣.x2 is the non-negative number whose square is ,x2, which is ,∣x∣, not .x.
Its domain is all real numbers.g accepts every ,x, and g(x)=x2+4≥4 is always allowed into ,f, which needs an input of at least .4.
.(f∘g)(−3)=∣−3∣=3.Step by step: g(−3)=13 and .f(13)=9=3.
.(g∘f)(x)=(x−4)2+4=(x−4)+4=x.Squaring undoes the square root, where the root exists.
Its domain is x≥4 only.f comes first and needs .x−4≥0. The simplified formula x makes sense for every number, but the composite does not: its domain is decided before simplifying.
(g∘f)(1) is undefined.f(1)=−3 is not a real number, so there is nothing to put into ,g, even though the simplified formula would say .1.
(f∘g)(x)=∣x∣ for all real ,x, and ;(f∘g)(−3)=3;(g∘f)(x)=x for x≥4 only, and (g∘f)(1) is undefinedSteps 1 to 6.
Problem 10
A stone dropped into a pond sends out a circular ripple whose radius grows at 0.6 meters per second, so r(t)=0.6t after t seconds. The area inside a circle of radius r is .A(r)=πr2. Find (A∘r)(t) and say what it means. Find the area after 5 seconds, the time at which the area reaches 100 m², and the average rate at which the area grows between t=2 and .t=5.
.(A∘r)(t)=A(0.6t)=π(0.6t)2=0.36πt2.Time goes into ,r, and the radius goes into .A. The composite gives the area inside the ripple directly from the time. Square the 0.6 as well as the .t.
At :t=5:0.36π(25)=9π≈28.27 m².The radius is 3 m, and .π⋅32=9π.
0.36πt2=100 gives ,t2=0.36π100≈88.42, so t≈9.40 s.Divide, then take the positive square root, since .t≥0.
5−2A(r(5))−A(r(2))=39π−1.44π=2.52π≈7.92 m² per second.Average rate of change: change in area over change in time, a difference quotient with x=2 and .h=3.
,(A∘r)(t)=0.36πt2, the area in m² after t seconds; 9π≈28.27 m² at 5 s; 100 m² at t≈9.40 s; average growth 2.52π≈7.92 m² per secondSteps 1 to 4. The radius grows at a steady rate, but the area does not: it grows faster as the circle gets larger.
Where this goes wrong
1. Distributing f over a sum
The brackets in f(a+1) look like the brackets in .3(a+1).
;f(x)=2x2−3x+1; find f(a+1)Right so far: Problem 1.
“f(a+1) is f(a) plus ,f(1),” or “f(a) plus .1.”The habit that causes the mistake: reading f() as multiplication, which distributes over a sum. A function is a rule applied to the whole input.
f(a+1)=f(a)+1=2a2−3a+2Replace every x by :(a+1):.2(a+1)2−3(a+1)+1=2a2+a. At a=1 the wrong formula gives ,1, but .f(2)=3.
2. Losing the negative root of the denominator
One value that makes the denominator zero is found, and the search stops.
;f(x)=x2−9x+1; the denominator is 0 when x2=9Right so far: Problem 2(a).
“,x2=9, so .x=3.”The habit that causes the mistake: taking only the positive square root. (−3)2=9 as well.
Domain: all real numbers except 3f(−3)=0−2 is undefined too. Factor to see both: .x2−9=(x−3)(x+3). The domain excludes 3 and .−3.
3. Multiplying instead of composing
The small circle in f∘g is read as a multiplication dot.
f(x)=x2+1 and ;g(x)=2x−3; find (f∘g)(x)Right so far: Problem 5.
“Put the two together: multiply them.”The habit that causes the mistake: (fg)(x)=f(x)g(x) is the product, a different operation. The circle means “apply one after the other”.
(f∘g)(x)=(x2+1)(2x−3)=2x3−3x2+2x−3.(f∘g)(x)=f(g(x))=(2x−3)2+1=4x2−12x+10. At x=2 the product gives ,5, and the composite gives .f(1)=2.
4. Reading the domain from the simplified formula
After simplifying, the formula is so plain that its domain seems obvious.
f(x)=x−4 and g(x)=x2+4 give (g∘f)(x)=(x−4)2+4=xRight so far: Problem 9, step 4.
“The answer is ,x, and x is defined everywhere.”The half-truth that causes the mistake: the simplification is valid only where the original expression exists. Simplifying can hide a restriction but never removes it.
Domain of :g∘f: all real numbersThe first step of g(f(x)) is ,x−4, which needs .x≥4. At x=1 there is no f(1) to feed into .g. The domain is .[4,∞).
5. Assuming the order of composition does not matter
Addition and multiplication can be done in either order, and composition looks similar.
A 20-dollar coupon f(x)=x−20 and a 15% coupon g(x)=0.85x on a 180-dollar cartRight so far: Problem 8.
“Both coupons get used either way, so the total is the same.”The habit that causes the mistake: assuming .f∘g=g∘f. Composition is not commutative.
(g∘f)(180)=(f∘g)(180)=133Dollars first gives ;0.85(160)=136; percent first gives .153−20=133. They differ by 3 dollars at every price. Compute each order separately.
More at eulerpad.app. This is one of 102 free practice sets with worked solutions at eulerpad.app/practice, alongside guides to the topics behind them.
EulerPad, the app, reads your handwritten math on iPad, iPhone and Android and checks it line by line. It's free to start.
This set is also Chapter 3 of Precalculus: Functions, Logarithms and Trigonometry, a 250-problem workbook with worked solutions: eulerpad.app/workbooks