MATH 140 Calculus 1 • McGill University, Montreal

Corrected exercises: power, exponential, product and quotient rules (MATH 140)

This is the corrected exercise set for the first differentiation rules in MATH 140, Calculus 1, at McGill University: sections 3.1, 3.2 and 3.7 of Stewart, the power rule, the exponential exe^x, the product and quotient rules, higher derivatives, tangent and normal lines, and the motion of a particle on a line. The derivative is no longer computed as a limit: it is computed by rules, and the rules are where the marks go. Every number is exact and chosen to be done by hand, and each solution names the rule it applies and the two functions it applies it to.

The thread running through the whole set: every rule applies to a FORM, so the work happens before and after differentiating. Before, roots and fractions are rewritten as powers of xx, a quotient by a monomial is divided term by term, and e−xe^{-x} or e2xe^{2x} are rewritten with the laws of exponents, since the chain rule comes later. After, the point is substituted only once f′f' is a function, so that a tangent line has a number for its slope, and a tangent through a point off the curve starts with an unknown point of tangency.

The traps named in the solutions: differentiating a product or a quotient factor by factor, applying the power rule to exe^x or to a constant such as π3\pi^3, differentiating the denominator of 13x2\frac{1}{3x^2}, swapping the terms of the quotient rule, leaving f′(x)f'(x) unevaluated in a tangent line, giving the normal the slope −f′(a)-f'(a) or no normal at all when f′(a)=0f'(a) = 0, using the slope at the abscissa of a point that is not on the curve, deciding speeding up from the sign of aa alone, and taking the displacement for the distance travelled.

10 corrected exercises • 100 points • 150 minutes

Revision sheet for this chapter → Every MATH 140 chapter →

Self-checking set Type your answers under each 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.

Course recap

  • • Power rule: (xn)′=nxn−1(x^n)' = nx^{n-1} for every real nn, after rewriting xpq=xp/q\sqrt[q]{x^p} = x^{p/q} and 1xn=x−n\frac{1}{x^n} = x^{-n}. Constants: (c)′=0(c)' = 0. Exponential: (ex)′=ex(e^x)' = e^x.
  • • Sum and constant multiple: (f+g)′=f′+g′(f + g)' = f' + g', (cf)′=cf′(cf)' = cf'.
  • • Product: (fg)′=f′g+fg′(fg)' = f'g + fg'. Quotient: (fg)′=f′g−fg′g2\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}. Reciprocal: (cg)′=−cg′g2\left(\frac{c}{g}\right)' = -\frac{cg'}{g^2}.
  • • Higher derivatives: f′′=(f′)′f'' = (f')'; (fg)′′=f′′g+2f′g′+fg′′(fg)'' = f''g + 2f'g' + fg''.
  • • Tangent at aa: y=f(a)+f′(a)(x−a)y = f(a) + f'(a)(x - a). Normal: slope −1f′(a)-\frac{1}{f'(a)} if f′(a)≠0f'(a) \ne 0, the line x=ax = a if f′(a)=0f'(a) = 0.
  • • Motion: v=s′v = s', a=v′=s′′a = v' = s''; speeding up when vv and aa have the same sign; distance split at the zeros of vv.

Part A: the basics (/50)

Exercise 1: The power rule, after rewriting roots and fractions as powers

The power rule ddxxn=nxn−1\frac{d}{dx}x^n = nx^{n-1} holds for EVERY real exponent nn: positive, negative, fractional, even irrational. But it applies to one form only, a power of xx with a constant exponent. A root, a fraction with xx in its denominator, or a quotient by a power of xx must first be REWRITTEN as a sum of terms cxncx^n; only then is the rule quoted, term by term, with the sum and constant multiple rules.

Two more facts complete the toolkit: the derivative of a constant is 00, whatever the constant looks like (π3\pi^3, e2e^2, 7\sqrt 7), and ddxex=ex\frac{d}{dx}e^x = e^x.

  • a) Differentiate f(x)=4x5−3x2+7x−π3f(x) = 4x^5 - 3x^2 + 7x - \pi^3.
  • b) Differentiate g(x)=6x3−8x+5x2g(x) = 6\sqrt[3]{x} - \frac{8}{\sqrt x} + \frac{5}{x^2}, and give the answer without negative or fractional exponents.
  • c) Let h(x)=x2−3x+5xh(x) = \frac{x^2 - 3x + 5}{\sqrt x} for x>0x > 0. Find h′(x)h'(x) as a single fraction, then h′(4)h'(4).
  • d) Differentiate m(x)=xe+ex+eem(x) = x^e + e^x + e^e and p(x)=(2x+1)2p(x) = (2\sqrt x + 1)^2, the second without the chain rule.
  • e) A student writes: ddx(13x2)=16x\frac{d}{dx}\left(\frac{1}{3x^2}\right) = \frac{1}{6x}. Name the two errors and give the correct derivative.

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) f′(x)=20x4−6x+7f'(x) = 20x^4 - 6x + 7
  • b) g′(x)=2x23+4xx−10x3g'(x) = \frac{2}{\sqrt[3]{x^2}} + \frac{4}{x\sqrt x} - \frac{10}{x^3}
  • c) h′(x)=3x2−3x−52xxh'(x) = \frac{3x^2 - 3x - 5}{2x\sqrt x}, h′(4)=3116h'(4) = \frac{31}{16}
  • d) m′(x)=exe−1+exm'(x) = ex^{e-1} + e^x; p′(x)=4+2xp'(x) = 4 + \frac{2}{\sqrt x}
  • e) The denominator was differentiated and the fraction kept: ddx(13x−2)=−23x3\frac{d}{dx}\left(\frac{1}{3}x^{-2}\right) = -\frac{2}{3x^3}

a) By the sum and constant multiple rules, each term is differentiated separately: (4x5)′=4⋅5x4=20x4(4x^5)' = 4 \cdot 5x^4 = 20x^4, (−3x2)′=−6x(-3x^2)' = -6x, (7x)′=7(7x)' = 7, and (π3)′=0(\pi^3)' = 0 because π3≈31\pi^3 \approx 31 is a NUMBER, not a power of xx. So f′(x)=20x4−6x+7f'(x) = 20x^4 - 6x + 7. Writing 3π23\pi^2 for the derivative of π3\pi^3 applies the power rule to a constant: the variable is xx, and π3\pi^3 does not contain it. That single slip costs a mark on every paper where it appears.

b) Rewrite first: x3=x1/3\sqrt[3]{x} = x^{1/3}, 1x=x−1/2\frac{1}{\sqrt x} = x^{-1/2} and 1x2=x−2\frac{1}{x^2} = x^{-2}, so g(x)=6x1/3−8x−1/2+5x−2g(x) = 6x^{1/3} - 8x^{-1/2} + 5x^{-2}. The power rule then gives g′(x)=6⋅13x−2/3−8⋅(−12)x−3/2+5⋅(−2)x−3=2x−2/3+4x−3/2−10x−3g'(x) = 6 \cdot \frac{1}{3}x^{-2/3} - 8 \cdot \left(-\frac{1}{2}\right)x^{-3/2} + 5 \cdot (-2)x^{-3} = 2x^{-2/3} + 4x^{-3/2} - 10x^{-3}. Back to radicals: g′(x)=2x23+4xx−10x3g'(x) = \frac{2}{\sqrt[3]{x^2}} + \frac{4}{x\sqrt x} - \frac{10}{x^3}, since x3/2=xxx^{3/2} = x\sqrt x. The trap is the sign of the middle term: the exponent −12-\frac{1}{2} multiplies −8-8, and two minus signs make +4+4. Subtracting 11 from a negative exponent also moves it AWAY from zero: −12−1=−32-\frac{1}{2} - 1 = -\frac{3}{2}, not −12+1-\frac{1}{2} + 1.

c) The denominator is a single power of xx, so divide term by term instead of using the quotient rule: h(x)=x2x1/2−3xx1/2+5x1/2=x3/2−3x1/2+5x−1/2h(x) = \frac{x^2}{x^{1/2}} - \frac{3x}{x^{1/2}} + \frac{5}{x^{1/2}} = x^{3/2} - 3x^{1/2} + 5x^{-1/2}. Then h′(x)=32x1/2−32x−1/2−52x−3/2h'(x) = \frac{3}{2}x^{1/2} - \frac{3}{2}x^{-1/2} - \frac{5}{2}x^{-3/2}. Over the common denominator 2x3/2=2xx2x^{3/2} = 2x\sqrt x: 32x1/2=3x22x3/2\frac{3}{2}x^{1/2} = \frac{3x^2}{2x^{3/2}} and 32x−1/2=3x2x3/2\frac{3}{2}x^{-1/2} = \frac{3x}{2x^{3/2}}, so h′(x)=3x2−3x−52xxh'(x) = \frac{3x^2 - 3x - 5}{2x\sqrt x}. At x=4x = 4: 4=2\sqrt 4 = 2, so h′(4)=48−12−52⋅4⋅2=3116h'(4) = \frac{48 - 12 - 5}{2 \cdot 4 \cdot 2} = \frac{31}{16}. The quotient rule would give the same answer after twice the algebra; rewriting is the method a marker expects when the denominator is a monomial.

