MATH 140 Calculus 1 • McGill University, Montreal

Revision sheet: functions, graphs and transformations (MATH 140)

This sheet is not a summary of sections 1.1 to 1.3 of Stewart: you already have the course notes. It answers one question only, what makes students lose marks on functions and their graphs in MATH 140 at McGill University, and which precise gesture avoids each loss.

The chapter looks like high school review, and that is the danger: the same errors come back on every later chapter, a domain forgotten before differentiating, a graph shifted the wrong way in a curve sketch. Every value below is exact and done by hand, as on the exam, and every trap comes with the line that earns the mark.

Mark this sheet as read or add it to your favourites: a free account, no password, keeps your read sheets and favourites from one visit to the next and tells you which chapter to tackle next. Create your space, an email is enough.

The thread of the chapter

Read a formula from the INSIDE out: inside the parentheses acts on xx and runs backwards, f(x+3)f(x + 3) moves LEFT and f(2x)f(2x) COMPRESSES; outside acts on yy and runs as written, multiplication before addition; and the same reading decides the domain of a composition (inner function first), the parity test (−x-x inside, compare outside) and the value of a piecewise function (which piece first).

This chapter is part of MATH 140, Calculus 1 (McGill)

The essentials

Inside acts on x and runs backwards, outside acts on y as written

  • • f(x−h)f(x - h): right hh; f(x+h)f(x + h): LEFT hh. f(x)+kf(x) + k: up kk. The inside moves the graph against the sign you read.
  • • f(bx)f(bx) with b>1b > 1: horizontal COMPRESSION by bb; af(x)af(x) with a>1a > 1: vertical STRETCH by aa. The same number has opposite effects inside and outside.
  • • f(−x)f(-x): reflection in the yy-axis. −f(x)-f(x): reflection in the xx-axis. −f(−x)-f(-x): half-turn about the origin.
  • • Inside with a coefficient, FACTOR first: f(2x+4)=f(2(x+2))f(2x + 4) = f(2(x + 2)), compress by 22 then left 22.
  • • Outside, follow the order of operations of the formula: in 3−2f(x)3 - 2f(x), multiply by −2-2 first, then add 33.
  • • The point method never fails: for (u,w)(u, w) on ff, solve inside =u= u for xx, then apply the outside to ww.
-4-3-2-1123456-1123456y = √xy = √(x + 3)y = √x + 3x
The +3+3 inside moves x\sqrt x three units LEFT, to start at (−3,0)(-3, 0); the same +3+3 outside moves it three units UP, to start at (0,3)(0, 3).

A marker checks one point. Write the image of one named point of the graph next to your sketch: it earns the mark even if the drawing is rough.

Domain, pieces and symmetry: three computations, always in the same order

  • • Domain: denominator ≠0\ne 0, even root of a quantity ≥0\ge 0 (and >0> 0 if the root is in a denominator). Read it on the formula AS GIVEN, before any simplification.
  • • Composition f(g(x))f(g(x)): xx in the domain of gg first, then g(x)g(x) in the domain of ff.
  • • Piecewise: find the piece of the input first. To solve, solve each piece and REJECT the candidates outside their piece.
  • • a2=∣a∣\sqrt{a^2} = |a|, never aa; the sign to study in ∣E∣|E| is the sign of EE.
  • • Even: f(−x)=f(x)f(-x) = f(x) for EVERY xx; odd: f(−x)=−f(x)f(-x) = -f(x) for every xx; the domain must be symmetric. One point can disprove a symmetry, never prove it.

The rules in table form

Each row reads from left to right: the assumptions, then the result. A red cell is not an answer, it is the finding that the form settles nothing and the instruction to rewrite it. Every case is followed by a worked example.

What each formula does to the graph of f

Read a line as: the formula of the first column changes the variable of the second, with the effect of the third, shown on the point (2,5)(2, 5) of the graph of ff. The red lines are readings that students write and that are false.

FormulaActs onEffect
f(x)+3f(x) + 3 yy up 33

Example: (2,5)↦(2,8)(2, 5) \mapsto (2, 8).

f(x+3)f(x + 3) xx left 33

