MATH 140 Calculus 1 • McGill University, Montreal

Revision sheet: curve sketching (MATH 140)

This sheet is not a summary of section 4.5 of Stewart: you already have the course notes and the checklist. It answers one question only, what makes students lose marks when they sketch a graph in MATH 140 at McGill University, and which precise gesture avoids each loss.

Almost every lost mark on this chapter is lost at a point that is not in the domain, or at a point where f′f' does not exist. The computations are those of the previous chapters; what is new is putting them together without contradiction, by hand, exactly as on the final.

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

A sketch is a SYNTHESIS: every feature comes from a computed sign or limit, gathered in ONE sign table built on the DOMAIN, and the domain decides what each sign change means. No extremum, no inflection point and no asymptote is declared before checking whether the point is in the domain.

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

The essentials

The domain first: what an excluded point can and cannot be

  • • The domain is computed BEFORE any derivative: every excluded point cuts every row of the sign table, and is marked there by a double bar.
  • • At a zero aa of the denominator of a rational function, cancel the common factors first. A factor that cancels gives a HOLE, drawn as an open circle; a zero of the reduced denominator gives a vertical asymptote.
  • • At an excluded point there is no extremum and no inflection point, even when f′f' or f′′f'' changes sign across it: there is no point (a,f(a))(a, f(a)) to name.
  • • At a point of the domain where f′f' does not exist, there IS a critical number: a corner, a cusp or a vertical tangent.
  • • A vertical asymptote needs an infinite limit of ff itself. Each side is computed separately, and its sign decides where the branch goes.
-7-6-5-4-3-2-112345-4-3-2-1123456hole (2, 3/4)x = −2y = 1
Two zeros of the denominator of x2−x−2x2−4\frac{x^2 - x - 2}{x^2 - 4}: at x=2x = 2 the factor cancels and leaves a hole at (2,34)\left(2, \frac{3}{4}\right), at x=−2x = -2 it does not, and the branches follow an asymptote.

Write the domain on the first line of the copy and put a double bar in the table under each excluded point: most of the marks lost on this chapter are lost at those points.

The checklist, and what each line puts in the table

  • • Domain; intercepts; symmetry (f(−x)=f(x)f(-x) = f(x) even, f(−x)=−f(x)f(-x) = -f(x) odd, a period for a trigonometric function).
  • • Asymptotes: one-sided limits at each excluded point, limits at −∞-\infty AND +∞+\infty separately, slant asymptote by long division when the degree of the numerator exceeds that of the denominator by one.
  • • f′f' factored and its sign on each interval of the domain: increase, decrease, extrema where f′f' changes sign at a point of the domain.
  • • f′′f'' factored and its sign: concavity, inflection points where the concavity changes at a point of the domain.
  • • Then ONE table with the rows f′f', f′′f'' and ff, and a sketch drawn from the table only.

The table is the proof and the sketch is its picture. A feature of the drawing that is not in the table, or a line of the table that the drawing ignores, costs marks either way.

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 the sign table says at a point a

Read a line as: what happens at x=ax = a, under the condition of the middle column, gives the conclusion of the last one. The red lines are the features that a careless sketch shows and the true graph does not have.

At x=ax = aConditionConclusion
f′f' changes sign aa in the domain local extremum

Example: x2/3(x−5)x^{2/3}(x - 5): f′f' goes from −- to ++ at 22, local min f(2)=−343f(2) = -3\sqrt[3]{4}.

f′(a)=0f'(a) = 0, same sign both sides aa in the domain no extremum not an extremum

Example: x3x2−3\frac{x^3}{x^2 - 3} has f′(0)=0f'(0) = 0 and f′<0f' < 0 on both sides of 00.

Same form, other result: The same function has f′(3)=0f'(3) = 0 too, and there f′f' changes sign: local min f(3)=92f(3) = \frac{9}{2}.

What to do: Read the sign of f′f' on BOTH sides before writing max or min.

f′′f'' changes sign aa in the domain inflection point

Example: xx2−1\frac{x}{x^2 - 1}: f′′f'' changes sign at 00, inflection point (0,0)(0, 0).

f′′f'' changes sign aa not in the domain no point no inflection point

Example: xx2−1\frac{x}{x^2 - 1}: f′′f'' changes sign at x=1x = 1, a vertical asymptote.

Same form, other result: At x=0x = 0 the same function does have an inflection point, because 00 is in the domain.