d) The three terms of mm look alike and are three different objects. xex^e is a POWER of xx with the constant exponent ee: (xe)′=exe−1(x^e)' = ex^{e-1}. exe^x is the exponential, constant base and variable exponent: (ex)′=ex(e^x)' = e^x, and the power rule does not apply to it. eee^e is a constant: its derivative is 00. So m′(x)=exe−1+exm'(x) = ex^{e-1} + e^x. For pp, expand the square, which removes any composition: p(x)=4x+4x+1=4x+4x1/2+1p(x) = 4x + 4\sqrt x + 1 = 4x + 4x^{1/2} + 1, so p′(x)=4+2x−1/2=4+2xp'(x) = 4 + 2x^{-1/2} = 4 + \frac{2}{\sqrt x}. Check at x=1x = 1: pp goes from p(1)=9p(1) = 9 with slope 66, and indeed 4+2=64 + 2 = 6.

e) First error: the student differentiated the denominator 3x23x^2 into 6x6x and kept the fraction bar, as if (1u)′=1u′\left(\frac{1}{u}\right)' = \frac{1}{u'}, a rule that does not exist. Second error, as a consequence: the sign is lost, although 13x2\frac{1}{3x^2} is decreasing for x>0x > 0, so its derivative there must be NEGATIVE. The correct route rewrites first: 13x2=13x−2\frac{1}{3x^2} = \frac{1}{3}x^{-2}, so the derivative is 13⋅(−2)x−3=−23x3\frac{1}{3} \cdot (-2)x^{-3} = -\frac{2}{3x^3}. At x=1x = 1 the student's answer is 16\frac{1}{6} and the true slope is −23-\frac{2}{3}: one test value is enough to expose the rule.

Tick the exercises you have done or want to review: a free account, no password, keeps your ticks from one visit to the next and tells you which chapter to tackle next. Create your space, an email is enough.

Exercise 2: Product and quotient rules: never factor by factor

The derivative of a product is NOT the product of the derivatives, and the derivative of a quotient is not the quotient of the derivatives. The rules are (fg)′=f′g+fg′(fg)' = f'g + fg' and (fg)′=f′g−fg′g2\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}. In the quotient rule the ORDER of the numerator matters, because of the minus sign, and the g2g^2 of the denominator is left as it is: expanding it only produces a longer expression that no longer factors.

In every part, name the rule you are applying and the two functions ff and gg before you write the derivative.

  • a) Differentiate F(x)=(x2+1)(x3−2x)F(x) = (x^2 + 1)(x^3 - 2x) with the product rule, then check your answer by expanding FF first.
  • b) Differentiate G(x)=3x−1x2+2G(x) = \frac{3x - 1}{x^2 + 2} and compute G′(0)G'(0).
  • c) Differentiate H(x)=x2exH(x) = x^2e^x, factor the result, and find the values of xx where H′(x)=0H'(x) = 0.
  • d) Differentiate K(x)=1+ex1−exK(x) = \frac{1 + e^x}{1 - e^x} for x≠0x \ne 0, and simplify.
  • e) A student writes (x2ex)′=2xex(x^2e^x)' = 2xe^x and (xx+1)′=11=1\left(\frac{x}{x+1}\right)' = \frac{1}{1} = 1. Refute both answers with a single value of xx each.

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) F′(x)=5x4−3x2−2F'(x) = 5x^4 - 3x^2 - 2
  • b) G′(x)=−3x2+2x+6(x2+2)2G'(x) = \frac{-3x^2 + 2x + 6}{(x^2 + 2)^2}, G′(0)=32G'(0) = \frac{3}{2}
  • c) H′(x)=x(x+2)exH'(x) = x(x + 2)e^x, zero at x=0x = 0 and x=−2x = -2
  • d) K′(x)=2ex(1−ex)2K'(x) = \frac{2e^x}{(1 - e^x)^2}
  • e) At x=1x = 1: 3e≠2e3e \ne 2e; at x=1x = 1: 14≠1\frac{1}{4} \ne 1

a) Product rule with f(x)=x2+1f(x) = x^2 + 1, f′(x)=2xf'(x) = 2x, and g(x)=x3−2xg(x) = x^3 - 2x, g′(x)=3x2−2g'(x) = 3x^2 - 2: F′(x)=2x(x3−2x)+(x2+1)(3x2−2)=2x4−4x2+3x4−2x2+3x2−2=5x4−3x2−2F'(x) = 2x(x^3 - 2x) + (x^2 + 1)(3x^2 - 2) = 2x^4 - 4x^2 + 3x^4 - 2x^2 + 3x^2 - 2 = 5x^4 - 3x^2 - 2. Check by expanding first: F(x)=x5−2x3+x3−2x=x5−x3−2xF(x) = x^5 - 2x^3 + x^3 - 2x = x^5 - x^3 - 2x, so F′(x)=5x4−3x2−2F'(x) = 5x^4 - 3x^2 - 2, the same. On a product of two polynomials both routes are legal; expanding is the natural CHECK of the product rule, and the factor-by-factor answer 2x(3x2−2)2x(3x^2 - 2) fails it at once, being of degree 33 instead of 44.

b) Quotient rule with f(x)=3x−1f(x) = 3x - 1, f′(x)=3f'(x) = 3, and g(x)=x2+2g(x) = x^2 + 2, g′(x)=2xg'(x) = 2x: G′(x)=3(x2+2)−(3x−1)(2x)(x2+2)2=3x2+6−6x2+2x(x2+2)2=−3x2+2x+6(x2+2)2G'(x) = \frac{3(x^2 + 2) - (3x - 1)(2x)}{(x^2 + 2)^2} = \frac{3x^2 + 6 - 6x^2 + 2x}{(x^2 + 2)^2} = \frac{-3x^2 + 2x + 6}{(x^2 + 2)^2}. Then G′(0)=64=32G'(0) = \frac{6}{4} = \frac{3}{2}. The parentheses around (3x−1)(2x)(3x - 1)(2x) carry the minus sign to BOTH terms: dropping them gives −6x2−2x-6x^2 - 2x and a wrong numerator. Writing fg′−f′gfg' - f'g in the numerator flips the sign of the whole answer; the order follows the rule's reading, derivative of the TOP first.

c) Product rule with f(x)=x2f(x) = x^2 and g(x)=exg(x) = e^x, whose derivative is exe^x itself: H′(x)=2x⋅ex+x2⋅ex=(x2+2x)ex=x(x+2)exH'(x) = 2x \cdot e^x + x^2 \cdot e^x = (x^2 + 2x)e^x = x(x + 2)e^x. Since ex>0e^x > 0 for every xx, the product is zero exactly when x(x+2)=0x(x + 2) = 0: x=0x = 0 or x=−2x = -2. Factoring exe^x out is not cosmetic: it is the step that turns an equation with an exponential into a polynomial equation, and the fact ex≠0e^x \ne 0 must be SAID to justify dividing by it.

d) Quotient rule with f(x)=1+exf(x) = 1 + e^x, f′(x)=exf'(x) = e^x, and g(x)=1−exg(x) = 1 - e^x, g′(x)=−exg'(x) = -e^x: K′(x)=ex(1−ex)−(1+ex)(−ex)(1−ex)2K'(x) = \frac{e^x(1 - e^x) - (1 + e^x)(-e^x)}{(1 - e^x)^2}. The numerator is ex−exex+ex+exex=2exe^x - e^xe^x + e^x + e^xe^x = 2e^x, the two products exexe^xe^x cancelling. So K′(x)=2ex(1−ex)2K'(x) = \frac{2e^x}{(1 - e^x)^2}, positive wherever it is defined. The double minus in −(1+ex)(−ex)-(1 + e^x)(-e^x) is where most papers lose the answer: write the product fg′fg' in full, with its own sign, before expanding.

e) At x=1x = 1, the true derivative from c) is H′(1)=1⋅3⋅e=3eH'(1) = 1 \cdot 3 \cdot e = 3e, while 2xex2xe^x gives 2e2e: the student multiplied the derivatives of the two factors and forgot the term x2exx^2e^x. For the quotient, the true derivative is 1⋅(x+1)−x⋅1(x+1)2=1(x+1)2\frac{1 \cdot (x + 1) - x \cdot 1}{(x + 1)^2} = \frac{1}{(x + 1)^2}, which equals 14\frac{1}{4} at x=1x = 1, not 11. Choosing the test value matters: at x=0x = 0 both wrong answers happen to agree with the right ones (00 and 11), so a single lucky value proves nothing. A test value can refute a rule, never confirm it.