Example: (2,5)↦(−1,5)(2, 5) \mapsto (-1, 5): solve x+3=2x + 3 = 2.

3f(x)3f(x) yy stretch ×3\times 3

Example: (2,5)↦(2,15)(2, 5) \mapsto (2, 15); points on the xx-axis do not move.

f(3x)f(3x) xx compress ÷3\div 3

Example: (2,5)↦(23,5)(2, 5) \mapsto \left(\frac{2}{3}, 5\right): solve 3x=23x = 2.

−f(x)-f(x) yy flip in xx-axis

Example: (2,5)↦(2,−5)(2, 5) \mapsto (2, -5).

f(−x)f(-x) xx flip in yy-axis

Example: (2,5)↦(−2,5)(2, 5) \mapsto (-2, 5).

3−2f(x)3 - 2f(x) yy w↦3−2ww \mapsto 3 - 2w

Example: (2,5)↦(2,−7)(2, 5) \mapsto (2, -7): times −2-2 first, then plus 33.

f(2x+4)f(2x + 4) xx compress, left 44 rule that does not exist

Example: (2,5)↦(−1,5)(2, 5) \mapsto (-1, 5), since 2x+4=22x + 4 = 2 gives x=−1x = -1; the false reading gives (1−4,5)=(−3,5)(1 - 4, 5) = (-3, 5).

What to do: Factor the inside, f(2(x+2))f(2(x + 2)): compress by 22, THEN left 22. Or solve inside =u= u.

f(x+3)f(x + 3) xx f(x)+f(3)f(x) + f(3) rule that does not exist

Example: f(x)=x2f(x) = x^2 at x=1x = 1: f(4)=16f(4) = 16, while f(1)+f(3)=10f(1) + f(3) = 10.

What to do: ff is not a number: replace EVERY xx in the formula of ff by the whole block x+3x + 3.

Every line of this table is the same statement: the inside is solved for xx, the outside is computed on yy.

The mistakes that cost marks

These are the errors I correct most often in session. Each one costs marks on a paper, even when the reasoning behind it is right.

1. Shifting the wrong way

1 mark, and the whole sketch that follows

What not to write

“y=(x+3)2y = (x + 3)^2 is the parabola y=x2y = x^2 moved 33 units to the right.”

What to write

“The inside x+3x + 3 vanishes at x=−3x = -3, so the vertex is (−3,0)(-3, 0): the parabola is moved 33 units to the LEFT.”

Why: The new graph must take at xx the value that ff takes at x+3x + 3, further right, so it lags behind. Asking where the inside vanishes settles the direction in two seconds.

2. Reading f(2x + 4) as a shift of 4

2 marks: every point of the graph is in the wrong place

What not to write

“y=f(2x+4)y = f(2x + 4): compress by 22, then move 44 units left.”

What to write

“f(2x+4)=f(2(x+2))f(2x + 4) = f(2(x + 2)): compress by 22, then move 22 units left. Check: (u,w)↦(u−42,w)(u, w) \mapsto \left(\frac{u - 4}{2}, w\right).”

Why: After compressing, the shift acts on the compressed graph, so it must be read on x+2x + 2, not on 2x+42x + 4. Solving 2x+4=u2x + 4 = u avoids the question of order entirely.

3. Adding before multiplying outside

1 to 2 marks: the vertex and the range are both wrong

What not to write

“y=−2(x+2)2+3y = -2(x + 2)^2 + 3: move up 33, then stretch by 22 and reflect, so the vertex is at (−2,−6)(-2, -6).”

What to write

“Outside, the formula multiplies by −2-2 first, then adds 33: the vertex (0,0)(0, 0) goes to (−2,0)(-2, 0), stays at height 00 after the stretch, then rises to (−2,3)(-2, 3).”

Why: Outside the parentheses, the transformations follow the order of operations of the formula, exactly as when you compute a number: −2w+3-2w + 3 is not −2(w+3)-2(w + 3).

4. Reading the domain on the simplified formula

1 mark, and every later question that uses the domain

What not to write

“F(x)=x2−9x−3=x+3F(x) = \frac{x^2 - 9}{x - 3} = x + 3, so the domain of FF is R\mathbb{R}.”

What to write