What to do: Check the domain: the concavity changes across an asymptote, but there is no point (a,f(a))(a, f(a)) to mark.

f′(a)f'(a) undefined aa in the domain critical number

Example: x2/3(x−5)x^{2/3}(x - 5) at 00: f′→+∞f' \to +\infty on the left, −∞-\infty on the right; a cusp and a local max f(0)=0f(0) = 0.

denominator =0= 0 the factor cancels hole

Example: x2−x−2x2−4\frac{x^2 - x - 2}{x^2 - 4} at x=2x = 2: a hole at (2,34)\left(2, \frac{3}{4}\right), no asymptote.

The middle column is the one students skip. Each red line is a feature of a careless sketch that the true graph does not have.

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. An interval of increase or decrease written across an asymptote

1 mark on the table, and every comparison drawn from it

What not to write

“f(x)=xx2−1f(x) = \frac{x}{x^2 - 1} has f′(x)=−x2+1(x2−1)2<0f'(x) = -\frac{x^2 + 1}{(x^2 - 1)^2} < 0, so ff is decreasing on its domain and f(−2)>f(2)f(-2) > f(2).”

What to write

“ff is decreasing on each of (−∞,−1)(-\infty, -1), (−1,1)(-1, 1) and (1,∞)(1, \infty).” Indeed f(−2)=−23<f(2)=23f(-2) = -\frac{2}{3} < f(2) = \frac{2}{3}.

Why: Increase and decrease are properties of an INTERVAL. The asymptotes cut the domain into three intervals, and the curve restarts from ±∞\pm\infty on each of them.

2. An inflection point placed on a vertical asymptote

1 to 2 marks, and points drawn on the asymptotes

What not to write

“f′′(x)=2x(x2+3)(x2−1)3f''(x) = \frac{2x(x^2 + 3)}{(x^2 - 1)^3} changes sign at −1-1, 00 and 11: three inflection points.”

What to write

“f′′f'' changes sign at −1-1, 00 and 11, but ±1\pm 1 are not in the domain: the only inflection point is (0,0)(0, 0).”

-4-3-2-11234-4-3-2-11234no point at x = 1
The concavity of xx2−1\frac{x}{x^2 - 1} changes at −1-1, 00 and 11, but only the origin is a point of the graph: there is nothing to mark on the dashed lines.

Why: An inflection point is a POINT (a,f(a))(a, f(a)) of the graph where the concavity changes. Where ff is undefined there is nothing to name, whatever f′′f'' does across it.

3. A vertical asymptote at every zero of the denominator

1 mark, and a branch drawn where none exists

What not to write

“x2−4=0x^2 - 4 = 0 at x=±2x = \pm 2, so x2−x−2x2−4\frac{x^2 - x - 2}{x^2 - 4} has two vertical asymptotes.”

What to write

“x2−x−2x2−4=(x−2)(x+1)(x−2)(x+2)=x+1x+2\frac{x^2 - x - 2}{x^2 - 4} = \frac{(x - 2)(x + 1)}{(x - 2)(x + 2)} = \frac{x + 1}{x + 2} for x≠2x \ne 2: a hole at (2,34)\left(2, \frac{3}{4}\right) and one asymptote, x=−2x = -2.”

Why: A vertical asymptote needs an INFINITE limit. At x=2x = 2 the limit is 34\frac{3}{4}, finite, so the graph simply has a missing point there. The figure of the first block shows both cases on one graph.

4. Writing the square root of x squared as x at minus infinity

2 marks, and the whole left half of the sketch

What not to write

“x+2x2+1=1+2/x1+1/x2→1\frac{x + 2}{\sqrt{x^2 + 1}} = \frac{1 + 2/x}{\sqrt{1 + 1/x^2}} \to 1 at both ends: one horizontal asymptote, y=1y = 1.”

What to write

“For x<0x < 0, x2+1=−x1+1/x2\sqrt{x^2 + 1} = -x\sqrt{1 + 1/x^2}, so the limit at −∞-\infty is −1-1: two horizontal asymptotes, y=1y = 1 on the right and y=−1y = -1 on the left.”

-10-8-6-4-2246810-2-1123y = 1 as x → +∞y = −1 as x → −∞crosses at x = −3/4max (1/2, √5)
x+2x2+1\frac{x + 2}{\sqrt{x^2 + 1}} settles on y=−1y = -1 on the left and on y=1y = 1 on the right, and crosses y=1y = 1 at x=−34x = -\frac{3}{4} before its maximum 5\sqrt 5.