Exercise 3: Choosing the form: rewrite first, or use the quotient rule?

The quotient rule always works on a quotient, but it is often the longest road. Three shapes deserve a shortcut: a denominator that is a single power of xx (divide term by term), a CONSTANT numerator (the reciprocal rule (cg)′=−cg′g2\left(\frac{c}{g}\right)' = -\frac{cg'}{g^2}, a special case of the quotient rule), and a quotient that simplifies, provided the domain is kept. The laws of exponents play the same role for exe^x: without the chain rule, which comes two chapters later, ex+2e^{x+2}, e−xe^{-x} and e2xe^{2x} can only be differentiated after being rewritten.

The figure shows the graph of g(x)=x2−9x−3g(x) = \frac{x^2 - 9}{x - 3}.

1234567246810y = (x² - 9)/(x - 3)x
  • a) Differentiate f(x)=x3−4x+1x2f(x) = \frac{x^3 - 4x + 1}{x^2} in two ways, by rewriting and by the quotient rule, and check that the answers agree.
  • b) Differentiate q(x)=5x2+4q(x) = \frac{5}{x^2 + 4} and compute q′(1)q'(1). Why is (5)′(x2+4)′=0\frac{(5)'}{(x^2 + 4)'} = 0 absurd?
  • c) Find g′(x)g'(x) for the function of the figure. What happens at x=3x = 3?
  • d) Without the chain rule, differentiate ex+2e^{x+2}, e−xe^{-x} and e2xe^{2x}. A student claims (e−x)′=e−x(e^{-x})' = e^{-x}, since exe^x is its own derivative: refute it by looking at the graph of e−xe^{-x}.
  • e) Differentiate w(x)=x2+1x2−1w(x) = \frac{x^2 + 1}{x^2 - 1} by first writing it as 1+cx2−11 + \frac{c}{x^2 - 1}, and check with the quotient rule.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) f′(x)=1+4x2−2x3=x3+4x−2x3f'(x) = 1 + \frac{4}{x^2} - \frac{2}{x^3} = \frac{x^3 + 4x - 2}{x^3}
  • b) q′(x)=−10x(x2+4)2q'(x) = -\frac{10x}{(x^2 + 4)^2}, q′(1)=−25q'(1) = -\frac{2}{5}; qq is not constant, so its derivative is not 00
  • c) g′(x)=1g'(x) = 1 for x≠3x \ne 3; g′(3)g'(3) does not exist, gg is not defined at 33
  • d) (ex+2)′=ex+2(e^{x+2})' = e^{x+2}, (e−x)′=−e−x(e^{-x})' = -e^{-x}, (e2x)′=2e2x(e^{2x})' = 2e^{2x}; e−xe^{-x} decreases, so its slope is negative
  • e) w(x)=1+2x2−1w(x) = 1 + \frac{2}{x^2 - 1}, w′(x)=−4x(x2−1)2w'(x) = -\frac{4x}{(x^2 - 1)^2}

a) Rewriting: f(x)=x3x2−4xx2+1x2=x−4x−1+x−2f(x) = \frac{x^3}{x^2} - \frac{4x}{x^2} + \frac{1}{x^2} = x - 4x^{-1} + x^{-2}, so f′(x)=1+4x−2−2x−3=1+4x2−2x3f'(x) = 1 + 4x^{-2} - 2x^{-3} = 1 + \frac{4}{x^2} - \frac{2}{x^3}. Quotient rule, with (x3−4x+1)′=3x2−4(x^3 - 4x + 1)' = 3x^2 - 4 and (x2)′=2x(x^2)' = 2x: f′(x)=(3x2−4)x2−(x3−4x+1)(2x)x4=3x4−4x2−2x4+8x2−2xx4=x4+4x2−2xx4=x3+4x−2x3f'(x) = \frac{(3x^2 - 4)x^2 - (x^3 - 4x + 1)(2x)}{x^4} = \frac{3x^4 - 4x^2 - 2x^4 + 8x^2 - 2x}{x^4} = \frac{x^4 + 4x^2 - 2x}{x^4} = \frac{x^3 + 4x - 2}{x^3} after dividing by xx. Over the denominator x3x^3, the first answer is also x3+4x−2x3\frac{x^3 + 4x - 2}{x^3}: they agree. The rewriting took one line, the quotient rule four, with a denominator x4x^4 to simplify at the end.

b) Reciprocal rule with c=5c = 5 and g(x)=x2+4g(x) = x^2 + 4: q′(x)=−5⋅2x(x2+4)2=−10x(x2+4)2q'(x) = -\frac{5 \cdot 2x}{(x^2 + 4)^2} = -\frac{10x}{(x^2 + 4)^2}, and q′(1)=−1025=−25q'(1) = -\frac{10}{25} = -\frac{2}{5}. The quotient rule gives the same, since the f′gf'g term vanishes: 0⋅(x2+4)−5⋅2x(x2+4)2\frac{0 \cdot (x^2 + 4) - 5 \cdot 2x}{(x^2 + 4)^2}. The answer 02x=0\frac{0}{2x} = 0 would mean that qq has a horizontal tangent everywhere, so that qq is constant; yet q(0)=54q(0) = \frac{5}{4} and q(1)=1q(1) = 1. A constant NUMERATOR does not make the quotient constant.

c) For x≠3x \ne 3, x2−9=(x−3)(x+3)x^2 - 9 = (x - 3)(x + 3) and the factor x−3x - 3 cancels: g(x)=x+3g(x) = x + 3, so g′(x)=1g'(x) = 1. This is exactly the figure, a line of slope 11. But gg is not defined at x=3x = 3, which the open circle at (3,6)(3, 6) shows, so g′(3)g'(3) does not exist: a derivative at a point needs the function AT that point. Check with the quotient rule: 2x(x−3)−(x2−9)(x−3)2=x2−6x+9(x−3)2=1\frac{2x(x - 3) - (x^2 - 9)}{(x - 3)^2} = \frac{x^2 - 6x + 9}{(x - 3)^2} = 1 for x≠3x \ne 3. Simplifying is allowed and fast, as long as the answer keeps the condition x≠3x \ne 3 that the simplification hides.

d) By the laws of exponents, ex+2=e2exe^{x+2} = e^2e^x, a constant times exe^x: its derivative is e2ex=ex+2e^2e^x = e^{x+2}. Next, e−x=1exe^{-x} = \frac{1}{e^x}, so by the reciprocal rule (e−x)′=−ex(ex)2=−1ex=−e−x(e^{-x})' = -\frac{e^x}{(e^x)^2} = -\frac{1}{e^x} = -e^{-x}. Finally e2x=exexe^{2x} = e^xe^x, and the product rule gives exex+exex=2e2xe^xe^x + e^xe^x = 2e^{2x}. The student's claim is refuted by one look at the graph of e−xe^{-x}: it DECREASES on the whole real line, so its tangent lines all have negative slopes, and a derivative equal to e−x>0e^{-x} > 0 is impossible. The rule (ex)′=ex(e^x)' = e^x is about the exponent xx exactly; any other exponent must be rewritten first here, or handled by the chain rule later.

e) Divide first: x2+1=(x2−1)+2x^2 + 1 = (x^2 - 1) + 2, so w(x)=1+2x2−1w(x) = 1 + \frac{2}{x^2 - 1}, for x≠±1x \ne \pm 1. The constant 11 has derivative 00 and the reciprocal rule gives w′(x)=−2⋅2x(x2−1)2=−4x(x2−1)2w'(x) = -\frac{2 \cdot 2x}{(x^2 - 1)^2} = -\frac{4x}{(x^2 - 1)^2}. Check with the quotient rule: 2x(x2−1)−(x2+1)(2x)(x2−1)2=2x3−2x−2x3−2x(x2−1)2=−4x(x2−1)2\frac{2x(x^2 - 1) - (x^2 + 1)(2x)}{(x^2 - 1)^2} = \frac{2x^3 - 2x - 2x^3 - 2x}{(x^2 - 1)^2} = \frac{-4x}{(x^2 - 1)^2}. Same answer. When numerator and denominator have the same degree, one division turns the quotient into a constant plus a simpler fraction.

Exercise 4: Tangent and normal lines, and where the tangent is horizontal