“FF is not defined at x=3x = 3. For x≠3x \ne 3, F(x)=x+3F(x) = x + 3: the graph is the line y=x+3y = x + 3 with a hole at (3,6)(3, 6), and the domain is R∖{3}\mathbb{R} \setminus \{3\}.”

-1123456123456789hole at (3, 6)y = (x² - 9)/(x - 3)x
The graph of x2−9x−3\frac{x^2 - 9}{x - 3} is the line y=x+3y = x + 3 with ONE point missing: the open dot at (3,6)(3, 6) is the domain restriction made visible.

Why: Cancelling x−3x - 3 is legal only because x≠3x \ne 3 was assumed; the simplified formula forgets that assumption, the function does not. The same happens with v(v(x))v(v(x)) for v(x)=1x−2v(x) = \frac{1}{x - 2}, whose simplified form is defined at x=2x = 2.

5. Taking the range of a quadratic from its two ends

1 mark

What not to write

“On [−3,1][-3, 1], q(x)=x2+4x+1q(x) = x^2 + 4x + 1 goes from q(−3)=−2q(-3) = -2 to q(1)=6q(1) = 6, so its range is [−2,6][-2, 6].”

What to write

“q(x)=(x+2)2−3q(x) = (x + 2)^2 - 3, and x=−2x = -2 is in [−3,1][-3, 1], so the minimum is −3-3 and the maximum is q(1)=6q(1) = 6: the range is [−3,6][-3, 6].”

-4-3-2-112-4-3-2-11234567max 6 at x = 1min -3 at x = -2(-3, -2)x
The arc on [−3,1][-3, 1] goes down to −3-3 at x=−2x = -2, lower than both ends: the range [−3,6][-3, 6] lies between the two dashed levels, not between q(−3)q(-3) and q(1)q(1).

Why: The two ends give the range only when the function moves in one direction on the whole interval. A vertex inside the interval is lower (or higher) than both ends: complete the square and look where the vertex is.

6. Keeping a candidate that is not in its own piece

1 mark, for an extra solution that does not solve the equation

What not to write

“∣x−1∣=2x+4|x - 1| = 2x + 4: x−1=2x+4x - 1 = 2x + 4 gives x=−5x = -5, and −(x−1)=2x+4-(x - 1) = 2x + 4 gives x=−1x = -1. Solutions: −5-5 and −1-1.”

What to write

“Case x≥1x \ge 1: x=−5x = -5, not ≥1\ge 1, rejected. Case x<1x < 1: x=−1x = -1, kept. Check: ∣−2∣=2=2(−1)+4|-2| = 2 = 2(-1) + 4. The only solution is x=−1x = -1.”

Why: Each formula of a piecewise function is valid on its own interval only. A candidate that solves the formula of a piece it does not belong to is not a solution: ∣−6∣=6|-6| = 6 while 2(−5)+4=−62(-5) + 4 = -6.

7. Proving a symmetry with one point

the whole question

What not to write

“p(x)=x3−xp(x) = x^3 - x: p(−1)=0=p(1)p(-1) = 0 = p(1), so pp is even.”

What to write

“p(−x)=−x3+x=−p(x)p(-x) = -x^3 + x = -p(x) for every xx, so pp is odd. It is not even: p(−2)=−6≠6=p(2)p(-2) = -6 \ne 6 = p(2).”

Why: Even and odd are statements about EVERY xx: they are proved by computing f(−x)f(-x) in general. One point can only disprove, as x=2x = 2 does here.

8. Treating a composition as a product, or as commutative

2 marks, on the formula and on its domain

What not to write

“f(x)=x2f(x) = x^2 and g(x)=x+1g(x) = x + 1, so (f∘g)(x)=x2(x+1)(f \circ g)(x) = x^2(x + 1), and also (g∘f)(x)(g \circ f)(x).”

What to write

“(f∘g)(x)=f(x+1)=(x+1)2(f \circ g)(x) = f(x + 1) = (x + 1)^2, while (g∘f)(x)=g(x2)=x2+1(g \circ f)(x) = g(x^2) = x^2 + 1; at x=1x = 1 they give 44 and 22.”