Why: x2=∣x∣\sqrt{x^2} = |x|, which is −x-x for x<0x < 0. The two ends of a graph are two different limits, and must be written as two lines.

5. Refusing to let the curve cross its asymptote

1 mark, and a sketch that contradicts the maximum

What not to write

“A curve never crosses its asymptote, so left of its maximum the graph of x+2x2+1\frac{x + 2}{\sqrt{x^2 + 1}} stays below y=1y = 1.”

What to write

“f(x)=1  ⟺  x+2=x2+1  ⟺  x=−34f(x) = 1 \iff x + 2 = \sqrt{x^2 + 1} \iff x = -\frac{3}{4} (and −34+2>0-\frac{3}{4} + 2 > 0): the curve crosses y=1y = 1 once, then approaches it from above.”

Why: An asymptote describes the ENDS of the graph only. Nothing prevents a crossing at finite xx, and here the maximum 5>1\sqrt 5 > 1 forces one.

6. Forgetting the critical number where the derivative does not exist

1 to 2 marks, and a smooth curve where the graph turns vertical

What not to write

“f(x)=x1/3(x−4)f(x) = x^{1/3}(x - 4) has f′(x)=4(x−1)3x2/3f'(x) = \frac{4(x - 1)}{3x^{2/3}}, which vanishes only at x=1x = 1: one critical number.”

What to write

“f′(1)=0f'(1) = 0, and f′(0)f'(0) does not exist while f(0)=0f(0) = 0: two critical numbers. At 00, f′→−∞f' \to -\infty on both sides: a vertical tangent, no extremum. At 11, a local min f(1)=−3f(1) = -3.”

Why: A critical number is a point of the DOMAIN where f′=0f' = 0 OR f′f' does not exist. Forgetting the second kind loses every cusp and every vertical tangent of the chapter.

7. L'Hospital's rule on a form that is not indeterminate

the limit, and the whole left side of the sketch

What not to write

“lim⁡x→0+ln⁡xx=lim⁡x→0+1/x1=+∞\lim_{x\to 0^+} \frac{\ln x}{x} = \lim_{x\to 0^+} \frac{1/x}{1} = +\infty.”

What to write

“As x→0+x \to 0^+ the form is −∞0+\frac{-\infty}{0^+}, which is not indeterminate: ln⁡xx→−∞\frac{\ln x}{x} \to -\infty.”

Why: The rule needs 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}; outside those forms its conclusion is simply false. Name the form before every use, as the rule itself requires.

8. Taking a local maximum below a local minimum for an error

time, and often a correct answer crossed out

What not to write

“For x3x2−3\frac{x^3}{x^2 - 3} I find a local max −92-\frac{9}{2} and a local min 92\frac{9}{2}: a maximum below a minimum is impossible, so I must have a sign error.”

What to write

“The local max belongs to the branch left of x=−3x = -\sqrt 3 and the local min to the branch right of x=3x = \sqrt 3: a local extremum is compared with its neighbours only.”

Why: LOCAL means on a small interval around the point. Asymptotes separate the branches, and nothing relates the height of one branch to the height of another.

Which method to choose

What to look for, by the FORM of f

Look at the formula before computing: its form tells you where the graph will do something

  • If a rational function → factor and cancel; zeros of the reduced denominator give vertical asymptotes, cancelled zeros give holes; compare the degrees for a horizontal or slant asymptote

    Example: x3x2−3\frac{x^3}{x^2 - 3}: asymptotes x=±3x = \pm\sqrt 3 and y=xy = x, by x3=x(x2−3)+3xx^3 = x(x^2 - 3) + 3x

  • If the root of a quadratic, x2+c\sqrt{x^2 + c}, next to a degree one term → compute the two ends separately with x2=∣x∣\sqrt{x^2} = |x|; expect two different horizontal asymptotes

    Example: x+2x2+1\frac{x + 2}{\sqrt{x^2 + 1}}: y=1y = 1 on the right, y=−1y = -1 on the left

  • If a fractional power xp/qx^{p/q} with p<qp < q → f′f' is undefined at 00: a critical number; compare the signs of f′f' on both sides for a cusp or a vertical tangent

    Example: x2/3(x−5)x^{2/3}(x - 5): cusp at 00; x1/3(x−4)x^{1/3}(x - 4): vertical tangent at 00

  • If ln⁡x\ln x in the formula → one-sided domain; limit at 0+0^+ often not indeterminate; at ∞\infty, the logarithm loses against every power

    Example: ln⁡xx\frac{\ln x}{x}: −∞-\infty at 0+0^+, 00 at ∞\infty, max 1e\frac{1}{e} at x=ex = e

  • If exe^{x} or e−xe^{-x} times a power of xx → an asymptote y=0y = 0 on ONE side only; L'Hospital's rule on the other side

    Example: xe−xxe^{-x}: 00 at +∞+\infty, −∞-\infty at −∞-\infty, max 1e\frac{1}{e} at x=1x = 1

  • If sin⁡\sin and cos⁡\cos only → one period, symmetry, exact angles from double angle identities; no asymptote

    Example: 2cos⁡x+sin⁡2x2\cos x + \sin 2x on [0,2π][0, 2\pi]: max 332\frac{3\sqrt 3}{2} at π6\frac{\pi}{6}