The tangent line to y=f(x)y = f(x) at x=ax = a is y=f(a)+f′(a)(x−a)y = f(a) + f'(a)(x - a): a line, so its slope f′(a)f'(a) is a NUMBER, obtained by differentiating first and substituting aa afterwards. The normal line at the same point is perpendicular to the tangent: when f′(a)≠0f'(a) \ne 0 its slope is −1f′(a)-\frac{1}{f'(a)}, and when f′(a)=0f'(a) = 0 the tangent is horizontal and the normal is the vertical line x=ax = a.

The figure shows the graph of f(x)=x3−3x2−9x+5f(x) = x^3 - 3x^2 - 9x + 5 on [−3,5][-3, 5].

-3-2-112345-25-20-15-10-551015y = x³ - 3x² - 9x + 5
  • a) Find f′(x)f'(x), then the equation of the tangent line at the point of abscissa 11, in the form y=mx+by = mx + b.
  • b) Find the equation of the normal line at the same point.
  • c) Find the points of the curve where the tangent is horizontal, and give the normal line at each of them.
  • d) Find the points where the tangent is parallel to the line y=15x+2y = 15x + 2.
  • e) Write f′(x)f'(x) in the form 3(x−1)2−k3(x - 1)^2 - k. Deduce that no tangent to the curve has slope −13-13, and find the smallest slope of a tangent.

Type your answers, the page tells you right or wrong 0/14

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) f′(x)=3x2−6x−9f'(x) = 3x^2 - 6x - 9; tangent y=−12x+6y = -12x + 6
  • b) Normal y=112x−7312y = \frac{1}{12}x - \frac{73}{12}
  • c) (−1,10)(-1, 10) and (3,−22)(3, -22); normals x=−1x = -1 and x=3x = 3
  • d) (−2,3)(-2, 3) and (4,−15)(4, -15)
  • e) f′(x)=3(x−1)2−12≥−12f'(x) = 3(x - 1)^2 - 12 \ge -12: no slope −13-13; smallest slope −12-12, at x=1x = 1

a) By the power, sum and constant multiple rules, f′(x)=3x2−6x−9f'(x) = 3x^2 - 6x - 9. At a=1a = 1: f(1)=1−3−9+5=−6f(1) = 1 - 3 - 9 + 5 = -6 and f′(1)=3−6−9=−12f'(1) = 3 - 6 - 9 = -12. The tangent is y=−6−12(x−1)=−12x+6y = -6 - 12(x - 1) = -12x + 6. Check: at x=1x = 1 the line gives −12+6=−6=f(1)-12 + 6 = -6 = f(1), so it does pass through the point. On the figure the curve is indeed going down steeply at x=1x = 1. The form y=−6+(3x2−6x−9)(x−1)y = -6 + (3x^2 - 6x - 9)(x - 1), with f′(x)f'(x) left unevaluated, is a CUBIC, not a line, and earns no mark: substitute aa into f′f' before writing the equation.

b) The tangent has slope −12≠0-12 \ne 0, so the normal has slope −1−12=112-\frac{1}{-12} = \frac{1}{12} and passes through (1,−6)(1, -6): y=−6+112(x−1)=112x−7312y = -6 + \frac{1}{12}(x - 1) = \frac{1}{12}x - \frac{73}{12}. The check is the product of the slopes: (−12)⋅112=−1(-12) \cdot \frac{1}{12} = -1, the condition for two non-vertical lines to be perpendicular. Answering with slope 1212 (the opposite, forgetting the reciprocal) or −112-\frac{1}{12} (the reciprocal, forgetting the sign) are the two classic errors, and each costs the question.

c) A horizontal tangent means slope 00: 3x2−6x−9=3(x2−2x−3)=3(x−3)(x+1)=03x^2 - 6x - 9 = 3(x^2 - 2x - 3) = 3(x - 3)(x + 1) = 0, so x=−1x = -1 or x=3x = 3. Then f(−1)=−1−3+9+5=10f(-1) = -1 - 3 + 9 + 5 = 10 and f(3)=27−27−27+5=−22f(3) = 27 - 27 - 27 + 5 = -22: the points are (−1,10)(-1, 10) and (3,−22)(3, -22), the top of the hump and the bottom of the valley on the figure. At each of them the tangent is horizontal, y=10y = 10 and y=−22y = -22, and the normal is VERTICAL: x=−1x = -1 and x=3x = 3. The formula −1f′(a)-\frac{1}{f'(a)} breaks down here, and writing no normal exists is wrong: a vertical line is a line, it simply has no slope.

d) Parallel lines have equal slopes, so solve f′(x)=15f'(x) = 15: 3x2−6x−9=153x^2 - 6x - 9 = 15, 3x2−6x−24=03x^2 - 6x - 24 = 0, x2−2x−8=0x^2 - 2x - 8 = 0, (x−4)(x+2)=0(x - 4)(x + 2) = 0. So x=4x = 4 or x=−2x = -2, with f(4)=64−48−36+5=−15f(4) = 64 - 48 - 36 + 5 = -15 and f(−2)=−8−12+18+5=3f(-2) = -8 - 12 + 18 + 5 = 3. The points are (4,−15)(4, -15) and (−2,3)(-2, 3). The question asks for POINTS, so both coordinates are expected; stopping at x=4x = 4 and x=−2x = -2 loses part of the marks.

e) Complete the square: 3x2−6x−9=3(x2−2x+1)−3−9=3(x−1)2−123x^2 - 6x - 9 = 3(x^2 - 2x + 1) - 3 - 9 = 3(x - 1)^2 - 12. Since (x−1)2≥0(x - 1)^2 \ge 0, every slope satisfies f′(x)≥−12f'(x) \ge -12, with equality only at x=1x = 1. The equation f′(x)=−13f'(x) = -13 would need 3(x−1)2=−13(x - 1)^2 = -1, impossible: no tangent has slope −13-13. The smallest slope of a tangent is −12-12, reached at x=1x = 1, which is why the tangent of a) looked like the steepest descent on the figure. Every question about the slopes of a curve is a question about the FUNCTION f′f', here a parabola that opens upward.

Exercise 5: Tangent lines through a point that is not on the curve

When the point PP is ON the curve, its abscissa is the point of tangency and the tangent line is immediate. When PP is NOT on the curve, the point of tangency is unknown: call its abscissa aa, write the tangent at aa with aa as a letter, and require that this line passes through PP. That condition is an equation in aa, and each of its solutions gives one tangent.

The figure shows the parabola y=x2y = x^2 and the point P(1,−3)P(1, -3), which lies below it.

-3-2-11234-4-224681012P(1, -3)y = x²
  • a) Show that the tangent to y=x2y = x^2 at the point of abscissa aa has equation y=2ax−a2y = 2ax - a^2.
  • b) Find the equations of all the tangents to y=x2y = x^2 that pass through P(1,−3)P(1, -3), and their points of tangency.
  • c) Show that no tangent to y=x2y = x^2 passes through Q(0,1)Q(0, 1). More generally, how many tangents pass through a point (p,q)(p, q), depending on qq and p2p^2?
  • d) Find all the tangents to y=x3y = x^3 that pass through R(2,0)R(2, 0).
  • e) A student answers b) with the line through PP of slope f′(1)=2f'(1) = 2, that is y=2x−5y = 2x - 5. Show that this line does not even touch the parabola.

Type your answers, the page tells you right or wrong 0/10

b)
c)
d)
e)
Show the solution

Answers

  • a) y=a2+2a(x−a)=2ax−a2y = a^2 + 2a(x - a) = 2ax - a^2
  • b) y=6x−9y = 6x - 9, tangent at (3,9)(3, 9); y=−2x−1y = -2x - 1, tangent at (−1,1)(-1, 1)
  • c) a2=−1a^2 = -1 has no solution; two tangents if q<p2q < p^2, one if q=p2q = p^2, none if q>p2q > p^2
  • d) y=0y = 0 (at the origin) and y=27x−54y = 27x - 54 (at (3,27)(3, 27))
  • e) x2=2x−5x^2 = 2x - 5 gives x2−2x+5=0x^2 - 2x + 5 = 0, discriminant −16<0-16 < 0: no common point

a) With f(x)=x2f(x) = x^2, f′(x)=2xf'(x) = 2x, so at the point (a,a2)(a, a^2) the slope is 2a2a and the tangent is y=a2+2a(x−a)=2ax−2a2+a2=2ax−a2y = a^2 + 2a(x - a) = 2ax - 2a^2 + a^2 = 2ax - a^2. Here aa is kept as a LETTER on purpose: this equation describes every tangent to the parabola at once, and the next questions choose aa.