Why: f∘gf \circ g feeds the OUTPUT of gg into ff: every xx of ff is replaced by the whole block g(x)g(x). Multiplication is another operation, and the order of a composition is read from the inside.

Which method to choose

Which transformation, by the FORM of the formula

Look at where each number sits, inside the parentheses of f or outside

  • If a number added inside, f(x+h)f(x + h) → horizontal shift, AGAINST the sign: +h+h moves left

    Example: x+3\sqrt{x + 3} starts at x=−3x = -3

  • If a number added outside, f(x)+kf(x) + k → vertical shift, WITH the sign

    Example: x+3\sqrt x + 3 starts at (0,3)(0, 3)

  • If a factor inside, f(bx)f(bx) → horizontal compression by bb (stretch if 0<b<10 < b < 1); a negative bb also reflects in the yy-axis

    Example: f(2x)f(2x): (4,1)↦(2,1)(4, 1) \mapsto (2, 1)

  • If a factor outside, af(x)af(x) → vertical stretch by ∣a∣|a|, and a reflection in the xx-axis if a<0a < 0

    Example: −2f(x)-2f(x): (4,1)↦(4,−2)(4, 1) \mapsto (4, -2)

  • If an inside of the form bx+cbx + c with b≠1b \ne 1 → factor bb out first, f(b(x+cb))f(b(x + \frac{c}{b})); or solve bx+c=ubx + c = u

    Example: 8−2x=−2(x−4)\sqrt{8 - 2x} = \sqrt{-2(x - 4)}: it starts at x=4x = 4, not 88

  • If several operations outside → apply them in the order of operations of the formula

    Example: −2(x+2)2+3-2(x + 2)^2 + 3: times −2-2, then plus 33, vertex (−2,3)(-2, 3)

The quadratic, the root and the quotient of two linear expressions are brought to these forms by completing the square, by factoring under the root, and by dividing: x+1x−1=1+2x−1\frac{x + 1}{x - 1} = 1 + \frac{2}{x - 1}.

Which restriction, by the FORM of the expression

Before simplifying anything, list every place where the formula could fail

  • If a denominator → it must not be 00: factor it and remove each root

    Example: 1x2−4x\frac{1}{x^2 - 4x}: x≠0x \ne 0 and x≠4x \ne 4

  • If a square root (or any even root) in a numerator → what is under it is ≥0\ge 0

    Example: x+3\sqrt{x + 3}: x≥−3x \ge -3

  • If an even root in a denominator → what is under it is STRICTLY positive

    Example: 1(x−1)(x−4)\frac{1}{\sqrt{(x - 1)(x - 4)}}: x<1x < 1 or x>4x > 4

  • If an odd root,  3\sqrt[3]{\ } → no restriction at all

    Example: x−83\sqrt[3]{x - 8} at x=0x = 0 is −2-2

  • If a composition f(g(x))f(g(x)) → domain of gg first, then g(x)g(x) in the domain of ff

    Example: 1x−2\frac{1}{\sqrt x - 2}: x≥0x \ge 0 and x≠4x \ne 4

In a model, add the restrictions of reality: a volume, a length, a price are positive, even where the formula would accept a negative value.

How the answer is expected to be written

A marker ticks steps. Here they are in order, with the concluding sentence expected word for word.

Proving that a function is even, odd, or neither

When to use it: Any question that asks whether ff is even, odd or neither, or to justify a symmetry of its graph

  1. 1 State the domain and check that it is symmetric about 00. If it is not, conclude NEITHER at once.
  2. 2 Compute f(−x)f(-x) in general, replacing EVERY xx by (−x)(-x) with parentheses, and simplify.
  3. 3 Compare with f(x)f(x) and with −f(x)-f(x). If one of them matches for every xx, conclude.
  4. 4 If neither matches, give ONE numerical counterexample for each symmetry: a value aa with f(−a)≠f(a)f(-a) \ne f(a) and a value bb with f(−b)≠−f(b)f(-b) \ne -f(b).

Concluding sentence

“The domain R\mathbb{R} is symmetric about 00, and for every real xx, f(−x)=(−x)3−4(−x)=−(x3−4x)=−f(x)f(-x) = (-x)^3 - 4(-x) = -(x^3 - 4x) = -f(x). Hence ff is odd, and its graph is symmetric about the origin.”