A formula often belongs to two branches: exx\frac{e^x}{x} is both a quotient with a zero denominator and an exponential. Apply both, and write in the copy which feature comes from which branch.

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.

Writing up a complete curve sketch

When to use it: “Sketch the graph of ff, showing all asymptotes, local extrema and inflection points”, the long question of most finals

  1. 1 Domain on the first line, then intercepts and symmetry, each with its one line of computation.
  2. 2 Asymptotes: each one-sided limit written with its form and its sign, each end ±∞\pm\infty written separately.
  3. 3 f′f' in FACTORED form, its critical numbers (both kinds), and the sign of each factor on each interval of the domain.
  4. 4 f′′f'' in factored form and its sign, again only on the domain.
  5. 5 One table with the rows f′f', f′′f'' and ff, the values at every critical number and inflection point, and double bars at the excluded points.
  6. 6 The sketch, drawn from the table: asymptotes dashed, extrema and inflection points marked with their exact coordinates.

Concluding sentence

“ff is decreasing on (−3,3)(-\sqrt 3, \sqrt 3) with f′(0)=0f'(0) = 0; since f′f' does not change sign at 00, ff has no extremum there, and since f′′f'' changes sign at 00, which is in the domain, (0,0)(0, 0) is an inflection point with a horizontal tangent.”

The trap: Computing f′f' and f′′f'' in expanded form: the sign table then needs a second, harder computation that most students skip.

Marking: Typically 2 marks for the domain, intercepts and asymptotes with their one-sided limits, 3 for f prime and its table, 3 for f double prime and its table, 2 for a sketch consistent with both.

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 closed domain, vertical tangents at the ends, and zeros of f double prime to reject

Sketch the graph of f(x)=x4−x2f(x) = x\sqrt{4 - x^2}, showing its extrema, its inflection points and its behaviour at the ends of the domain.

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

Step 1

Domain: 4−x2≥04 - x^2 \ge 0, so [−2,2][-2, 2]. f(−x)=−f(x)f(-x) = -f(x): ff is odd. Zeros: x=0x = 0 and x=±2x = \pm 2. ff is continuous on a closed bounded interval: no asymptote at all.

Why

A closed domain rules out every asymptote at once, and makes the two endpoints lines of the table. Oddness will serve as a free check at the end.

Step 2

Product rule, and chain rule on the root (inner function 4−x24 - x^2): f′(x)=4−x2+x⋅−x4−x2=4−2x24−x2f'(x) = \sqrt{4 - x^2} + x \cdot \frac{-x}{\sqrt{4 - x^2}} = \frac{4 - 2x^2}{\sqrt{4 - x^2}} on (−2,2)(-2, 2). f′=0f' = 0 at x=±2x = \pm\sqrt 2, and f′→−∞f' \to -\infty as x→2−x \to 2^- and as x→−2+x \to -2^+.

Why

Putting everything over one denominator is what makes the sign readable. The infinite limits at the ends mean VERTICAL tangents at (±2,0)(\pm 2, 0), which the sketch must show.

Step 3

Sign of 4−2x24 - 2x^2: negative on (−2,−2)(-2, -\sqrt 2), positive on (−2,2)(-\sqrt 2, \sqrt 2), negative on (2,2)(\sqrt 2, 2). Local min f(−2)=−2⋅2=−2f(-\sqrt 2) = -\sqrt 2 \cdot \sqrt 2 = -2, local max f(2)=2f(\sqrt 2) = 2; they are absolute, the endpoints giving 00.

Why

On a closed interval, comparing with the endpoint values turns the local extrema into absolute ones for one extra line.