b) The tangent at aa passes through P(1,−3)P(1, -3) when −3=2a⋅1−a2-3 = 2a \cdot 1 - a^2, that is a2−2a−3=0a^2 - 2a - 3 = 0, (a−3)(a+1)=0(a - 3)(a + 1) = 0. For a=3a = 3: y=6x−9y = 6x - 9, tangent at (3,9)(3, 9). For a=−1a = -1: y=−2x−1y = -2x - 1, tangent at (−1,1)(-1, 1). Check that both lines pass through PP: 6−9=−36 - 9 = -3 and −2−1=−3-2 - 1 = -3. The figure of the solution shows the two lines leaving PP and grazing the parabola on either side. Two tangents is the normal situation for a point below a parabola that opens upward.

c) Through Q(0,1)Q(0, 1) the condition is 1=2a⋅0−a21 = 2a \cdot 0 - a^2, that is a2=−1a^2 = -1: no real solution, so no tangent passes through QQ. In general the tangent at aa passes through (p,q)(p, q) when q=2ap−a2q = 2ap - a^2, that is a2−2pa+q=0a^2 - 2pa + q = 0, a quadratic in aa with discriminant 4p2−4q=4(p2−q)4p^2 - 4q = 4(p^2 - q). If q<p2q < p^2, the point is below the parabola and there are two tangents; if q=p2q = p^2, it is on the parabola and there is one; if q>p2q > p^2, it is inside the cup and there are none. PP has −3<1-3 < 1, QQ has 1>01 > 0: the discriminant sorts the points, and the figure makes it believable, since from inside the cup every line meets the parabola twice.

d) For y=x3y = x^3, y′=3x2y' = 3x^2, and the tangent at aa is y=a3+3a2(x−a)=3a2x−2a3y = a^3 + 3a^2(x - a) = 3a^2x - 2a^3. Through R(2,0)R(2, 0): 0=6a2−2a3=2a2(3−a)0 = 6a^2 - 2a^3 = 2a^2(3 - a), so a=0a = 0 or a=3a = 3. For a=0a = 0 the tangent is y=0y = 0, the xx-axis, tangent at the origin; for a=3a = 3 it is y=27x−54y = 27x - 54, tangent at (3,27)(3, 27), and 27⋅2−54=027 \cdot 2 - 54 = 0 confirms that it passes through RR. The tangent y=0y = 0 CROSSES the curve at the origin, since x3x^3 changes sign there: a tangent line is defined by its slope, not by staying on one side of the curve.

e) The student used the slope at the abscissa of PP, as if PP were the point of tangency. But PP is not on the parabola, since 12=1≠−31^2 = 1 \ne -3, so f′(1)f'(1) is the slope of the curve at (1,1)(1, 1), a point that has nothing to do with the line through PP. The line y=2x−5y = 2x - 5 meets the parabola where x2=2x−5x^2 = 2x - 5, that is x2−2x+5=0x^2 - 2x + 5 = 0, whose discriminant is 4−20=−16<04 - 20 = -16 < 0: no common point at all. A tangent that does not touch the curve is the clearest sign that the point of tangency was never looked for.

-3-2-11234-4-224681012Py = 6x - 9y = -2x - 1(-1, 1)(3, 9)

Part B: problems and reasoning (/50)

Exercise 6: Higher derivatives: the product rule applied twice

The second derivative f′′f'' is the derivative of f′f', the third is the derivative of f′′f'', and f(n)f^{(n)} denotes the nn-th. Nothing new is needed to compute them, only care: each step differentiates the RESULT of the previous one, simplified first. Two facts organize the chapter: a polynomial of degree nn has f(n)f^{(n)} constant and f(n+1)=0f^{(n+1)} = 0, and the second derivative of a product is not the product of the second derivatives.

When a pattern appears after three or four derivatives, the general formula is a conjecture until it is proved by induction.

  • a) Let f(x)=x4−2x3+xf(x) = x^4 - 2x^3 + x. Find f′f', f′′f'', f′′′f''', f(4)f^{(4)} and f(5)f^{(5)}, and compute f′′(2)f''(2).
  • b) Apply the product rule twice to prove that (uv)′′=u′′v+2u′v′+uv′′(uv)'' = u''v + 2u'v' + uv''. Use it to find the second derivative of x2exx^2e^x, and explain why (uv)′′=u′′v′′(uv)'' = u''v'' is false.
  • c) Let g(x)=xexg(x) = xe^x. Compute g′g', g′′g'' and g′′′g''', conjecture g(n)g^{(n)}, and prove your conjecture by induction. What is g(n)(0)g^{(n)}(0)?
  • d) Let h(x)=1xh(x) = \frac{1}{x}. Find h′h', h′′h'', h′′′h''', conjecture and prove a formula for h(n)(x)h^{(n)}(x), and compute h(5)(1)h^{(5)}(1).
  • e) Find the 100100-th derivative of P(x)=5x100+x99−7x3P(x) = 5x^{100} + x^{99} - 7x^3, and the first derivative of x7x^7 that is identically zero.

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) 4x3−6x2+14x^3 - 6x^2 + 1, 12x2−12x12x^2 - 12x, 24x−1224x - 12, 2424, 00; f′′(2)=24f''(2) = 24
  • b) (x2ex)′′=(x2+4x+2)ex(x^2e^x)'' = (x^2 + 4x + 2)e^x; at x=1x = 1, u′′v′′=2e≠7eu''v'' = 2e \ne 7e
  • c) g(n)(x)=(x+n)exg^{(n)}(x) = (x + n)e^x, so g(n)(0)=ng^{(n)}(0) = n
  • d) h(n)(x)=(−1)nn!xn+1h^{(n)}(x) = \frac{(-1)^n n!}{x^{n+1}}, h(5)(1)=−120h^{(5)}(1) = -120
  • e) P(100)(x)=5⋅100!P^{(100)}(x) = 5 \cdot 100!; the 88-th derivative of x7x^7

a) f′(x)=4x3−6x2+1f'(x) = 4x^3 - 6x^2 + 1, f′′(x)=12x2−12xf''(x) = 12x^2 - 12x, f′′′(x)=24x−12f'''(x) = 24x - 12, f(4)(x)=24f^{(4)}(x) = 24 and f(5)(x)=0f^{(5)}(x) = 0. Each derivative lowers the degree by one, from 44 to 00, then the constant 2424 differentiates to 00 and every later derivative stays 00. At x=2x = 2: f′′(2)=48−24=24f''(2) = 48 - 24 = 24. Note that the constant term of ff and the term xx both vanish by the second derivative: information is lost at each step, which is why a higher derivative never determines the function.

b) First derivative by the product rule: (uv)′=u′v+uv′(uv)' = u'v + uv'. Differentiate again, applying the product rule to EACH of the two products: (u′v)′=u′′v+u′v′(u'v)' = u''v + u'v' and (uv′)′=u′v′+uv′′(uv')' = u'v' + uv''. Adding, (uv)′′=u′′v+2u′v′+uv′′(uv)'' = u''v + 2u'v' + uv''. For u=x2u = x^2, v=exv = e^x: u′=2xu' = 2x, u′′=2u'' = 2, v=v′=v′′=exv = v' = v'' = e^x, so (x2ex)′′=2ex+2⋅2x⋅ex+x2ex=(x2+4x+2)ex(x^2e^x)'' = 2e^x + 2 \cdot 2x \cdot e^x + x^2e^x = (x^2 + 4x + 2)e^x. Check against the first derivative x(x+2)ex=(x2+2x)exx(x + 2)e^x = (x^2 + 2x)e^x of Exercise 2: its derivative is (2x+2)ex+(x2+2x)ex=(x2+4x+2)ex(2x + 2)e^x + (x^2 + 2x)e^x = (x^2 + 4x + 2)e^x. The formula u′′v′′u''v'' gives 2ex2e^x: at x=0x = 0 it happens to agree with the true value 22, but at x=1x = 1 it gives 2e2e against 7e7e. Missing the middle term 2u′v′2u'v' is the error, and the correct formula has the same coefficients 1,2,11, 2, 1 as (a+b)2(a + b)^2.

c) Product rule: g′(x)=ex+xex=(x+1)exg'(x) = e^x + xe^x = (x + 1)e^x. Again: g′′(x)=ex+(x+1)ex=(x+2)exg''(x) = e^x + (x + 1)e^x = (x + 2)e^x, and g′′′(x)=(x+3)exg'''(x) = (x + 3)e^x. Conjecture: g(n)(x)=(x+n)exg^{(n)}(x) = (x + n)e^x for n≥1n \ge 1. Induction. Base: g′(x)=(x+1)exg'(x) = (x + 1)e^x. Step: if g(n)(x)=(x+n)exg^{(n)}(x) = (x + n)e^x, then by the product rule g(n+1)(x)=1⋅ex+(x+n)ex=(x+n+1)exg^{(n+1)}(x) = 1 \cdot e^x + (x + n)e^x = (x + n + 1)e^x, which is the formula for n+1n + 1. Hence g(n)(x)=(x+n)exg^{(n)}(x) = (x + n)e^x for every n≥1n \ge 1, and g(n)(0)=ng^{(n)}(0) = n. Stopping after three derivatives and writing the pattern is a guess, and a marker gives the proof marks only for the inductive step written out.