The trap: Checking f(−1)=f(1)f(-1) = f(1) and concluding even: one point proves nothing, as x3−xx^3 - x shows.

Marking: Typically 1 mark for the domain, 2 for the general computation of f(-x), 1 for the conclusion; for NEITHER, the two counterexamples carry the marks.

Finding the domain of a composition

When to use it: Any question that gives ff and gg and asks for f∘gf \circ g with its domain

  1. 1 Write the domain of the INNER function gg.
  2. 2 Write the condition for g(x)g(x) to be a legal input of ff, and solve it.
  3. 3 Intersect the two conditions: that is the domain.
  4. 4 Only then write and simplify the formula of f(g(x))f(g(x)), and say that the simplified formula is valid on that domain only.

Concluding sentence

“xx must be in the domain of vv, so x≠2x \ne 2, and v(x)v(x) must be in the domain of vv, so 1x−2≠2\frac{1}{x - 2} \ne 2, that is x≠52x \ne \frac{5}{2}. The domain of v∘vv \circ v is R∖{2,52}\mathbb{R} \setminus \{2, \frac{5}{2}\}, and (v∘v)(x)=x−25−2x(v \circ v)(x) = \frac{x - 2}{5 - 2x} on it.”

The trap: Reading the domain on the simplified formula, which is defined at x=2x = 2 although v(2)v(2) does not exist.

Marking: Typically 2 marks for the formula and 2 for the domain, of which 1 for the condition on the inner function.

Check before you hand in

Five minutes of checking recover more marks than one more problem started in a hurry.

The typical problem, taken apart

A transformed graph with an inside to factor and two outside operations

The graph of ff is made of three segments through A(−2,1)A(-2, 1), B(0,3)B(0, 3), C(2,−1)C(2, -1) and D(4,1)D(4, 1). Sketch y=1−f(x2+1)y = 1 - f\left(\frac{x}{2} + 1\right) and give its domain and range.

No calculator. Every step must be justified as on a MATH 140 midterm.

-3-2-112345-2-11234ABCDx
The graph of ff: domain [−2,4][-2, 4], range [−1,3][-1, 3], with its four named points. The question asks for the image of each named point, not for a new drawing from scratch.

Step 1

Inside: x2+1=u\frac{x}{2} + 1 = u gives x=2(u−1)=2u−2x = 2(u - 1) = 2u - 2. Outside: y=1−wy = 1 - w. So (u,w)↦(2u−2, 1−w)(u, w) \mapsto (2u - 2,\ 1 - w).

Why

Solving inside =u= u gives the xx-coordinate directly, whatever the order of the transformations: this is the line that earns the method mark.

Step 2

In words: x2+1=12(x+2)\frac{x}{2} + 1 = \frac{1}{2}(x + 2), a horizontal STRETCH by 22, then a shift LEFT 22; outside, a reflection in the xx-axis (−w-w), then up 11.

Why

The factor 12\frac{1}{2} is inside, so it stretches; factoring it out shows that the shift is 22, not 11. Outside, the minus sign acts before the +1+1.

Step 3

A(−2,1)↦(−6,0)A(-2, 1) \mapsto (-6, 0), B(0,3)↦(−2,−2)B(0, 3) \mapsto (-2, -2), C(2,−1)↦(2,2)C(2, -1) \mapsto (2, 2), D(4,1)↦(6,0)D(4, 1) \mapsto (6, 0). Join them by segments in the same order.

-7-6-5-4-3-2-11234567-3-2-11234y = 1 - f(x/2 + 1)f, dashedx

Why

Segments stay segments under these transformations, so four points suffice for the sketch. Naming them makes the answer checkable.

Step 4

Domain: −2≤x2+1≤4-2 \le \frac{x}{2} + 1 \le 4 gives −6≤x≤6-6 \le x \le 6. Range: ff takes every value of [−1,3][-1, 3], so 1−f1 - f takes every value of [1−3,1+1]=[−2,2][1 - 3, 1 + 1] = [-2, 2].

Why