Step 4

f′′(x)=2x(x2−6)(4−x2)3/2f''(x) = \frac{2x(x^2 - 6)}{(4 - x^2)^{3/2}}. On (−2,2)(-2, 2), x2−6<0x^2 - 6 < 0, so f′′f'' has the sign of −x-x: concave up on (−2,0)(-2, 0), concave down on (0,2)(0, 2). The zeros ±6\pm\sqrt 6 of x2−6x^2 - 6 are outside the domain.

Why

This is where the domain decides: ±6≈±2.45\pm\sqrt 6 \approx \pm 2.45 are not in [−2,2][-2, 2], so they are NOT inflection points and must not appear in the table.

Step 5

Inflection point (0,0)(0, 0), with slope f′(0)=2f'(0) = 2. The curve starts at (−2,0)(-2, 0) with a vertical tangent, falls to (−2,−2)(-\sqrt 2, -2), rises through (0,0)(0, 0) to (2,2)(\sqrt 2, 2) and falls to (2,0)(2, 0), arriving vertically.

-2.5-2-1.5-1-0.50.511.522.5-2.5-2-1.5-1-0.50.511.522.5max (√2, 2)min (−√2, −2)inflection

Why

Every element of the drawing is a line of the table, and the half turn about the origin checks the whole picture: the minimum is the image of the maximum.

The conclusion, written out

“On [−2,2][-2, 2], ff has an absolute minimum −2-2 at −2-\sqrt 2, an absolute maximum 22 at 2\sqrt 2, a single inflection point (0,0)(0, 0), and vertical tangents at (−2,0)(-2, 0) and (2,0)(2, 0).”

The classic mistake on this problem: Listing x=±6x = \pm\sqrt 6 as inflection points because f′′f'' vanishes there, or drawing horizontal tangents at the endpoints because f=0f = 0 there.

Learn by heart

  • • Domain FIRST: every excluded point cuts every row of the table.
  • • No extremum and no inflection point at a point outside the domain.
  • • Cancel common factors: a cancelled factor gives a hole, a remaining zero of the denominator an asymptote.
  • • Limits at −∞-\infty and +∞+\infty separately: x2=∣x∣\sqrt{x^2} = |x|.
  • • A curve may cross its horizontal or slant asymptote, even infinitely often.
  • • Critical number: f′=0f' = 0 OR f′f' undefined, at a point of the domain. Extremum only if f′f' changes sign.
  • • f′f' infinite with opposite signs on the two sides: a cusp; with the same sign: a vertical tangent.

Frequently asked questions

What are the steps to sketch a curve in calculus?

Find the domain first, then the intercepts and any symmetry. Compute the asymptotes with one-sided limits and with the limits at both ends. Factor the first derivative and study its sign for increase, decrease and extrema, then factor the second derivative for concavity and inflection points. Put everything in one sign table and draw the graph from the table only.

Can a graph cross its horizontal asymptote?

Yes. A horizontal asymptote only describes what the function does as x goes to plus or minus infinity. At finite values of x the graph can cross the line once, several times or infinitely often, as sin x over x does. What is true is that far enough out, the graph stays as close to the line as you like.

Is there an inflection point at a vertical asymptote?

No. The concavity can change across a vertical asymptote, as it does for one over x at zero, but an inflection point is a point of the graph, and the function has no value there. Check that the point is in the domain before calling a change of concavity an inflection point.

How do I tell a hole from a vertical asymptote in a rational function?

Factor the numerator and the denominator and cancel the common factors. If the factor that vanishes cancels, the limit at that point is finite and the graph has a hole, drawn as an open circle. If a zero of the reduced denominator remains while the numerator is not zero there, the limit is infinite and the line is a vertical asymptote.

What is the difference between a cusp and a vertical tangent?

Both happen at a point of the domain where the derivative does not exist because it becomes infinite. If the derivative tends to plus infinity on one side and minus infinity on the other, the graph turns back on itself in a sharp point: a cusp, and an extremum. If it tends to the same infinity on both sides, the graph passes through with a vertical tangent and keeps going.

Practise it

Corrected exercises: Curve sketching, 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
Previous sheet L'Hospital's rule Next sheet Optimization problems

© Ahmed Squalli Houssaini. Revision sheet published at www.letuteurscientifique.ca/en/fiches/math140-curve-sketching. 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. Curve sketching is the long question of almost every MATH 140 final, and the marks go to the table as much as to the drawing.

Site by Studio Squalli