d) Rewrite h(x)=x−1h(x) = x^{-1}. Then h′(x)=−x−2h'(x) = -x^{-2}, h′′(x)=2x−3h''(x) = 2x^{-3}, h′′′(x)=−6x−4h'''(x) = -6x^{-4}. The signs alternate, the coefficients are 1,2,6=3!1, 2, 6 = 3!, the exponent is −(n+1)-(n + 1): conjecture h(n)(x)=(−1)nn! x−(n+1)h^{(n)}(x) = (-1)^n n!\,x^{-(n+1)}. Induction: true for n=1n = 1, since (−1)1⋅1!⋅x−2=−x−2(-1)^1 \cdot 1! \cdot x^{-2} = -x^{-2}; if true for nn, the power rule gives h(n+1)(x)=(−1)nn!⋅(−(n+1))x−(n+2)=(−1)n+1(n+1)! x−(n+2)h^{(n+1)}(x) = (-1)^n n! \cdot (-(n + 1))x^{-(n+2)} = (-1)^{n+1}(n + 1)!\,x^{-(n+2)}, the formula for n+1n + 1. So h(n)(x)=(−1)nn!xn+1h^{(n)}(x) = \frac{(-1)^n n!}{x^{n+1}}, and h(5)(1)=(−1)5⋅120=−120h^{(5)}(1) = (-1)^5 \cdot 120 = -120. Without rewriting 1x\frac{1}{x} as a power, each derivative would need the quotient rule and the pattern would be buried under the algebra.

e) The term x99x^{99} and the term −7x3-7x^3 are polynomials of degree less than 100100, so their 100100-th derivative is 00. For x100x^{100}, each derivative brings down the current exponent: 100⋅99⋅98⋯1=100!100 \cdot 99 \cdot 98 \cdots 1 = 100!, a constant. Hence P(100)(x)=5⋅100!P^{(100)}(x) = 5 \cdot 100!. For x7x^7, the 77-th derivative is the constant 7!=50407! = 5040 and the 88-th is the first one that is identically zero. Answering 00 for P(100)P^{(100)} because 100100 derivatives feels like many is the error: the degree decides, and here the degree is exactly 100100.

Exercise 7: Product and quotient rules from a table of values and from a graph

The product and quotient rules need only four numbers at the point: the values of the two functions and of their derivatives. A function can therefore be known only through a table, or through its graph, and the derivative of a product or a quotient still be computed exactly. The table gives two functions ff and gg, differentiable everywhere:

xf(x)f′(x)g(x)g′(x)1251−323−1−24\begin{array}{c|cccc} x & f(x) & f'(x) & g(x) & g'(x) \\ \hline 1 & 2 & 5 & 1 & -3 \\ 2 & 3 & -1 & -2 & 4 \end{array}

The figure gives the graphs of two other functions uu (blue) and vv (orange), each made of line segments joining the marked points.

1234567123456y = u(x)y = v(x)x
  • a) Let P=fgP = fg and Q=fgQ = \frac{f}{g}. Find P′(2)P'(2) and Q′(2)Q'(2).
  • b) Find the derivatives at x=1x = 1 of R(x)=x2f(x)R(x) = x^2f(x), S(x)=exg(x)S(x) = e^xg(x) and T(x)=f(x)2T(x) = f(x)^2, the last one as the product f⋅ff \cdot f.
  • c) Find the equation of the tangent line to the graph of PP at x=2x = 2.
  • d) Let U=uvU = uv and W=uvW = \frac{u}{v}. Read what you need on the figure and find U′(1)U'(1), U′(4)U'(4) and W′(4)W'(4).
  • e) Can the product rule give U′(2)U'(2)? Compute the slopes of UU just to the left and just to the right of x=2x = 2, and conclude.

Type your answers, the page tells you right or wrong 0/13

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) P′(2)=14P'(2) = 14, Q′(2)=−52Q'(2) = -\frac{5}{2}
  • b) R′(1)=9R'(1) = 9, S′(1)=−2eS'(1) = -2e, T′(1)=20T'(1) = 20
  • c) y=14x−34y = 14x - 34
  • d) U′(1)=6U'(1) = 6, U′(4)=−4U'(4) = -4, W′(4)=−425W'(4) = -\frac{4}{25}
  • e) No, u′(2)u'(2) does not exist; left slope 66, right slope −3-3: U′(2)U'(2) does not exist

a) Product rule at x=2x = 2: P′(2)=f′(2)g(2)+f(2)g′(2)=(−1)(−2)+3⋅4=2+12=14P'(2) = f'(2)g(2) + f(2)g'(2) = (-1)(-2) + 3 \cdot 4 = 2 + 12 = 14. Quotient rule: Q′(2)=f′(2)g(2)−f(2)g′(2)g(2)2=(−1)(−2)−3⋅4(−2)2=2−124=−52Q'(2) = \frac{f'(2)g(2) - f(2)g'(2)}{g(2)^2} = \frac{(-1)(-2) - 3 \cdot 4}{(-2)^2} = \frac{2 - 12}{4} = -\frac{5}{2}. Two slips cost these marks: reading a value from the wrong row of the table, and squaring g(2)=−2g(2) = -2 into −4-4 instead of 44. Write the rule with the letters first, then substitute, one number per letter.

b) R′(x)=2xf(x)+x2f′(x)R'(x) = 2xf(x) + x^2f'(x), so R′(1)=2⋅2+1⋅5=9R'(1) = 2 \cdot 2 + 1 \cdot 5 = 9. S′(x)=exg(x)+exg′(x)=ex(g(x)+g′(x))S'(x) = e^xg(x) + e^xg'(x) = e^x(g(x) + g'(x)), so S′(1)=e(1−3)=−2eS'(1) = e(1 - 3) = -2e, an exact answer that stays in terms of ee. T=f⋅fT = f \cdot f gives T′(x)=f′(x)f(x)+f(x)f′(x)=2f(x)f′(x)T'(x) = f'(x)f(x) + f(x)f'(x) = 2f(x)f'(x), so T′(1)=2⋅2⋅5=20T'(1) = 2 \cdot 2 \cdot 5 = 20. The tempting T′(1)=f′(1)2=25T'(1) = f'(1)^2 = 25 is the factor-by-factor rule again; the square of a function is a product, and the product rule is the only tool of this chapter that handles it.

c) The tangent to the graph of PP at x=2x = 2 goes through (2,P(2))(2, P(2)) with slope P′(2)P'(2). From the table, P(2)=f(2)g(2)=3⋅(−2)=−6P(2) = f(2)g(2) = 3 \cdot (-2) = -6, and P′(2)=14P'(2) = 14 from a). So y=−6+14(x−2)=14x−34y = -6 + 14(x - 2) = 14x - 34. The value P(2)P(2) is not in the table and must be computed from it; using f(2)=3f(2) = 3 as the height of the point is a frequent slip that shifts the whole line.

d) Near x=1x = 1, uu is the segment from (0,1)(0, 1) to (2,5)(2, 5): u(1)=3u(1) = 3 and u′(1)=5−12−0=2u'(1) = \frac{5 - 1}{2 - 0} = 2; vv is horizontal there, v(1)=3v(1) = 3 and v′(1)=0v'(1) = 0. So U′(1)=u′(1)v(1)+u(1)v′(1)=2⋅3+3⋅0=6U'(1) = u'(1)v(1) + u(1)v'(1) = 2 \cdot 3 + 3 \cdot 0 = 6. Near x=4x = 4, uu is the segment from (2,5)(2, 5) to (7,0)(7, 0), slope −1-1, so u(4)=3u(4) = 3 and u′(4)=−1u'(4) = -1; vv is the segment from (3,3)(3, 3) to (7,1)(7, 1), slope −12-\frac{1}{2}, so v(4)=52v(4) = \frac{5}{2} and v′(4)=−12v'(4) = -\frac{1}{2}. Then U′(4)=(−1)⋅52+3⋅(−12)=−4U'(4) = (-1) \cdot \frac{5}{2} + 3 \cdot \left(-\frac{1}{2}\right) = -4 and W′(4)=u′(4)v(4)−u(4)v′(4)v(4)2=−52+32254=−425W'(4) = \frac{u'(4)v(4) - u(4)v'(4)}{v(4)^2} = \frac{-\frac{5}{2} + \frac{3}{2}}{\frac{25}{4}} = -\frac{4}{25}. The slopes are computed between two MARKED points, never from a value read between grid lines.