The domain comes from the inside, the range from the outside. Multiplying by −1-1 swaps the ends of the interval, which is where the order of the bracket is lost.

Step 5

Check with BB: at x=−2x = -2, 1−f(−22+1)=1−f(0)=1−3=−21 - f\left(\frac{-2}{2} + 1\right) = 1 - f(0) = 1 - 3 = -2, as found.

Why

One point through the formula confirms both the inside and the outside at once; it costs ten seconds.

The conclusion, written out

“The graph of y=1−f(x2+1)y = 1 - f\left(\frac{x}{2} + 1\right) is the polygonal line through (−6,0)(-6, 0), (−2,−2)(-2, -2), (2,2)(2, 2) and (6,0)(6, 0); its domain is [−6,6][-6, 6] and its range is [−2,2][-2, 2].”

The classic mistake on this problem: Reading x2+1\frac{x}{2} + 1 as a compression by 22 and a shift of 11 to the left, which sends AA to (−2,0)(-2, 0); or adding 11 before reflecting, which gives the range [−4,0][-4, 0].

Learn by heart

  • • Inside acts on xx and runs BACKWARDS: f(x+3)f(x + 3) left, f(2x)f(2x) compress. Outside acts on yy as written: f(x)+3f(x) + 3 up, 2f(x)2f(x) stretch.
  • • f(bx+c)f(bx + c): factor bb first, or solve bx+c=ubx + c = u. Outside: multiply before adding, as the formula says.
  • • Domain: denominator ≠0\ne 0, even root ≥0\ge 0 (>0> 0 in a denominator), read BEFORE simplifying.
  • • a2=∣a∣\sqrt{a^2} = |a|. Piecewise: which piece first; every candidate checked against its piece.
  • • Even f(−x)=f(x)f(-x) = f(x), odd f(−x)=−f(x)f(-x) = -f(x), for EVERY xx of a symmetric domain.
  • • (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)): gg first. Not a product, not commutative. Domain: gg first, then g(x)g(x) in the domain of ff.
  • • Power model kxpkx^p: doubling xx multiplies yy by 2p2^p. Linear model: equal steps add the slope.

Frequently asked questions

Why does f(x + 3) shift the graph to the left and not to the right?

Because the new function must take at each x the value that f takes at x plus 3, three units further right. The whole graph therefore arrives three units earlier, on the left. The quick test is to ask where the inside of the parentheses equals zero: for x plus 3, that happens at x equal to minus 3, which is where the point at the origin of f has moved.

In what order should I apply transformations to a graph?

Handle the inside and the outside separately. Outside the parentheses, follow the order of operations of the formula: multiply first, then add. Inside, factor the coefficient of x first, then read the stretch and the shift. When in doubt, take a point of the original graph, solve for the x that makes the inside equal to its first coordinate, then apply the outside operations to its second coordinate.

How do I find the domain of a composition of two functions in MATH 140?

Start with the inner function: x must be in its domain. Then its output must be an allowed input of the outer function, which gives a second condition to solve. The domain is the set of x satisfying both. Never read the domain from the simplified final formula, because simplifying can erase a value that the inner function already excluded.

How do I prove that a function is odd or even?

Check that the domain is symmetric about zero, then compute f of minus x in general, replacing every x by minus x in parentheses, and simplify. If you get f of x, the function is even; if you get minus f of x, it is odd. If you get neither, give one numerical counterexample for each symmetry. Testing one point can show a function is not even, but it can never prove that it is.

Practise it

Corrected exercises: Functions, graphs and transformations, MATH 140 at McGill

A method is proved on a paper, not on a sheet. The set for the same chapter takes each of these traps into a problem, with the solution written out step by step.

  • 10 corrected exercises
  • 100 points
  • 150 minutes
Do the exercises
Next sheet Exponential, inverse and logarithmic functions

© Ahmed Squalli Houssaini. Revision sheet published at www.letuteurscientifique.ca/en/fiches/math140-functions-review. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

See also

Looking for a MATH 140 tutor in Montreal?

Get in touch for a first session. The review of functions decides more of the course than it seems: every derivative, limit and curve sketch of MATH 140 is done on these functions.

Site by Studio Squalli