Corrected exercises: functions, graphs and transformations (MATH 140)
This is the corrected exercise set for the review of functions that opens MATH 140, Calculus 1, at McGill University, sections 1.1 to 1.3 of Stewart. Nothing here is new in principle, and that is the danger: every later chapter of the course differentiates, takes limits of, or sketches these functions, and a domain read on the wrong formula or a shift in the wrong direction costs marks again on the derivative, the asymptote and the curve sketch. Every number is exact and chosen to be done by hand, and each solution names the rule it applies.
The thread running through the whole set: read a formula from the INSIDE out. What happens inside the parentheses acts on x and runs backwards, so f(x+3) moves LEFT and f(2x+4) must be factored as f(2(x+2)) before it is read. What happens outside acts on y and runs as written, in the order of operations. The same reading gives the domain of a composition, inner function first, the parity test, −x inside and compare outside, and the value of a piecewise function, which piece first, then which formula.
The traps named in the solutions: reading the domain on a simplified formula, copying open dots into the range, giving the range of a quadratic from its two ends, a2=a instead of ∣a∣, keeping a candidate that is not in its own piece, proving a symmetry with one point, forgetting that parity needs a symmetric domain, shifting the wrong way, compressing when the formula stretches, reading f(2x+4) as a shift of 4, adding before multiplying outside, confusing composition with a product, and extrapolating a model outside its domain.
Self-checking setType your answers and check them question by question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points, and your right answers stay filled in when you come back.
•Domain in this chapter: a denominator is never 0, the quantity under an even root is ≥0 (>0 if the root is in a denominator); odd roots accept every real number.
•∣a∣=a if a≥0, −a if a<0, and a2=∣a∣. A piecewise equation is solved piece by piece, and each candidate is checked against its own interval.
•f even: f(−x)=f(x), symmetric about the y-axis. f odd: f(−x)=−f(x), symmetric about the origin. Both need a domain symmetric about 0.
•y=af(b(x−h))+k: the point (u,w) of f goes to (bu+h,aw+k). Inside: backwards. Outside: as written, multiply before adding.
•(f∘g)(x)=f(g(x)): x in the domain of g AND g(x) in the domain of f. In general f∘g=g∘f and f∘g=fg.
•Linear y=mx+b: equal steps in x add m to y. Power y=kxp: doubling x multiplies y by 2p. A model has a domain of validity.
Part A: the basics (/50)
Exercise 1: Domain and range, from a graph and from a formula
The domain of a function is the set of inputs it accepts; its range is the set of outputs it actually produces. On a graph, the domain is read on the x-axis and the range on the y-axis; a filled dot is a point of the graph, an open dot is not. From a formula, a real-valued expression has only two restrictions in this chapter: a denominator cannot be 0, and the quantity under an EVEN root must be ≥0. An odd root, such as 3, accepts every real number.
The figure shows the graph of a function f made of two line segments.
a) Read the domain and the range of f on the figure, and give f(1).
b) Find the domain of g(x)=x2−4xx+3.
c) Find the domain of p(x)=x2−5x+43x−8.
d) Find the range of q(x)=x2+4x+1 on the interval [−3,1], without a derivative.
e) Are F(x)=x−3x2−9 and G(x)=x+3 the same function? Describe the graph of F and give its range.
Show the solution
Answers
a)Domain [−3,4), range [−1,4], f(1)=4
b)[−3,0)∪(0,4)∪(4,∞)
c)(−∞,1)∪(4,∞)
d)q(x)=(x+2)2−3: range [−3,6]
e)No: 3 is not in the domain of F. The graph of F is the line y=x+3 with a hole at (3,6); range R∖{6}.
a)
Domain: the graph starts with a FILLED dot at x=−3 and ends with an OPEN dot at x=4, and there is no gap in between, since the second segment starts at x=1 exactly where the first one stops. So the domain is [−3,4). Value at 1: above x=1 there are two dots, (1,3) open and (1,4) filled; only the filled one is on the graph, so f(1)=4. Range: the first segment, y=x+2 for −3≤x<1, produces every value of [−1,3); the second, y=5−x for 1≤x<4, produces every value of (1,4]. The range is the union, [−1,3)∪(1,4]=[−1,4]. The trap is to copy the open dots into the range: 3 is missed at the open dot (1,3) but attained on the second segment at x=2, where 5−2=3; and 1, missed at (4,1), is attained at x=−1 on the first segment. An open dot removes a POINT of the graph, not automatically a value of the range.
b)
Two restrictions, taken one at a time. The even root needs x+3≥0, so x≥−3. The denominator needs x2−4x=x(x−4)=0, so x=0 and x=4. Both must hold at once: the domain is [−3,∞) with 0 and 4 removed, that is [−3,0)∪(0,4)∪(4,∞). Check with a test value: g(−3)=210=0 exists, so −3 belongs to the domain and the bracket is closed there. Forgetting to factor the denominator and removing only x=4 costs the mark.
c)
The cube root accepts every real number, including negative ones, so the numerator imposes NOTHING: 3−8=−2 is a real number. The denominator is an even root, and it is a denominator, so what is under it must be STRICTLY positive: x2−5x+4=(x−1)(x−4)>0. A product of two factors is positive when both have the same sign: x<1 or x>4. The domain is (−∞,1)∪(4,∞). Two classic errors: writing ≥0, which would accept x=1 and divide by 0; and requiring x−8≥0 as if the cube root were a square root, which would give the wrong domain [8,∞).
d)
Complete the square: x2+4x+1=(x2+4x+4)−3=(x+2)2−3. On [−3,1], the quantity x+2 runs over [−1,3], so its square runs over [0,9]: it reaches 0 at x=−2, which IS in the interval, and its largest value 9 at x=1. Hence q runs over [0−3,9−3]=[−3,6]. The trap is to evaluate the two ends only, q(−3)=−2 and q(1)=6, and answer [−2,6]: the vertex (−2,−3) lies inside the interval, lower than both ends. The ends give the range only when the function moves in one direction over the whole interval.
e)
No. Two functions are equal when they have the same domain AND the same values. F is not defined at x=3 (denominator 0), while G(3)=6. Everywhere else, x2−9=(x−3)(x+3) and the factor x−3=0 can be cancelled: F(x)=x+3 for x=3. So the graph of F is the line y=x+3 with ONE point removed, an open dot at (3,6). The only value the line would take there is 6, and no other x gives x+3=6, so the range of F is R∖{6}. Simplifying first and reading the domain on the simplified formula is the error the whole chapter warns against: the domain is read on the formula AS GIVEN.
Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.
Exercise 2: Piecewise functions and absolute value: which piece, then which value
A piecewise function uses DIFFERENT formulas on different intervals. To evaluate it, the first question is never the formula: it is which interval the input belongs to. To solve an equation, each piece is solved on its own, and every candidate must then be checked against the interval of ITS piece. The absolute value is the first example: ∣a∣=a if a≥0 and ∣a∣=−a if a<0, and a2=∣a∣ for every real a.
The figure shows the graph of a function h made of a line, an arc of the parabola y=x2 and a horizontal ray.
a) Read h(−3), h(−1), h(2) and h(4) on the figure, then write h(x) as a piecewise formula.
b) Write f(x)=∣2x−6∣ and k(x)=∣x2−4∣ without absolute value signs.
c) Solve ∣x−1∣=2x+4.
d) A student simplifies x2−6x+9=x−3. Correct the simplification for x<3 and check it at x=0.
e) Solve h(x)=2.
Show the solution
Answers
a)h(−3)=0, h(−1)=1, h(2)=4, h(4)=1; h(x)=x+3 if x<−1, x2 if −1≤x≤2, 1 if x>2
b)f(x)=2x−6 if x≥3, 6−2x if x<3; k(x)=x2−4 if ∣x∣≥2, 4−x2 if −2<x<2
c)x=−1 (x=−5 rejected)
d)x2−6x+9=∣x−3∣=3−x for x<3; at x=0: 9=3
e)x=2 only (x=−1 and x=−2 rejected)
a)
h(−3)=0: the line passes through (−3,0). At x=−1 the figure shows an open dot at (−1,2) and a filled dot at (−1,1); the filled one is the graph, so h(−1)=1. At x=2 the filled dot is (2,4) and the open one (2,1), so h(2)=4; and h(4)=1 on the ray. Formula, piece by piece. The line goes through (−3,0) and (−2,1): slope 1, so y=x+3, and it stops at x=−1 with an open dot, so the interval is x<−1. The arc passes through (0,0), (1,1) and (2,4): y=x2 on −1≤x≤2, both ends filled. The ray is y=1 for x>2. The inequalities, strict or not, ARE the open and filled dots, and they are part of the answer: each input must belong to exactly one piece.
b)
2x−6≥0 exactly when x≥3, so f(x)=2x−6 for x≥3 and f(x)=−(2x−6)=6−2x for x<3. For k, the sign of x2−4=(x−2)(x+2) decides: it is ≥0 when x≤−2 or x≥2, and negative when −2<x<2. So k(x)=x2−4 if x≤−2 or x≥2, and k(x)=4−x2 if −2<x<2. Graphically, the part of the parabola below the x-axis is reflected upward, and nothing else moves. The sign to study is the sign of what is INSIDE the bars, never the sign of x.
c)
Split on the sign of x−1. Case x≥1: x−1=2x+4 gives x=−5, which is NOT ≥1: rejected. Case x<1: −(x−1)=2x+4 gives −3x=3, x=−1, which is <1: kept. Check: ∣−1−1∣=2 and 2(−1)+4=2. A faster filter was available: an absolute value is never negative, so the right side needs 2x+4≥0, that is x≥−2, which eliminates −5 at once, since ∣−6∣=6 while 2(−5)+4=−6. Keeping x=−5 is the classic lost mark: the candidate solved its equation but not its case.
d)
x2−6x+9=(x−3)2, so x2−6x+9=(x−3)2=∣x−3∣, NOT x−3. For x<3, x−3 is negative, so ∣x−3∣=3−x. Check at x=0: 9=3, and 3−0=3, while the student's x−3 gives −3, a negative square root, impossible. The rule a2=a holds only for a≥0; in general a2=∣a∣. This is the inside-outside reading again: the square root sees (x−3)2, which has forgotten the sign of x−3.
e)
Solve on each piece, then check each candidate against its interval. First piece: x+3=2 gives x=−1, but the first piece is x<−1: rejected (and indeed h(−1)=1, not 2; the point (−1,2) is the open dot). Second piece: x2=2 gives x=2 or x=−2; the piece is −1≤x≤2, and 2≈1.41 is in it, while −2≈−1.41 is not: only 2 is kept. Third piece: 1=2 has no solution. Answer: x=2, and only that. On the figure, the horizontal line y=2 meets the graph once, on the arc; it only touches the open dot at (−1,2), which is not a point of the graph.
Exercise 3: Even, odd or neither: decided by computing f(-x)
A function f whose domain is symmetric about 0 is EVEN if f(−x)=f(x) for every x of its domain (graph symmetric about the y-axis), and ODD if f(−x)=−f(x) for every x (graph symmetric about the origin). The test is a computation: replace x by −x INSIDE, simplify, and compare the result with f(x) and with −f(x). One numerical example can DISPROVE a symmetry; it can never prove one.
The figure shows the graph of a function f defined on [−4,4], drawn for 0≤x≤4 only.
a) Decide whether each function is even, odd or neither: f1(x)=x4−3x2+1, f2(x)=x3−4x, f3(x)=x3+x2.
b) Same question for k(x)=x2+1x, m(x)=(x+1)2 and n(x)=x∣x∣.
c) Complete the graph of the figure on [−4,0] if f is even, then if f is odd. Why must an odd function defined at 0 satisfy f(0)=0?
d) A student notes that p(x)=x3−x satisfies p(−1)=p(1) and concludes that p is even. Correct the conclusion.
e) Is s(x)=x2, defined on [−1,3], even? Then prove that the product of an even function and an odd function is odd.
d)p(−2)=−6=p(2)=6: p is not even; p(−x)=−p(x), so p is odd.
e)Neither: the domain is not symmetric. (EO)(−x)=E(x)⋅(−O(x))=−(EO)(x).
a)
f1(−x)=(−x)4−3(−x)2+1=x4−3x2+1=f1(x): even, every power of x is even. f2(−x)=(−x)3−4(−x)=−x3+4x=−(x3−4x)=−f2(x): odd. f3(−x)=−x3+x2, which is neither x3+x2 nor −x3−x2. To be sure it is NEITHER, one counterexample for each symmetry is enough: f3(1)=2 and f3(−1)=0, and 0=2 (not even), 0=−2 (not odd). A sum of an even part and an odd part, both nonzero, is neither. The two domains are R, symmetric, as the test requires.
b)
k(−x)=(−x)2+1−x=−x2+1x=−k(x): odd. For m, the look is misleading: it IS a square, but a square of x+1, not of x. m(1)=4 and m(−1)=0, so m is neither even nor odd; its graph is symmetric about the line x=−1, not about the y-axis. For n: n(−x)=(−x)∣−x∣=−x∣x∣=−n(x), since ∣−x∣=∣x∣: odd. The minus sign inside the absolute value disappears, the one outside stays.
c)
Even: each point (a,b) of the graph has its mirror (−a,b). The vertices (1,2), (3,−1), (4,0) give (−1,2), (−3,−1), (−4,0), joined by segments. Odd: each point (a,b) has its image (−a,−b), a half-turn about the origin: (−1,−2), (−3,1), (−4,0). The solution figure shows both completions. For the last question, take x=0 in f(−x)=−f(x): f(0)=−f(0), so 2f(0)=0 and f(0)=0. The drawn graph passes through the origin, so the odd completion is possible; if it had started at (0,1), no odd function could extend it.
d)
A single point proves nothing about a statement that must hold for EVERY x. Here p(1)=0 and p(−1)=0 by coincidence, because ±1 are roots. At x=2: p(2)=6 and p(−2)=−8+2=−6=6, so p is NOT even. The algebra decides: p(−x)=−x3+x=−(x3−x)=−p(x) for every x, so p is odd. Since p is odd and p(1)=0, also p(−1)=−0=0: the coincidence of the student is exactly what oddness predicts at a root.
e)
Parity requires a domain symmetric about 0: if x is in the domain, −x must be too. Here 2 is in [−1,3] but −2 is not, so s(−2) does not exist and s is neither even nor odd, although its formula is x2. Parity belongs to the function, formula AND domain. For the product, let E be even and O odd with the same symmetric domain: (EO)(−x)=E(−x)O(−x)=E(x)(−O(x))=−E(x)O(x)=−(EO)(x), so EO is odd. Check with E(x)=x2, O(x)=x: x3 is odd. The signs multiply like +1 and −1: even times odd is odd, odd times odd is even.
Exercise 4: Transformations of a graph, point by point and in the right order
Every transformation of y=f(x) acts on ONE variable. A change INSIDE the parentheses acts on x and runs backwards: f(x−3) moves the graph 3 units to the RIGHT, f(2x) COMPRESSES it horizontally by a factor 2. A change OUTSIDE acts on y and runs as written: f(x)+1 moves it up 1, −2f(x) stretches it vertically by 2 and reflects it in the x-axis. The safest method for a point: if (a,b) is on the graph of f, find the x that makes the inside equal to a, then apply the outside operations to b.
The figure shows the graph of f, made of three segments through A(−2,0), B(0,4), C(2,2) and D(4,2). Its domain is [−2,4] and its range is [0,4].
a) Give the images of A, B, C, D on the graph of y=f(x−3)+1, and its domain and range.
b) Compare y=−f(x)+2 and y=−(f(x)+2): image of B and range of each.
c) Give the images of the four points on the graph of y=f(2x+4), and its domain. Describe the transformations in a correct order.
d) Give the images of B and C on the graphs of y=f(−x) and y=−f(−x). What single geometric transformation is y=−f(−x)?
e) Find the domain and the range of y=1−2f(2x) without drawing it.
Show the solution
Answers
a)(1,1), (3,5), (5,3), (7,3); domain [1,7], range [1,5]
b)B↦(0,−2), range [−2,2]; B↦(0,−6), range [−6,−2]
c)(−3,0), (−2,4), (−1,2), (0,2); domain [−3,0]; compress by 2, then left 2
d)f(−x): B↦(0,4), C↦(−2,2); −f(−x): B↦(0,−4), C↦(−2,−2); a half-turn about the origin
e)Domain [−4,8], range [−7,1]
a)
Inside, x−3=a gives x=a+3: each point moves 3 units RIGHT. Outside, +1: each y goes up 1. So (a,b)↦(a+3,b+1): A(−2,0)↦(1,1), B(0,4)↦(3,5), C(2,2)↦(5,3), D(4,2)↦(7,3). The domain moves with the x-coordinates: [−2+3,4+3]=[1,7]; the range with the y-coordinates: [0+1,4+1]=[1,5]. Check one point in the formula: at x=3, f(3−3)+1=f(0)+1=5, as found. Moving LEFT for a minus sign is the error this check catches.
b)
Both act only on y, but in a different order. y=−f(x)+2: first the minus sign, then +2, so b↦−b+2; B goes to (0,−4+2)=(0,−2), and the range [0,4] becomes [−4+2,0+2]=[−2,2]. y=−(f(x)+2)=−f(x)−2: first +2, then the minus sign, so b↦−(b+2); B goes to (0,−6) and the range becomes [−6,−2]. Outside the parentheses, the order is the ORDER OF OPERATIONS of the formula, exactly as when evaluating a number: the parentheses of the second formula force the addition first. Two graphs 4 units apart for the same three symbols in a different order.
c)
Inside, solve 2x+4=a: x=2a−4. So (a,b)↦(2a−4,b): A↦(−3,0), B↦(−2,4), C↦(−1,2), D↦(0,2), and the domain is [−3,0], obtained also by solving −2≤2x+4≤4. To describe it in words, FACTOR the inside first: f(2x+4)=f(2(x+2)) is a horizontal compression by 2 followed by a shift 2 units LEFT; check on A: −2↦−1↦−3. The other correct order is shift left 4, then compress: −2↦−6↦−3. The WRONG reading is compress by 2 then shift left 4, which sends A to −1−4=−5 and gives the domain [−5,−2]: a whole graph in the wrong place. The solution figure shows f and the correct result.
d)
y=f(−x): inside, −x=a gives x=−a, so (a,b)↦(−a,b), a reflection in the y-axis: B(0,4)↦(0,4), which stays because it is ON the axis, and C(2,2)↦(−2,2). y=−f(−x): the same inside, then a minus sign outside, (a,b)↦(−a,−b): B↦(0,−4) and C↦(−2,−2). Changing the signs of both coordinates is a half-turn (rotation by 180∘) about the origin. This is also why a function is odd exactly when −f(−x)=f(x): its graph is unchanged by the half-turn.
e)
Domain: the inside 2x must be in the domain of f: −2≤2x≤4, so −4≤x≤8. The domain is [−4,8], a horizontal STRETCH by 2. Range: the inside only chooses WHICH values of f are used, and as x runs over [−4,8], f(2x) takes every value of [0,4]. Then outside, in the order of the formula: times −2 gives [−8,0] (the ends swap when multiplying by a negative number), then 1+ gives [−7,1]. Check with B: x=0 gives 1−2f(0)=1−8=−7, the lowest value. Writing [1−0,1−8]=[1,−7], with the ends in the wrong order, is the typical slip.
Exercise 5: From a basic graph to a formula: completing the square and reading the transformations
Most functions of the course are transformations of a few basic graphs: y=x2, y=x, y=x1, y=∣x∣. To see which transformations, rewrite the formula so that the inside is a multiple of (x−h) and the outside is a⋅()+k: completing the square for a quadratic, factoring the coefficient of x under a root, dividing for a quotient of two linear expressions. Then read the inside backwards and the outside as written.
The figure shows the graph of a function g with a corner at (−1,3), passing through (−3,−1) and (1,−1).
a) Write y=x2−6x+5 as y=(x−h)2+k. Describe the transformations from y=x2, and give the vertex, the x-intercepts and the range.
b) Same questions for y=−2x2−8x−5, stating the order of the vertical operations.
c) Describe how the graph of y=8−2x is obtained from y=x. Give its domain and check one point.
d) Show that x−1x+1=1+x−12 and describe the graph as a transformation of y=x1. Give the domain and the range.
e) Find a formula g(x)=a∣x−h∣+k for the function of the figure, and its x-intercepts.
Show the solution
Answers
a)(x−3)2−4: right 3, down 4; vertex (3,−4); intercepts 1 and 5; range [−4,∞)
b)−2(x+2)2+3: left 2, stretch by 2, reflect, then up 3; vertex (−2,3); range (−∞,3]
c)−2(x−4): compress by 2, reflect in the y-axis, right 4; domain (−∞,4]; (2,2) is on it
d)Stretch by 2, right 1, up 1; domain x=1, range y=1
e)g(x)=−2∣x+1∣+3; x=21 and x=−25
a)
Half of −6 is −3: x2−6x+5=(x2−6x+9)−9+5=(x−3)2−4. Inside, x−3: shift 3 units RIGHT; outside, −4: shift 4 units down. The vertex (0,0) of y=x2 goes to (3,−4). Intercepts: (x−3)2=4 gives x−3=±2, so x=1 or x=5; check 1−6+5=0. Since (x−3)2≥0, y≥−4 with equality at x=3: the range is [−4,∞). Adding 9 without subtracting it again is the arithmetic slip of this step; checking the vertex value 32−18+5=−4 catches it.
b)
Factor −2 from the terms in x only: −2x2−8x−5=−2(x2+4x)−5=−2[(x+2)2−4]−5=−2(x+2)2+8−5=−2(x+2)2+3. Inside, x+2: shift LEFT 2. Outside, the formula says: multiply by −2, THEN add 3. So stretch vertically by 2 and reflect in the x-axis, and only then shift up 3. Shifting up 3 first would give −2[(x+2)2+3]=−2(x+2)2−6, a different parabola. Vertex (−2,3); since −2(x+2)2≤0, the range is (−∞,3]. Forgetting to multiply the −4 by −2 when leaving the bracket gives +3−8 instead of +8−5, the most common error here.
c)
Factor the coefficient of x inside the root: 8−2x=−2(x−4), so y=−2(x−4). Reading the inside backwards: x↦2x compresses horizontally by 2, the minus sign reflects in the y-axis, and x−4 shifts 4 units RIGHT, applied in that order to the graph of x: (a,b)↦(4−2a,b). The starting point (0,0) goes to (4,0) and (4,2) goes to (2,2). Check: 8−2⋅2=4=2. Domain: 8−2x≥0, so x≤4, that is (−∞,4]: the half-parabola now opens to the LEFT. Reading 8−2x as a shift of 8 is the trap: the shift is 4, visible only after factoring.
d)
1+x−12=x−1(x−1)+2=x−1x+1. From y=x1: the outside factor 2 stretches vertically by 2, the inside x−1 shifts RIGHT 1, and the outside +1 shifts up 1. The hyperbola, centred at (0,0) with its two branches in the first and third quadrants, is now centred at (1,1). Domain: x=1, where the denominator vanishes. Range: x−12 takes every nonzero value but never 0, so y=1+x−12 takes every value except 1. Check: x=3 gives 24=2 and 1+22=2. Solving x−1x+1=1 gives x+1=x−1, impossible, which confirms that 1 is not in the range.
e)
The corner of y=∣x∣ is at (0,0); here it is at (−1,3), so h=−1 and k=3: g(x)=a∣x+1∣+3. The graph opens downward, so a<0; the point (1,−1) gives −1=a⋅2+3, so a=−2. Check with the third point: g(−3)=−2⋅2+3=−1, as on the figure. So g(x)=−2∣x+1∣+3: the graph of ∣x∣ stretched vertically by 2, reflected, shifted left 1 and up 3. Intercepts: −2∣x+1∣+3=0 gives ∣x+1∣=23, so x=21 or x=−25. Writing ∣x−1∣ for a corner at x=−1 is the sign error of the chapter; checking the corner in the formula takes two seconds.
Part B: problems and reasoning (/50)
Exercise 6: Composition: the inner function first, then its outputs
The composition (f∘g)(x)=f(g(x)) applies g FIRST, then f to the result. Its domain is not read on the simplified formula: x must be in the domain of g, AND g(x) must be in the domain of f. Composition is not multiplication, and in general f∘g=g∘f.
Parts a) and b) use u(x)=x and v(x)=x−21. Part d) uses the two functions f and g whose graphs, made of line segments, are shown in the figure.
a) Find u∘v and v∘u, each with its domain.
b) Find v∘v and its domain. A student gives the domain x=25 from the simplified formula: what is missing?
c) Write H(x)=(3−x)4 as a composition of two functions, then of three. Is the decomposition unique?
d) From the figure, find f(g(3)), g(f(3)), (f∘f)(1) and (g∘g)(6), then solve f(g(x))=0.
e) With p(x)=2x+3, find q such that (p∘q)(x)=2x2+5. Then find r such that r(x+4)=x2+8x+20 for every x.
b)(v∘v)(x)=5−2xx−2, domain R∖{2,25}: x=2 is excluded by the inner v
c)H=F∘G with G(x)=3−x, F(x)=x4; H=F∘M∘u with M(x)=3−x; not unique
d)f(g(3))=2, g(f(3))=2, (f∘f)(1)=0, (g∘g)(6)=2; f(g(x))=0 for x=1 and x=5
e)q(x)=x2+1; r(t)=t2+4
a)
(u∘v)(x)=u(x−21)=x−21. Inner function first: x=2. Then its output must be a legal input of : x−21≥0, and a quotient with numerator 1 is positive exactly when x−2>0. Domain (2,∞), and u∘v=x−21 there. (v∘u)(x)=v(x)=x−21. Inner: x≥0. Outer: its input x must not be 2, so x=4. Domain [0,4)∪(4,∞). The two compositions are different functions with different domains: at x=9, u(v(9))=71 while v(u(9))=3−21=1.
b)
(v∘v)(x)=x−21−21. Multiply numerator and denominator by x−2: 1−2(x−2)x−2=5−2xx−2. Domain, inside out: the inner v needs x=2; the outer v needs its input x−21 different from 2, that is x−2=21, x=25. So the domain is R∖{2,25}. The simplified formula 5−2xx−2 happily gives 0 at x=2, but v(2) does not exist, so v(v(2)) does not exist either: multiplying by x−2 was legal only because x=2 had already been assumed. The domain comes from the construction, never from the final formula.
c)
Read H from the inside out, as a calculator would compute it: take x, subtract it from 3, raise to the fourth power. Two layers: G(x)=3−x and F(x)=x4 give F(G(x))=(3−x)4. Three layers: u(x)=x, M(x)=3−x, F(x)=x4, and H=F∘M∘u, with u applied FIRST although it is written LAST. The decomposition is not unique: F2(x)=x2 and G2(x)=(3−x)2 also work, since ((3−x)2)2=(3−x)4. Writing H=u∘M∘F in the reading order of the formula computes 3−x4, another function.
d)
Read the inner value on the inner graph, then use it as an input on the outer graph. g(3)=4, the top of the orange graph, and f(4)=2, so f(g(3))=2. f(3)=1 and g(1)=2, so g(f(3))=2. f(1)=2 and f(2)=0, so (f∘f)(1)=0. g(6)=1 and g(1)=2, so (g∘g)(6)=2. To solve f(g(x))=0, go from the outside in: f(t)=0 only for t=2 (the lowest point of the blue graph), so we need g(x)=2. On the orange graph, g(x)=x+1 on [0,3] and g(x)=7−x on [3,6], so g(x)=2 for x=1 and x=5. Both solutions are needed: stopping at the first intersection costs half the question.
e)
p(q(x))=2q(x)+3 must equal 2x2+5, so 2q(x)=2x2+2 and q(x)=x2+1. Check: p(x2+1)=2x2+2+3. For r, name the inner output: t=x+4, so x=t−4, and r(t)=(t−4)2+8(t−4)+20=t2−8t+16+8t−32+20=t2+4. Faster, complete the square: x2+8x+20=(x+4)2+4, which shows at once that r squares its input and adds 4. Check at x=0: r(4)=20, and 0+0+20=20. The error to avoid is r(x)=x2+8x+20 itself: that is r∘(x+4), not r.
Exercise 7: Linear, power and rational models: choosing the model and its domain
A mathematical model is a function chosen to describe data. Three families of Stewart's catalogue are used here. LINEAR, y=mx+b: equal steps in x add a CONSTANT amount to y, the slope, which has units. POWER, y=kxp: multiplying x by 2 always MULTIPLIES y by 2p. RATIONAL, such as y=xk, the power p=−1. A model also has a domain, where it describes reality, and it is wrong outside it.
The figure shows three data points (a,T), where a is the average distance of a body from its star (in astronomical units, AU) and T its period of revolution (in years), with the power curve through them.
a) The air temperature is 15∘C at ground level and 2∘C at an altitude of 2 km. Assuming a linear model T(h), find it, give the meaning and the units of its slope, and find the altitude where the temperature is −50∘C.
b) Find k and p in T=kap from the figure, then the period of a body at 16 AU and the distance of a body whose period is 125 years.
c) Decide which of these two tables comes from a linear model and which from a power model, and find each formula. Table 1: x=1,2,3,4 gives y=5,8,11,14. Table 2: x=1,2,4,8 gives y=2,16,128,1024.
d) At constant temperature, the pressure of a gas is P=V240 kPa, for a volume V in litres (Boyle's law). Compute P for V=8, 4 and 2. What happens to P when V is tripled? Give the domain of the model and name its family.
e) Use the model of a) at h=50 km, and explain what the result says about the domain of the model.
Show the solution
Answers
a)T(h)=15−6.5h; slope −6.5∘C per km; h=10 km
b)k=1, p=23; T(16)=64 years; a=25 AU
c)Table 1 linear, y=3x+2; Table 2 power, y=2x3
d)30, 60, 120 kPa; P is divided by 3; domain V>0; power function with p=−1 (rational)
e)T(50)=−310∘C, below absolute zero: the model is only valid on a limited range of altitudes.
a)
Two points (0,15) and (2,2): slope m=2−02−15=−6.5, intercept 15, so T(h)=15−6.5h. The slope is a RATE with units, ∘C per km: the temperature drops by 6.5 degrees for each kilometre climbed. The intercept 15∘C is the ground temperature. For T=−50: 15−6.5h=−50, so 6.5h=65 and h=10 km. An answer h=−10 comes from a sign error on the slope, and a negative altitude should trigger a second look.
b)
The point (1,1) gives 1=k⋅1p=k, so k=1. The point (4,8) then gives 4p=8; write both sides as powers of 2: 22p=23, so 2p=3 and p=23. Check with the third point: 93/2=(9)3=27. This is Kepler's third law, T=a3/2. At 16 AU: T=163/2=43=64 years. For T=125: a3/2=125, so a=3125=5 and a=25 AU. Take the root first and square after: numbers stay small, and no calculator is needed. The curve is not a straight line: a linear fit through (1,1) and (4,8) would predict T(9)=1+37⋅8=359, far from 27.
c)
Table 1: equal steps of x (+1) give equal steps of y (+3): constant differences, linear, slope 3, and y(1)=5 gives y=3x+2. Table 2: the x-values DOUBLE, and each time y is multiplied by the same factor, 216=16128=1281024=8. For a power function kxp, doubling x multiplies y by 2p, so 2p=8, p=3, and y(1)=2 gives k=2: y=2x3. Check: 2⋅83=1024. The differences of Table 2 (14, 112, 896) are not constant, and the ratios of Table 1 (58, 811) are not constant: each test identifies ONE family and rejects the other.
d)
P(8)=30, P(4)=60, P(2)=120 kPa: halving the volume doubles the pressure. If V is tripled, P=3V240=31⋅V240: the pressure is divided by 3, which is the power rule 3−1. The formula accepts every V=0, but a volume is positive, so the domain of the MODEL is V>0, only the branch of the hyperbola in the first quadrant. The family: P=240V−1 is a power function with p=−1, which is also the simplest rational function. Algebraic domain and physical domain differ, and a model answer must give the second.
e)
T(50)=15−6.5×50=15−325=−310∘C. No temperature is below absolute zero, about −273∘C, so the prediction is impossible. The formula is defined for every real h, but the MODEL is not: the linear decrease describes the lowest layer of the atmosphere only, roughly the first 11 km, and above it the temperature stops decreasing. Using a model outside the range of its data is called extrapolation, and the linear model extrapolated here does not bend where reality does. The domain of a model is part of the model.
Exercise 8: Five statements to correct
Each statement below was written by a student on a MATH 140 assignment, and each is false. Say what is wrong, give a counterexample with numbers, and write the correct statement.
a) The graph of y=f(x+3) is the graph of f shifted 3 units to the right.
b) For any two functions, f∘g=g∘f.
c) If f and g are both odd, then f∘g is even.
d) To obtain the graph of y=f(2x), stretch the graph of f horizontally by a factor of 2.
e) The graphs of y=−f(x) and y=f(−x) are the same, since both put a minus sign on f.
Show the solution
Answers
a)False: (x+3)2 has its vertex at x=−3. f(x+3) shifts LEFT 3.
b)False: f(x)=x2, g(x)=x+1 give 4=2 at x=1.
c)False: f(x)=g(x)=x give f∘g=x, odd. Odd ∘ odd is odd.
d)False: the zeros ±2 of x2−4 become ±1. f(2x) COMPRESSES by 2.
e)False: −x2=x2. They coincide exactly when f is odd.
a)
FALSE. Take f(x)=x2, vertex at 0: f(x+3)=(x+3)2 has its vertex where the INSIDE is 0, at x=−3, three units to the LEFT. The inside runs backwards: the new graph must reach, at x, the value that f had at x+3, three units further right, so it is behind by 3. Correct statement: y=f(x+3) is the graph of f shifted 3 units to the left, and y=f(x−3) is shifted 3 units to the right. The check that settles it in five seconds: where does the inside vanish?
b)
FALSE. With f(x)=x2 and g(x)=x+1: (f∘g)(x)=(x+1)2 and (g∘f)(x)=x2+1. At x=1: 4 and 2. Squaring then adding is not adding then squaring. Correct statement: in general f∘g=g∘f; they may agree for special pairs, such as f(x)=2x and g(x)=3x, which both give 6x, but the order must be read from the inside: in f(g(x)), g acts first.
c)
FALSE. With f(x)=g(x)=x, both odd, (f∘g)(x)=x, which is odd, not even. In general, f(g(−x))=f(−g(x))=−f(g(x)): the minus sign produced by g passes through f, which sends it outside. So odd ∘ odd is ODD. What the student remembered belongs to the PRODUCT: (fg)(−x)=(−f(x))(−g(x))=f(x)g(x), so the product of two odd functions is even, as x⋅x3=x4 shows. Composition and product obey different sign rules, because composition is not multiplication.
d)
FALSE. Take f(x)=x2−4, with zeros ±2. Then f(2x)=4x2−4, with zeros ±1: the graph got NARROWER. A point (a,b) of f goes where 2x=a, at (2a,b): every x-coordinate is halved. Correct statement: y=f(2x) compresses the graph horizontally by a factor 2; it is y=f(2x) that stretches it by 2. Outside, 2f(x) does stretch vertically by 2: the same number has opposite effects inside and outside.
e)
FALSE. For f(x)=x2: −f(x)=−x2, a parabola opening downward, and f(−x)=(−x)2=x2, the same parabola as f. At x=1: −1 and 1. The minus sign OUTSIDE acts on y (reflection in the x-axis); INSIDE it acts on x (reflection in the y-axis). Correct statement: y=−f(x) and y=f(−x) are the reflections of the graph of f in the x-axis and in the y-axis; they coincide exactly when f(−x)=−f(x) for all x, that is when f is odd, as x3 shows.
Exercise 9: Income tax by brackets: a piecewise linear function
A country taxes income by brackets: 0% on the first 10000 dollars, 20% on the part of the income between 10000 and 40000 dollars, and 30% on the part above 40000 dollars. Each rate applies only to the PART of the income that lies in its bracket. Let T(I) be the tax, in dollars, on an income of I dollars.
The figure shows the graph of T, with both axes in thousands of dollars. No calculator: every value is exact.
a) Compute T(8000), T(25000) and T(60000).
b) Write T(I) as a piecewise formula for I≥0, in the form mI+b on each piece, and check that the pieces agree at both thresholds.
c) A worker earning 39000 dollars is offered a raise to 41000 dollars and fears that the higher bracket will leave him with less. Write his income after tax N(I)=I−T(I) as a piecewise formula, and settle the question.
d) The average tax rate is A(I)=IT(I). Compute A(60000) and compare it with the rate of the last bracket. At what income is the average rate 15%?
e) A person paid 9000 dollars of tax. What was the income? Treat every piece.
Show the solution
Answers
a)0, 3000 and 12000 dollars
b)T(I)=0 on [0,10000], 0.2I−2000 on (10000,40000], 0.3I−6000 for I>40000; values 0 and 6000 at the thresholds
e)I=50000 dollars (55000 rejected in the 20% piece)
a)
8000 is in the first bracket: T(8000)=0. For 25000, the first 10000 are free and the remaining 15000 are taxed at 20%: T(25000)=0.2×15000=3000. For 60000: 0 on the first 10000, 20% of the 30000 between 10000 and 40000, that is 6000, and 30% of the 20000 above 40000, that is 6000: T(60000)=12000. The classic error is 30% of the whole income, 18000 dollars: the top rate applies only to the top part. On the figure, T(60)=12 in thousands.
b)
First piece, 0≤I≤10000: T(I)=0. Second, 10000<I≤40000: T(I)=0.2(I−10000)=0.2I−2000. Third, I>40000: the full second bracket, 0.2×30000=6000, plus 30% of the excess, T(I)=6000+0.3(I−40000)=0.3I−6000. At 10000: the first formula gives 0, the second 2000−2000=0. At 40000: 8000−2000=6000 and 12000−6000=6000. The formulas AGREE at each threshold, so the graph has no jump: it only bends, and the slope of each piece is its rate, 0, 0.2, 0.3. Writing 0.3I on the third piece, without the −6000, would create a jump of 6000 dollars at 40000.
c)
N(I)=I−T(I) piece by piece: N(I)=I on [0,10000], N(I)=I−(0.2I−2000)=0.8I+2000 on (10000,40000], and N(I)=I−(0.3I−6000)=0.7I+6000 for I>40000. Then N(39000)=31200+2000=33200 and N(41000)=28700+6000=34700: the raise gains him 1500 dollars after tax. More generally, every piece of N has a POSITIVE slope (1, 0.8, 0.7) and the pieces agree at the thresholds, so N always increases: under bracket taxation, earning more never leaves you with less. Only the extra dollars above 40000 are taxed at 30%, and each of them still leaves 70 cents.
d)
A(60000)=6000012000=51=20%, well below the 30% rate of the last bracket: the lower brackets pull the average down. The rate of the bracket is the MARGINAL rate, the slope of T; the average rate is the slope of the line from the origin to the point of the graph. For A(I)=15%, try the second piece: I0.2I−2000=0.15 gives 0.05I=2000, I=40000, which is in (10000,40000]: kept. Check: T(40000)=6000 and 400006000=0.15. On the first piece A=0; on the third, 0.3I−6000=0.15I gives I=40000 again, not in I>40000. The answer is 40000 dollars, once.
e)
Solve T(I)=9000 on each piece, then check the candidate against its piece. First piece: 0=9000, impossible. Second: 0.2I−2000=9000 gives I=55000, NOT in (10000,40000]: rejected (the formula of the second bracket does not apply to that income). Third: 0.3I−6000=9000 gives 0.3I=15000, I=50000>40000: kept. Check with the brackets: 6000+0.3×10000=9000. The income was 50000 dollars. A shortcut exists: T reaches only 6000 at the end of the second bracket, and 9000>6000, so only the third piece can answer.
Exercise 10: A final exam problem: coupon, discount and free delivery, composed
An online store runs two promotions on a cart worth p dollars: a sale of 20% off, D(p)=0.8p, and a coupon of 10 dollars off, C(q)=q−10, valid when the amount it applies to is at least 10 dollars. Delivery costs 8 dollars when the amount due after reductions is below 50 dollars, and is free from 50 dollars on.
The figure shows the amount paid A(q) as a function of the amount q due after reductions: A(q)=q+8 for 0≤q<50 and A(q)=q for q≥50.
a) Compute D(C(100)) and C(D(100)). Find formulas for D∘C and C∘D, and show that one order is always cheaper for the customer.
b) The store applies the sale first, then the coupon, then delivery: the total is T(p)=A(C(D(p))). Find the domain of C∘D, then write T(p) as a piecewise formula.
c) Compare T(70) and T(75). For which carts p<75 does the customer pay more than with a cart of 75 dollars?
d) A sales tax of 5% is added on the total: F(p)=1.05T(p). Compute F(70) and F(75). Which transformation takes the graph of T to that of F, and what happens to the drop at p=75?
e) A second store uses the same reductions but decides delivery on the cart value p BEFORE reductions: free from p=50 on. Write its total T2(p) and compare T2(60) with T(60).
Show the solution
Answers
a)72 and 70 dollars; (D∘C)(p)=0.8p−8, (C∘D)(p)=0.8p−10: sale first is always 2 dollars cheaper
b)Domain p≥12.5; T(p)=0.8p−2 on [12.5,75), 0.8p−10 for p≥75
c)T(70)=54>T(75)=50; carts with 65<p<75
d)F(70)=56.70, F(75)=52.50 dollars; vertical stretch by 1.05; the drop grows from 8 to 8.40 dollars and stays at p=75
e)T2(p)=0.8p−2 on [12.5,50), 0.8p−10 for p≥50; T2(60)=38<T(60)=46
a)
D(C(100))=D(90)=72: coupon first, then sale. C(D(100))=C(80)=70: sale first, then coupon. In general (D∘C)(p)=0.8(p−10)=0.8p−8 and (C∘D)(p)=0.8p−10, so (D∘C)(p)−(C∘D)(p)=2 for every cart: applying the sale FIRST always saves 2 dollars. The reason is visible in the formulas: when the coupon acts first, the sale also shrinks the coupon, to 0.8×10=8 dollars. Composition order is not a detail, it is money.
b)
C∘D: the inner function D accepts every p≥0; the coupon then needs D(p)=0.8p≥10, so p≥12.5. The domain is [12.5,∞), and q=C(D(p))=0.8p−10≥0 there. Then A asks which piece q belongs to: q<50 exactly when 0.8p−10<50, that is p<75. So T(p)=(0.8p−10)+8=0.8p−2 for 12.5≤p<75, and T(p)=0.8p−10 for p≥75. The threshold of delivery is 50 in the variable q, but 75 in the variable p: the outer function's breakpoint is pulled back through the inner function, the inside-out reading of the whole chapter. The solution figure shows T, with its drop at p=75.
c)
T(70)=56−2=54 and T(75)=60−10=50: the larger cart costs 4 dollars LESS. For p<75 the total 0.8p−2 exceeds 50 when 0.8p>52, that is p>65. So every cart strictly between 65 and 75 dollars pays more than a cart of 75: those customers should add items up to 75 dollars. At p=65 exactly, T(65)=50, a tie. On the figure of the solution, this is the part of the first piece above the dashed level T=50. A piecewise price with a jump always creates such a zone, and finding it is a question of solving an inequality on ONE piece and checking it against the interval of that piece.
d)
F(70)=1.05×54=56.70 and F(75)=1.05×50=52.50 dollars. The factor 1.05 is OUTSIDE T: it acts on y only, a vertical stretch by 1.05, and leaves every x-coordinate in place. So the drop is still at p=75, where the inside decides; its size, 58−50=8 dollars on T (the first formula evaluated at 75 gives 0.8×75−2=58, the level just before the drop), becomes 1.05×8=8.40 dollars on F. The zone of part c) does not move either: F(p)>F(75) exactly when T(p)>T(75), since multiplying by a positive number keeps inequalities.
e)
Now the delivery rule reads the variable p itself: T2(p)=(0.8p−10)+8=0.8p−2 for 12.5≤p<50, and T2(p)=0.8p−10 for p≥50. The drop moves from p=75 to p=50. For a cart of 60 dollars, q=38: the first store charges delivery, T(60)=46, the second does not, T2(60)=38. Same three rules, different totals, because the threshold is applied to a different INPUT. When a price has several rules, the first question is always which quantity each rule reads, and that is exactly what composition writes down.
Something missing from this set?A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.
Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space.
Rather not create an account? Write to me directly.