e) No: the product rule needs u′(2)u'(2) and v′(2)v'(2), and uu has a corner at x=2x = 2, where its slope jumps from 22 to −1-1, so u′(2)u'(2) does not exist and the rule cannot be quoted. On [0,3][0, 3], v=3v = 3 is constant, so U=3uU = 3u near x=2x = 2: its slope is 3⋅2=63 \cdot 2 = 6 just to the left and 3⋅(−1)=−33 \cdot (-1) = -3 just to the right. The two one-sided slopes differ, so UU has a corner at x=2x = 2 and U′(2)U'(2) does not exist. A rule is a statement with hypotheses, both factors differentiable at the point; when one of them fails, look at the function itself.

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) If ff and gg are differentiable, then (fg)′=f′g′(fg)' = f'g'.
  • b) By the power rule, ddxex=xex−1\frac{d}{dx}e^x = xe^{x-1}.
  • c) ddx(e3)=3e2\frac{d}{dx}\left(e^3\right) = 3e^2 and ddx(π)=12π\frac{d}{dx}\left(\sqrt{\pi}\right) = \frac{1}{2\sqrt{\pi}}.
  • d) The quotient rule is (fg)′=fg′−f′gg2\left(\frac{f}{g}\right)' = \frac{fg' - f'g}{g^2}.
  • e) At a point where f′(a)=0f'(a) = 0, the normal line would have slope −10-\frac{1}{0}, so the curve has no normal line there.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) False: (x⋅x)′=2x(x \cdot x)' = 2x, not 11. (fg)′=f′g+fg′(fg)' = f'g + fg'.
  • b) False: the slope of exe^x at 00 is 11, not 00. (ex)′=ex(e^x)' = e^x.
  • c) False: e3e^3 and π\sqrt \pi are constants, their derivatives are 00.
  • d) False: for f=xf = x, g=1g = 1 it gives −1-1. (fg)′=f′g−fg′g2\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}.
  • e) False: the normal is the vertical line x=ax = a.

a) FALSE. Take f(x)=g(x)=xf(x) = g(x) = x: f′g′=1⋅1=1f'g' = 1 \cdot 1 = 1, while fg=x2fg = x^2 has derivative 2x2x, which is 66 at x=3x = 3, not 11. Correct statement: (fg)′=f′g+fg′(fg)' = f'g + fg', which gives 1⋅x+x⋅1=2x1 \cdot x + x \cdot 1 = 2x. The factor-by-factor rule is the single most frequent error of the chapter, and the quickest check against it is a product of two polynomials, where expanding gives the answer independently.

b) FALSE. The power rule is about xnx^n: a VARIABLE base raised to a CONSTANT exponent. In exe^x the base is the constant ee and the exponent is the variable: it is an exponential function, not a power. The student's formula gives 0⋅e−1=00 \cdot e^{-1} = 0 at x=0x = 0, a horizontal tangent, while the graph of exe^x is rising there with slope 11. Correct statement: ddxex=ex\frac{d}{dx}e^x = e^x, and ee is precisely the base for which the slope at 00 equals 11.

c) FALSE. e3≈20e^3 \approx 20 and π≈1.77\sqrt \pi \approx 1.77 are NUMBERS: their graphs, as functions of xx, are horizontal lines, with slope 00. The student differentiated with respect to ee and to π\pi, which are not variables. Correct statement: the derivative of any constant is 00; only an expression containing xx has a nonzero derivative. The same trap hides inside longer expressions: (x2+π2)′=2x(x^2 + \pi^2)' = 2x, not 2x+2π2x + 2\pi.

d) FALSE, the two terms of the numerator are swapped. With f(x)=xf(x) = x and g(x)=1g(x) = 1, the quotient is xx, whose derivative is 11; the student's formula gives x⋅0−1⋅11=−1\frac{x \cdot 0 - 1 \cdot 1}{1} = -1, the opposite. Correct statement: (fg)′=f′g−fg′g2\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}, derivative of the top FIRST. Swapping the order changes the sign of every answer, so a mnemonic is worth having: low d-high minus high d-low, over the square of what is below.

e) FALSE. When f′(a)=0f'(a) = 0, the tangent at aa is the horizontal line y=f(a)y = f(a), and the line perpendicular to it through (a,f(a))(a, f(a)) is the VERTICAL line x=ax = a. It exists; it just has no slope, which is why the formula −1f′(a)-\frac{1}{f'(a)} cannot produce it. For f(x)=x2f(x) = x^2 at a=0a = 0: tangent y=0y = 0, normal x=0x = 0, the yy-axis. Correct statement: if f′(a)≠0f'(a) \ne 0 the normal has slope −1f′(a)-\frac{1}{f'(a)}; if f′(a)=0f'(a) = 0 the normal is x=ax = a.

Exercise 9: A particle on a line: velocity, acceleration, and the distance travelled

A particle moves along a straight line, and its position at time tt seconds is s(t)=t3−9t2+24ts(t) = t^3 - 9t^2 + 24t metres, for 0≤t≤60 \le t \le 6. Its velocity is v(t)=s′(t)v(t) = s'(t) and its acceleration is a(t)=v′(t)=s′′(t)a(t) = v'(t) = s''(t). The SIGN of vv gives the direction of motion; the particle speeds up when vv and aa have the same sign and slows down when they have opposite signs, because the speed is ∣v∣|v|, not vv.

The figure shows the graph of the position. The acceleration here is NOT constant, so the constant-acceleration formulas of a physics course do not apply: everything comes from s′s' and s′′s''.

123456510152025303540s(t) = t³ - 9t² + 24tt (s)s (m)
  • a) Find v(t)v(t) and a(t)a(t). When is the particle at rest?
  • b) On which intervals does the particle move in the positive direction, and in the negative direction? Find its positions at t=0,2,4,6t = 0, 2, 4, 6.
  • c) Find the displacement and the total distance travelled over [0,6][0, 6].
  • d) Draw a sign chart of vv and aa, and find when the particle speeds up and when it slows down.
  • e) Write v(t)=3(t−3)2−3v(t) = 3(t - 3)^2 - 3. A student concludes that the particle is slowest at t=3t = 3. Correct this, and give the average velocity and the average speed over [0,6][0, 6].

Type your answers, the page tells you right or wrong 0/15

a)
b)
Negative direction on ,
c)
d)
Speeds up on the first interval ,
Speeds up on the second interval ,
Slows down on the first interval ,
Slows down on the second interval ,
e)
Show the solution

Answers

  • a) v(t)=3t2−18t+24=3(t−2)(t−4)v(t) = 3t^2 - 18t + 24 = 3(t - 2)(t - 4), a(t)=6t−18a(t) = 6t - 18; at rest at t=2t = 2 s and t=4t = 4 s
  • b) Positive on [0,2)[0, 2) and (4,6](4, 6], negative on (2,4)(2, 4); s=0,20,16,36s = 0, 20, 16, 36 m
  • c) Displacement 3636 m, distance 20+4+20=4420 + 4 + 20 = 44 m
  • d) Speeds up on (2,3)(2, 3) and (4,6](4, 6], slows down on [0,2)[0, 2) and (3,4)(3, 4)
  • e) At t=3t = 3 the VELOCITY is smallest (−3-3 m/s), the speed is 33 m/s; slowest at t=2t = 2 and 44. Averages 66 m/s and 223\frac{22}{3} m/s

a) By the power rule, v(t)=s′(t)=3t2−18t+24v(t) = s'(t) = 3t^2 - 18t + 24 m/s, and a(t)=v′(t)=6t−18a(t) = v'(t) = 6t - 18 m/s2^2. Factor the velocity: v(t)=3(t2−6t+8)=3(t−2)(t−4)v(t) = 3(t^2 - 6t + 8) = 3(t - 2)(t - 4). The particle is at rest when v(t)=0v(t) = 0: at t=2t = 2 s and t=4t = 4 s. On the figure these are the two instants where the position graph has a horizontal tangent. At rest does not mean without acceleration: a(2)=−6a(2) = -6 and a(4)=6a(4) = 6, which is exactly why the particle does not stay at rest.

b) The factored form gives the sign of vv at once: both factors negative on [0,2)[0, 2), so v>0v > 0; opposite signs on (2,4)(2, 4), so v<0v < 0; both positive on (4,6](4, 6], so v>0v > 0. The particle moves in the positive direction on [0,2)[0, 2) and (4,6](4, 6], in the negative direction on (2,4)(2, 4). Positions: s(0)=0s(0) = 0, s(2)=8−36+48=20s(2) = 8 - 36 + 48 = 20, s(4)=64−144+96=16s(4) = 64 - 144 + 96 = 16, s(6)=216−324+144=36s(6) = 216 - 324 + 144 = 36 metres. The particle goes out to 2020 m, comes back to 1616 m, then leaves again to 3636 m.

c) The displacement is s(6)−s(0)=36s(6) - s(0) = 36 m. The distance counts every leg positively, split at the changes of direction found in b): ∣s(2)−s(0)∣+∣s(4)−s(2)∣+∣s(6)−s(4)∣=20+4+20=44|s(2) - s(0)| + |s(4) - s(2)| + |s(6) - s(4)| = 20 + 4 + 20 = 44 m. Answering 3636 m for the distance ignores the backward leg, which is travelled once backward and then once more forward: the 44 m between 1616 and 2020 are covered three times in all. The split points are the zeros of vv, never the endpoints alone.

d) a(t)=6(t−3)a(t) = 6(t - 3) is negative on [0,3)[0, 3) and positive on (3,6](3, 6]. Combining with the sign of vv, interval by interval: on [0,2)[0, 2), v>0v > 0 and a<0a < 0, opposite signs, the particle slows down; on (2,3)(2, 3), v<0v < 0 and a<0a < 0, same sign, it speeds up (backward); on (3,4)(3, 4), v<0v < 0 and a>0a > 0, it slows down; on (4,6](4, 6], v>0v > 0 and a>0a > 0, it speeds up. The sign chart of the solution puts the four sign changes in one picture. Deciding from aa alone (speeding up because a>0a > 0 on (3,4)(3, 4)) is the classic error: on (3,4)(3, 4) the particle moves backward, and a positive acceleration there brakes it.

e) Completing the square, 3t2−18t+24=3(t2−6t+9)−27+24=3(t−3)2−33t^2 - 18t + 24 = 3(t^2 - 6t + 9) - 27 + 24 = 3(t - 3)^2 - 3, so v(t)≥−3v(t) \ge -3 with equality at t=3t = 3: the VELOCITY is smallest at t=3t = 3, where the particle moves backward at its greatest speed, ∣v(3)∣=3|v(3)| = 3 m/s. It is the SPEED ∣v∣|v| that measures how slow the particle is, and the speed is 00, its smallest possible value, at t=2t = 2 and t=4t = 4. The average velocity is the displacement over the time, 366=6\frac{36}{6} = 6 m/s; the average speed is the distance over the time, 446=223\frac{44}{6} = \frac{22}{3} m/s. They differ because the particle turned back once, and they would agree only for a motion that never changes direction.

t02346v(t)+0−−0+a(t)−−0++motionslowsspeeds upslowsspeeds up

Exercise 10: A final exam question: the curve y = e^x / x

Let f(x)=exxf(x) = \frac{e^x}{x}, defined for x≠0x \ne 0; its graph is shown below. This is the shape of a long final exam question on the chapter: a quotient rule, a factored derivative, horizontal tangents and normals, a tangent at a given point, a tangent through a point off the curve, and a second derivative, every rule named and no calculator.

Answers are exact: keep ee, e2e^2 and e−1e^{-1} as they are.

-4-3-2-1123-6-4-22468y = eˣ/x
  • a) Show that f′(x)=ex(x−1)x2f'(x) = \frac{e^x(x - 1)}{x^2}.
  • b) Find the points where the tangent is horizontal, and the normal line at each of them.
  • c) Find the equation of the tangent line at x=−1x = -1, and where it crosses the xx-axis.
  • d) Find all the tangent lines to the curve that pass through the origin.
  • e) Show that f′′(x)=ex(x2−2x+2)x3f''(x) = \frac{e^x(x^2 - 2x + 2)}{x^3}, and deduce that f′′(x)f''(x) is never 00.

Type your answers, the page tells you right or wrong 0/6

b)
c)
d)
Show the solution

Answers

  • a) f′(x)=xex−exx2=ex(x−1)x2f'(x) = \frac{xe^x - e^x}{x^2} = \frac{e^x(x - 1)}{x^2}
  • b) Only (1,e)(1, e); the normal there is x=1x = 1
  • c) y=−2x+3ey = -\frac{2x + 3}{e}, crossing at x=−32x = -\frac{3}{2}
  • d) One tangent: y=e24xy = \frac{e^2}{4}x, at (2,e22)\left(2, \frac{e^2}{2}\right)
  • e) x2−2x+2=(x−1)2+1>0x^2 - 2x + 2 = (x - 1)^2 + 1 > 0 and ex>0e^x > 0: f′′(x)≠0f''(x) \ne 0

a) Quotient rule with top exe^x, whose derivative is exe^x, and bottom xx, whose derivative is 11: f′(x)=ex⋅x−ex⋅1x2=ex(x−1)x2f'(x) = \frac{e^x \cdot x - e^x \cdot 1}{x^2} = \frac{e^x(x - 1)}{x^2}, for x≠0x \ne 0. Factoring exe^x is part of the answer: it is what makes the sign and the zeros of f′f' readable in the next questions.

b) A horizontal tangent needs f′(x)=0f'(x) = 0. Since ex>0e^x > 0 and x2>0x^2 > 0 on the domain, f′(x)=0f'(x) = 0 exactly when x−1=0x - 1 = 0: x=1x = 1, and f(1)=ef(1) = e. The only point with a horizontal tangent is (1,e)(1, e), the bottom of the right branch on the figure; the left branch has none, since there x−1<0x - 1 < 0 makes f′<0f' < 0. At (1,e)(1, e) the tangent is y=ey = e and the normal is the vertical line x=1x = 1.

c) At x=−1x = -1: f(−1)=e−1−1=−1ef(-1) = \frac{e^{-1}}{-1} = -\frac{1}{e} and f′(−1)=e−1(−2)1=−2ef'(-1) = \frac{e^{-1}(-2)}{1} = -\frac{2}{e}. The tangent is y=−1e−2e(x+1)=−2x+3ey = -\frac{1}{e} - \frac{2}{e}(x + 1) = -\frac{2x + 3}{e}. It crosses the xx-axis where 2x+3=02x + 3 = 0, at x=−32x = -\frac{3}{2}. Keeping ee exact makes the line clean; a decimal slope such as −0.74-0.74 would break the no-calculator rule and hide the fact that the intercept is exactly −32-\frac{3}{2}.

d) The origin is not on the curve, since f(0)f(0) does not exist, so the point of tangency is unknown: call its abscissa a≠0a \ne 0. The tangent at aa is y=f(a)+f′(a)(x−a)y = f(a) + f'(a)(x - a), and it passes through (0,0)(0, 0) when 0=f(a)−af′(a)=eaa−ea(a−1)a=ea(2−a)a0 = f(a) - af'(a) = \frac{e^a}{a} - \frac{e^a(a - 1)}{a} = \frac{e^a(2 - a)}{a}. Since ea≠0e^a \ne 0, a=2a = 2. Then f(2)=e22f(2) = \frac{e^2}{2} and f′(2)=e24f'(2) = \frac{e^2}{4}, and the tangent is y=e22+e24(x−2)=e24xy = \frac{e^2}{2} + \frac{e^2}{4}(x - 2) = \frac{e^2}{4}x, which does pass through the origin. There is exactly one such tangent, touching the right branch at (2,e22)\left(2, \frac{e^2}{2}\right).

e) Differentiate f′(x)=ex(x−1)x2f'(x) = \frac{e^x(x - 1)}{x^2} with the quotient rule. The top is a product, so its derivative comes from the product rule: (ex(x−1))′=ex(x−1)+ex=xex\left(e^x(x - 1)\right)' = e^x(x - 1) + e^x = xe^x. Then f′′(x)=xex⋅x2−ex(x−1)⋅2xx4=xex(x2−2x+2)x4=ex(x2−2x+2)x3f''(x) = \frac{xe^x \cdot x^2 - e^x(x - 1) \cdot 2x}{x^4} = \frac{xe^x(x^2 - 2x + 2)}{x^4} = \frac{e^x(x^2 - 2x + 2)}{x^3}. Completing the square, x2−2x+2=(x−1)2+1≥1>0x^2 - 2x + 2 = (x - 1)^2 + 1 \ge 1 > 0, and ex>0e^x > 0, so the numerator never vanishes and f′′(x)≠0f''(x) \ne 0 for every xx in the domain. Simplifying f′f' BEFORE differentiating again, with exe^x factored out, is what keeps this second derivative to three lines.

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/math140-differentiation-rules. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

See also

Struggling with MATH 140?

I tutor first-year calculus at McGill and Concordia, in English or in French, in Montreal or online. Get in touch for a first session.

Site by Studio Squalli