MATH 140 Calculus 1 • McGill University, Montreal

MATH 140 practice midterm with full solutions (McGill)

This is a practice midterm for MATH 140, Calculus 1, the differential calculus course of the first year at McGill University. It covers the first ten chapters of the course, the usual scope of the midterm: functions and their transformations, exponential, logarithmic and inverse functions, limits and the limit laws, continuity and the Intermediate Value Theorem, infinite limits and asymptotes, the derivative as a limit, the power, product and quotient rules, the derivatives of the trigonometric functions, the chain rule, and implicit differentiation. Eight questions, one hundred points, two parts: four short questions worth forty-two points, then four long problems worth fifty-eight.

Sit it as an exam: ninety minutes on a timer, the length of an evening midterm, with no calculator and no notes. Every answer is exact, 427\frac{4}{27}, π324\frac{\pi\sqrt 3}{24}, a slope of −ln⁡2-\ln 2, never a decimal from a machine, and every mark goes to the method: name the factor that cancels, the box of sin⁡θθ\frac{\sin\theta}{\theta}, the three hypotheses of the Intermediate Value Theorem, the inner function of every chain rule. Not one question repeats an exercise of the ten chapter sets of this site: the gestures are the ones the examiners ask for, the functions are new, so the paper measures what you can do and not what you remember having read. Each question has its Answers box for a first quick marking, and the full reasoning underneath for the second pass.

The traps named in the solutions: reading the domain of a composition on its simplified formula, keeping a candidate that makes a logarithm undefined, applying the product law to a factor with no limit, concluding from two values of the same sign that there is no root, forgetting that x2=∣x∣\sqrt{x^2} = |x| at −∞-\infty, calling every zero of a denominator an asymptote, imposing equal slopes before continuity, dropping a factor that vanishes when solving g′(x)=0g'(x) = 0, reading (g−1)′(b)(g^{-1})'(b) at bb instead of at g−1(b)g^{-1}(b), and treating yy as a constant in a second implicit derivative.

8 corrected exercises • 100 points • 90 minutes

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.

Part A: short questions (/42)

Exercise 1: Domains of a composition, an inverse, and a logarithm that hides a solution

Parts a) to d) are independent. The figure belongs to part b): it shows f(x)=ln⁡(ex−1)f(x) = \ln(e^x - 1) in blue, its inverse in orange, and the dashed line y=xy = x, with equal scales on both axes.

-3-2-11234-3-2-11234y = f(x)y = f⁻¹(x)
  • a) Let p(x)=6−xp(x) = \sqrt{6 - x} and q(x)=x2+2q(x) = x^2 + 2. Find p∘qp \circ q and q∘pq \circ p, each with its domain.
  • b) Let f(x)=ln⁡(ex−1)f(x) = \ln(e^x - 1). Find the domain and the range of ff, show that ff is one-to-one, and find f−1(x)f^{-1}(x) with its domain and range. Check one value on the figure.
  • c) Solve ln⁡(x+1)+ln⁡(x−2)=ln⁡(4x−8)\ln(x + 1) + \ln(x - 2) = \ln(4x - 8).
  • d) Find the exact value of tan⁡(2arccos⁡(−13))\tan\left(2\arccos\left(-\frac{1}{3}\right)\right).

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

a)
Domain of p∘qp \circ q ,
Domain of q∘pq \circ p ,
b)
Domain of ff ,
Range of f−1f^{-1} ,
c)
d)
Show the solution

Answers

  • a) (p∘q)(x)=4−x2(p \circ q)(x) = \sqrt{4 - x^2} on [−2,2][-2, 2]; (q∘p)(x)=8−x(q \circ p)(x) = 8 - x on (−∞,6](-\infty, 6]
  • b) Domain (0,∞)(0, \infty), range R\mathbb{R}; f−1(x)=ln⁡(1+ex)f^{-1}(x) = \ln(1 + e^x), domain R\mathbb{R}, range (0,∞)(0, \infty); f(ln⁡2)=0f(\ln 2) = 0
  • c) x=3x = 3 only (x=2x = 2 is rejected)
  • d) 427\frac{4\sqrt 2}{7}

a) (p∘q)(x)=p(x2+2)=6−(x2+2)=4−x2(p \circ q)(x) = p(x^2 + 2) = \sqrt{6 - (x^2 + 2)} = \sqrt{4 - x^2}. The domain is read on the two steps: qq accepts every real xx, and q(x)q(x) must lie in the domain of pp, that is x2+2≤6x^2 + 2 \le 6, so x2≤4x^2 \le 4 and x∈[−2,2]x \in [-2, 2]. Then (q∘p)(x)=(6−x)2+2=8−x(q \circ p)(x) = \left(\sqrt{6 - x}\right)^2 + 2 = 8 - x. The simplified formula accepts every xx, but the first step does not: p(x)p(x) exists only for x≤6x \le 6. The domain of q∘pq \circ p is (−∞,6](-\infty, 6], and reading it on 8−x8 - x is the classic error.

b) Domain: ex−1>0e^x - 1 > 0 means ex>1e^x > 1, so x>0x > 0; the domain is (0,∞)(0, \infty). Range: as xx runs over (0,∞)(0, \infty), ex−1e^x - 1 takes every value of (0,∞)(0, \infty), and ln⁡\ln takes every real value on (0,∞)(0, \infty), so the range is R\mathbb{R}. One-to-one: if f(a)=f(b)f(a) = f(b), then applying e(⋅)e^{(\cdot)} gives ea−1=eb−1e^a - 1 = e^b - 1, so ea=ebe^a = e^b and a=ba = b, since exe^x is one-to-one.

Inverse: from y=ln⁡(ex−1)y = \ln(e^x - 1), ey=ex−1e^y = e^x - 1, so ex=1+eye^x = 1 + e^y and x=ln⁡(1+ey)x = \ln(1 + e^y). Renaming, f−1(x)=ln⁡(1+ex)f^{-1}(x) = \ln(1 + e^x). Its domain is the range of ff, R\mathbb{R}, and its range is the domain of ff, (0,∞)(0, \infty): indeed 1+ex>11 + e^x > 1, so ln⁡(1+ex)>0\ln(1 + e^x) > 0. Check: f−1(0)=ln⁡2f^{-1}(0) = \ln 2 and f(ln⁡2)=ln⁡(2−1)=0f(\ln 2) = \ln(2 - 1) = 0. On the figure, the blue curve meets the xx-axis at ln⁡2≈0.69\ln 2 \approx 0.69 and the orange one meets the yy-axis at the same height: the two marked points are mirror images in y=xy = x.

c) Domain first: the three logarithms need x>−1x > -1, x>2x > 2 and 4x−8>04x - 8 > 0, so x>2x > 2. On that domain the product law applies: ln⁡((x+1)(x−2))=ln⁡(4(x−2))\ln\left((x + 1)(x - 2)\right) = \ln\left(4(x - 2)\right), and since ln⁡\ln is one-to-one, (x+1)(x−2)=4(x−2)(x + 1)(x - 2) = 4(x - 2). Do not divide by x−2x - 2: factor, (x−2)(x+1−4)=0(x - 2)(x + 1 - 4) = 0, so x=2x = 2 or x=3x = 3. The candidate x=2x = 2 is outside the domain (ln⁡0\ln 0 does not exist) and is rejected. Check x=3x = 3: ln⁡4+ln⁡1=ln⁡4\ln 4 + \ln 1 = \ln 4. The only solution is x=3x = 3.

d) Let θ=arccos⁡(−13)\theta = \arccos\left(-\frac{1}{3}\right). The range of arccos⁡\arccos is [0,π][0, \pi], and cos⁡θ<0\cos\theta < 0, so θ\theta lies in (π2,π)\left(\frac{\pi}{2}, \pi\right), where sin⁡θ>0\sin\theta > 0: sin⁡θ=1−19=223\sin\theta = \sqrt{1 - \frac{1}{9}} = \frac{2\sqrt 2}{3}. Then sin⁡2θ=2sin⁡θcos⁡θ=2⋅223⋅(−13)=−429\sin 2\theta = 2\sin\theta\cos\theta = 2 \cdot \frac{2\sqrt 2}{3} \cdot \left(-\frac{1}{3}\right) = -\frac{4\sqrt 2}{9} and cos⁡2θ=2cos⁡2θ−1=29−1=−79\cos 2\theta = 2\cos^2\theta - 1 = \frac{2}{9} - 1 = -\frac{7}{9}. So tan⁡2θ=−42/9−7/9=427\tan 2\theta = \frac{-4\sqrt 2/9}{-7/9} = \frac{4\sqrt 2}{7}. The sign is consistent: 2θ2\theta lies in (π,2π)(\pi, 2\pi) with sine and cosine both negative, the third quadrant, where the tangent is positive. The formula tan⁡2θ=2tan⁡θ1−tan⁡2θ\tan 2\theta = \frac{2\tan\theta}{1 - \tan^2\theta} with tan⁡θ=−22\tan\theta = -2\sqrt 2 gives −42−7\frac{-4\sqrt 2}{-7}, the same value.

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: Four limits: factor, conjugate, match the sine, squeeze

Evaluate each limit exactly. The first line of each answer must NAME the move: the factor that cancels, the conjugate, the standard limit lim⁡θ→0sin⁡θθ=1\lim_{\theta \to 0}\frac{\sin\theta}{\theta} = 1 (which you may use), or the two bounds of the squeeze theorem. No L'Hospital's rule: it comes much later in the course.

  • a) lim⁡x→3x2−2x−3x3−27\displaystyle\lim_{x \to 3} \frac{x^2 - 2x - 3}{x^3 - 27}
  • b) lim⁡x→32x+3−3x2−9\displaystyle\lim_{x \to 3} \frac{\sqrt{2x + 3} - 3}{x^2 - 9}
  • c) lim⁡x→0sin⁡(x2+3x)x\displaystyle\lim_{x \to 0} \frac{\sin(x^2 + 3x)}{x}
  • d) lim⁡x→0+x esin⁡(1/x)\displaystyle\lim_{x \to 0^+} \sqrt{x}\, e^{\sin(1/x)}. Why is it one-sided, and why can the product law not be used?

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

a)
b)
c)
d)
Show the solution

Answers

  • a) 427\frac{4}{27}
  • b) 118\frac{1}{18}
  • c) 33
  • d) 00, by e−1x≤x esin⁡(1/x)≤exe^{-1}\sqrt x \le \sqrt x\, e^{\sin(1/x)} \le e\sqrt x

a) Substitution gives 00\frac{0}{0}: both polynomials vanish at 33, so both are divisible by x−3x - 3. Factor: x2−2x−3=(x−3)(x+1)x^2 - 2x - 3 = (x - 3)(x + 1) and, by the difference of cubes, x3−27=(x−3)(x2+3x+9)x^3 - 27 = (x - 3)(x^2 + 3x + 9). For x≠3x \ne 3 the quotient equals x+1x2+3x+9\frac{x + 1}{x^2 + 3x + 9}, a rational function defined at 33, so the limit is 49+9+9=427\frac{4}{9 + 9 + 9} = \frac{4}{27}.

b) Form 00\frac{0}{0} with a root on top: multiply top and bottom by the conjugate 2x+3+3\sqrt{2x + 3} + 3. The numerator becomes (2x+3)−9=2(x−3)(2x + 3) - 9 = 2(x - 3), and x2−9=(x−3)(x+3)x^2 - 9 = (x - 3)(x + 3). For x≠3x \ne 3 the quotient is 2(x+3)(2x+3+3)\frac{2}{(x + 3)\left(\sqrt{2x + 3} + 3\right)}, and the limit is 26⋅6=118\frac{2}{6 \cdot 6} = \frac{1}{18}.

c) The box of the standard limit must be the argument of the sine, u=x2+3xu = x^2 + 3x, which tends to 00 and is nonzero for 0<∣x∣<30 < |x| < 3. Write sin⁡(x2+3x)x=sin⁡uu⋅x2+3xx=sin⁡uu⋅(x+3)\frac{\sin(x^2 + 3x)}{x} = \frac{\sin u}{u} \cdot \frac{x^2 + 3x}{x} = \frac{\sin u}{u} \cdot (x + 3). As x→0x \to 0, u→0u \to 0 so the first factor tends to 11, and the second tends to 33: the limit is 33. Replacing sin⁡(x2+3x)\sin(x^2 + 3x) by sin⁡(3x)\sin(3x) because x2x^2 is small happens to give the same number here, but it is not a move you can justify.

d) The factor x\sqrt x exists only for x≥0x \ge 0, so only x→0+x \to 0^+ makes sense. The factor esin⁡(1/x)e^{\sin(1/x)} has NO limit at 00: sin⁡(1/x)\sin(1/x) oscillates between −1-1 and 11 infinitely often. The product law needs the limit of each factor, so it cannot be used. Squeeze: −1≤sin⁡(1/x)≤1-1 \le \sin(1/x) \le 1, and ete^t is increasing, so e−1≤esin⁡(1/x)≤ee^{-1} \le e^{\sin(1/x)} \le e. Multiplying by x≥0\sqrt x \ge 0 keeps the inequalities: e−1x≤x esin⁡(1/x)≤exe^{-1}\sqrt x \le \sqrt x\, e^{\sin(1/x)} \le e\sqrt x. Both bounds tend to 00 as x→0+x \to 0^+, so the limit is 00.

Exercise 3: Two constants for continuity, then the Intermediate Value Theorem

Parts b) and c) are independent of a). The figure belongs to b) and c): it shows y=cos⁡xy = \cos x in blue and y=x2−1y = x^2 - 1 in orange.

-2.5-2-1.5-1-0.50.511.522.5-2-11234y = cos xy = x² − 1
  • a) Find the constants aa and bb such that ff is continuous on R\mathbb{R}, where f(x)=sin⁡6x2xf(x) = \frac{\sin 6x}{2x} if x<0x < 0, f(x)=ax+bf(x) = ax + b if 0≤x≤20 \le x \le 2, and f(x)=x2−4x+2−2f(x) = \frac{x^2 - 4}{\sqrt{x + 2} - 2} if x>2x > 2.
  • b) Prove that the equation cos⁡x=x2−1\cos x = x^2 - 1 has at least two real solutions. Name the function, the interval and each hypothesis.
  • c) A student applies the theorem on [−π2,π2]\left[-\frac{\pi}{2}, \frac{\pi}{2}\right], finds values of the same sign at both ends, and concludes that the equation has no solution in that interval. Correct him. Then show that every solution lies in [−2,2]\left[-\sqrt 2, \sqrt 2\right], and say whether the theorem tells you how many solutions there are.

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

a)
b)
c)
Show the solution

Answers

  • a) b=3b = 3, a=132a = \frac{13}{2}
  • b) h(x)=cos⁡x−x2+1h(x) = \cos x - x^2 + 1: h(0)=2>0h(0) = 2 > 0, h(π2)=1−π24<0h\left(\frac{\pi}{2}\right) = 1 - \frac{\pi^2}{4} < 0; a root cc in (0,π2)\left(0, \frac{\pi}{2}\right), and −c-c by parity
  • c) Same signs prove nothing (two roots inside); x2−1=cos⁡x≤1x^2 - 1 = \cos x \le 1 gives ∣x∣≤2|x| \le \sqrt 2; the IVT gives existence only

a) On each open interval the formula is continuous: sin⁡6x2x\frac{\sin 6x}{2x} is a quotient of continuous functions whose denominator is not 00 for x<0x < 0; ax+bax + b is a polynomial; for x>2x > 2, x+2>2\sqrt{x + 2} > 2, so the last denominator is not 00. Only the seams 00 and 22 remain. At 00: f(0)=bf(0) = b, the right limit is bb, and the left limit is lim⁡x→0−3⋅sin⁡6x6x=3\lim_{x \to 0^-} 3 \cdot \frac{\sin 6x}{6x} = 3, the box 6x6x matched on top and bottom. So b=3b = 3.

At 22: f(2)=2a+3f(2) = 2a + 3 is also the left limit. The right piece is of the form 00\frac{0}{0} at 22 and must be simplified, never plugged in: multiplying by the conjugate x+2+2\sqrt{x + 2} + 2, the denominator becomes (x+2)−4=x−2(x + 2) - 4 = x - 2, so for x>2x > 2, x2−4x+2−2=(x−2)(x+2)(x+2+2)x−2=(x+2)(x+2+2)\frac{x^2 - 4}{\sqrt{x + 2} - 2} = \frac{(x - 2)(x + 2)\left(\sqrt{x + 2} + 2\right)}{x - 2} = (x + 2)\left(\sqrt{x + 2} + 2\right), which tends to 4⋅4=164 \cdot 4 = 16. Continuity at 22 requires 2a+3=162a + 3 = 16, so a=132a = \frac{13}{2}.

b) Let h(x)=cos⁡x−x2+1h(x) = \cos x - x^2 + 1; the solutions of the equation are the zeros of hh. The function hh is the sum of cos⁡\cos and a polynomial, so it is continuous on R\mathbb{R}, in particular on the closed interval [0,π2]\left[0, \frac{\pi}{2}\right]. The values: h(0)=1−0+1=2>0h(0) = 1 - 0 + 1 = 2 > 0 and h(π2)=0−π24+1<0h\left(\frac{\pi}{2}\right) = 0 - \frac{\pi^2}{4} + 1 < 0, because π>2\pi > 2 gives π2>4\pi^2 > 4. Since 00 lies strictly between h(π2)h\left(\frac{\pi}{2}\right) and h(0)h(0), the Intermediate Value Theorem gives cc in (0,π2)\left(0, \frac{\pi}{2}\right) with h(c)=0h(c) = 0.

Second solution: hh is even, since cos⁡(−x)=cos⁡x\cos(-x) = \cos x and (−x)2=x2(-x)^2 = x^2. So h(−c)=h(c)=0h(-c) = h(c) = 0, and −c≠c-c \ne c because c>0c > 0. (Equally, the theorem applies on [−π2,0]\left[-\frac{\pi}{2}, 0\right].) The figure agrees: the two curves cross twice, symmetrically, a little to each side of x=±1x = \pm 1.

c) h(−π2)=h(π2)=1−π24<0h\left(-\frac{\pi}{2}\right) = h\left(\frac{\pi}{2}\right) = 1 - \frac{\pi^2}{4} < 0: same sign at both ends, so the theorem gives NOTHING on that interval. It does not say that there is no zero; it is silent, and here there are two zeros inside, one on each side of 00. Location: if cos⁡x=x2−1\cos x = x^2 - 1, then x2−1≤1x^2 - 1 \le 1 because cos⁡x≤1\cos x \le 1, so x2≤2x^2 \le 2 and ∣x∣≤2|x| \le \sqrt 2. The theorem is an existence theorem: it guarantees at least one zero on each of the two intervals, and says nothing about how many there are. Proving that there are exactly two needs a tool from later in the course.

Exercise 4: Every asymptote, a hole that is not one, and square roots at infinity

The figure belongs to part a): it shows the graph of ff, the dashed lines x=−1x = -1 and y=2y = 2, and an open dot at x=1x = 1. Every limit must come from the formula; the figure only lets you check.

-6-5-4-3-2-112345-5-4-3-2-1123456789x = −1y = 2y = f(x)
  • a) Let f(x)=2x2+3x−5x2−1f(x) = \frac{2x^2 + 3x - 5}{x^2 - 1}. Find the vertical asymptotes with the two one-sided limits, the horizontal asymptotes, and explain what happens at x=1x = 1.
  • b) Let g(x)=9x2+xx+2g(x) = \frac{\sqrt{9x^2 + x}}{x + 2}. Find lim⁡x→∞g(x)\lim_{x \to \infty} g(x) and lim⁡x→−∞g(x)\lim_{x \to -\infty} g(x), and give all the horizontal asymptotes of its graph.
  • c) Find lim⁡x→∞(x2+7x−x2+x)\displaystyle\lim_{x \to \infty} \left(\sqrt{x^2 + 7x} - \sqrt{x^2 + x}\right).

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

a)
b)
c)
Show the solution

Answers

  • a) Vertical x=−1x = -1: −∞-\infty from the left, +∞+\infty from the right; horizontal y=2y = 2; at x=1x = 1 a hole at (1,72)\left(1, \frac{7}{2}\right), no asymptote
  • b) 33 and −3-3: two horizontal asymptotes, y=3y = 3 and y=−3y = -3
  • c) 33

a) Factor before deciding anything: 2x2+3x−5=(2x+5)(x−1)2x^2 + 3x - 5 = (2x + 5)(x - 1) and x2−1=(x−1)(x+1)x^2 - 1 = (x - 1)(x + 1). The denominator vanishes at 11 and at −1-1, but only a zero that the numerator does NOT share can give a vertical asymptote. At x=1x = 1 the factor cancels: for x≠±1x \ne \pm 1, f(x)=2x+5x+1f(x) = \frac{2x + 5}{x + 1}, so lim⁡x→1f(x)=72\lim_{x \to 1} f(x) = \frac{7}{2}, a finite limit. The graph has a hole at (1,72)\left(1, \frac{7}{2}\right), the open dot of the figure, and no asymptote there.

At x=−1x = -1 the numerator 2x+52x + 5 tends to 3>03 > 0 and x+1→0x + 1 \to 0. For x→−1+x \to -1^+, x+1>0x + 1 > 0, so f(x)→+∞f(x) \to +\infty; for x→−1−x \to -1^-, x+1<0x + 1 < 0, so f(x)→−∞f(x) \to -\infty. The line x=−1x = -1 is a vertical asymptote. At infinity, divide by x2x^2: f(x)=2+3x−5x21−1x2→2f(x) = \frac{2 + \frac{3}{x} - \frac{5}{x^2}}{1 - \frac{1}{x^2}} \to 2 as x→±∞x \to \pm\infty, so y=2y = 2 is the only horizontal asymptote. Writing f(x)=2+3x+1f(x) = 2 + \frac{3}{x + 1} shows the curve above it for x>−1x > -1 and below it for x<−1x < -1, as drawn.

b) The key fact is x2=∣x∣\sqrt{x^2} = |x|. For x≠0x \ne 0 in the domain, 9x2+x=x2(9+1x)=∣x∣9+1x\sqrt{9x^2 + x} = \sqrt{x^2\left(9 + \frac{1}{x}\right)} = |x|\sqrt{9 + \frac{1}{x}}. As x→∞x \to \infty, ∣x∣=x|x| = x and g(x)=x9+1/xx(1+2/x)=9+1/x1+2/x→3g(x) = \frac{x\sqrt{9 + 1/x}}{x\left(1 + 2/x\right)} = \frac{\sqrt{9 + 1/x}}{1 + 2/x} \to 3. As x→−∞x \to -\infty, ∣x∣=−x|x| = -x, and g(x)=−9+1/x1+2/x→−3g(x) = \frac{-\sqrt{9 + 1/x}}{1 + 2/x} \to -3. Sign check: for large negative xx the numerator is positive and x+2x + 2 is negative, so g<0g < 0. Two horizontal asymptotes: y=3y = 3 on the right and y=−3y = -3 on the left. Writing 9x2+xx=9+1x\frac{\sqrt{9x^2 + x}}{x} = \sqrt{9 + \frac{1}{x}} for negative xx is the error that loses the second one.

c) A form ∞−∞\infty - \infty, which is not a number: multiply and divide by the conjugate. x2+7x−x2+x=(x2+7x)−(x2+x)x2+7x+x2+x=6xx2+7x+x2+x\sqrt{x^2 + 7x} - \sqrt{x^2 + x} = \frac{(x^2 + 7x) - (x^2 + x)}{\sqrt{x^2 + 7x} + \sqrt{x^2 + x}} = \frac{6x}{\sqrt{x^2 + 7x} + \sqrt{x^2 + x}}. For x>0x > 0, divide top and bottom by x=x2x = \sqrt{x^2}: 61+7x+1+1x→61+1=3\frac{6}{\sqrt{1 + \frac{7}{x}} + \sqrt{1 + \frac{1}{x}}} \to \frac{6}{1 + 1} = 3. The answer 00, from x2+7x≈x≈x2+x\sqrt{x^2 + 7x} \approx x \approx \sqrt{x^2 + x}, forgets that the two errors are each of the size of a constant.

Part B: long problems (/58)

Exercise 5: The derivative from its definition, and a limit read backwards

In parts a), b) and d), the derivative must come from its definition as a limit; the differentiation rules may only be used to CHECK an answer. Part c) is independent.

  • a) Let f(x)=1x+3f(x) = \frac{1}{\sqrt{x + 3}}. Find f′(1)f'(1) with the form lim⁡h→0f(1+h)−f(1)h\lim_{h \to 0} \frac{f(1 + h) - f(1)}{h}, then the equation of the tangent line at x=1x = 1.
  • b) Let g(x)=1x2+1g(x) = \frac{1}{x^2 + 1}. Find g′(x)g'(x) by the definition, for every real xx.
  • c) Each limit is a derivative F′(a)F'(a): give FF and aa, then evaluate. (i) lim⁡x→1x10−1x−1\displaystyle\lim_{x \to 1} \frac{x^{10} - 1}{x - 1}; (ii) lim⁡h→0arctan⁡(1+h)−π4h\displaystyle\lim_{h \to 0} \frac{\arctan(1 + h) - \frac{\pi}{4}}{h}.
  • d) Let k(x)=x2k(x) = x^2 for x≤1x \le 1 and k(x)=ax+bk(x) = ax + b for x>1x > 1. Find aa and bb such that kk is differentiable at 11. Why must continuity be imposed first, and what does the graph look like with a=3a = 3, b=−2b = -2?

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

a)
b)
c)
d)
Show the solution

Answers

  • a) f′(1)=−116f'(1) = -\frac{1}{16}; tangent y=12−116(x−1)y = \frac{1}{2} - \frac{1}{16}(x - 1)
  • b) g′(x)=−2x(x2+1)2g'(x) = -\frac{2x}{(x^2 + 1)^2}
  • c) (i) F(x)=x10F(x) = x^{10}, a=1a = 1: 1010; (ii) F=arctan⁡F = \arctan, a=1a = 1: 12\frac{1}{2}
  • d) a+b=1a + b = 1 (continuity) and a=2a = 2 (equal one-sided slopes): a=2a = 2, b=−1b = -1; with a=3a = 3, b=−2b = -2, continuous with a corner

a) f(1)=12f(1) = \frac{1}{2}, so the quotient is 1h(14+h−12)=2−4+h2h4+h\frac{1}{h}\left(\frac{1}{\sqrt{4 + h}} - \frac{1}{2}\right) = \frac{2 - \sqrt{4 + h}}{2h\sqrt{4 + h}} after a common denominator. It is still 00\frac{0}{0}, with a root on top: multiply by the conjugate 2+4+h2 + \sqrt{4 + h}. The numerator becomes 4−(4+h)=−h4 - (4 + h) = -h, and for h≠0h \ne 0 the quotient is −124+h(2+4+h)\frac{-1}{2\sqrt{4 + h}\left(2 + \sqrt{4 + h}\right)}. Letting h→0h \to 0: f′(1)=−12⋅2⋅4=−116f'(1) = \frac{-1}{2 \cdot 2 \cdot 4} = -\frac{1}{16}.

Tangent line: y=12−116(x−1)y = \frac{1}{2} - \frac{1}{16}(x - 1), that is y=−x16+916y = -\frac{x}{16} + \frac{9}{16}. Check with the power rule, allowed as a check only: f(x)=(x+3)−1/2f(x) = (x + 3)^{-1/2} gives −12(x+3)−3/2-\frac{1}{2}(x + 3)^{-3/2}, which is −12⋅18=−116-\frac{1}{2} \cdot \frac{1}{8} = -\frac{1}{16} at x=1x = 1.

b) g(x+h)−g(x)=1(x+h)2+1−1x2+1=x2+1−(x+h)2−1((x+h)2+1)(x2+1)=−2xh−h2((x+h)2+1)(x2+1)g(x + h) - g(x) = \frac{1}{(x + h)^2 + 1} - \frac{1}{x^2 + 1} = \frac{x^2 + 1 - (x + h)^2 - 1}{\left((x + h)^2 + 1\right)(x^2 + 1)} = \frac{-2xh - h^2}{\left((x + h)^2 + 1\right)(x^2 + 1)}. Dividing by h≠0h \ne 0, the factor hh cancels: g(x+h)−g(x)h=−2x−h((x+h)2+1)(x2+1)\frac{g(x + h) - g(x)}{h} = \frac{-2x - h}{\left((x + h)^2 + 1\right)(x^2 + 1)}. With xx fixed and h→0h \to 0, g′(x)=−2x(x2+1)2g'(x) = \frac{-2x}{(x^2 + 1)^2}. The denominator never vanishes, so gg is differentiable at every real xx. Sanity check: gg is even and peaks at x=0x = 0, and indeed g′(0)=0g'(0) = 0 and g′g' is odd.

c) (i) With F(x)=x10F(x) = x^{10} and a=1a = 1, F(1)=1F(1) = 1 is the subtracted constant, so the limit is the second form of F′(1)F'(1), and F′(1)=10⋅19=10F'(1) = 10 \cdot 1^9 = 10. Algebra agrees: x10−1=(x−1)(x9+x8+⋯+x+1)x^{10} - 1 = (x - 1)(x^9 + x^8 + \dots + x + 1), and the ten terms of the second factor each tend to 11.

(ii) With F=arctan⁡F = \arctan and a=1a = 1, F(1)=arctan⁡1=π4F(1) = \arctan 1 = \frac{\pi}{4} is the subtracted constant: the limit is F′(1)F'(1) in the hh form. Since ddxarctan⁡x=11+x2\frac{d}{dx}\arctan x = \frac{1}{1 + x^2}, it equals 12\frac{1}{2}. No algebra could open arctan⁡(1+h)\arctan(1 + h); recognizing the derivative is the only way.

d) Continuity at 11 comes first, because a function that is differentiable at a point is continuous there. The left value is k(1)=1k(1) = 1 and the right limit is a+ba + b, so a+b=1a + b = 1. If this fails, the right quotient a(1+h)+b−1h=(a+b−1)+ahh\frac{a(1 + h) + b - 1}{h} = \frac{(a + b - 1) + ah}{h} tends to ±∞\pm\infty and no slope exists. With a+b=1a + b = 1, the right quotient is exactly ahh=a\frac{ah}{h} = a, and the left quotient is (1+h)2−1h=2+h→2\frac{(1 + h)^2 - 1}{h} = 2 + h \to 2. The two one-sided derivatives are equal when a=2a = 2, so a=2a = 2 and b=−1b = -1: the line y=2x−1y = 2x - 1 is the tangent to the parabola at (1,1)(1, 1), and the two pieces join smoothly.

With a=3a = 3 and b=−2b = -2, still a+b=1a + b = 1: kk is continuous at 11, but the one-sided slopes are 22 and 33. The graph has a corner at (1,1)(1, 1) and kk is not differentiable there. Continuity is necessary, not sufficient.

Exercise 6: Power, product and quotient rules, and trigonometric derivatives, without the chain rule

No chain rule in this question. Before each derivative, name the rule and the two functions it combines. The figure belongs to part d): it shows g(x)=sin⁡x (1+cos⁡x)g(x) = \sin x\,(1 + \cos x) on [0,2π][0, 2\pi], with its three horizontal tangents dashed.

123456-1.5-1-0.50.511.5y = g(x)
  • a) Let y=(x+1)2xxy = \frac{(x + 1)^2}{x\sqrt x} for x>0x > 0. Rewrite yy as a sum of powers of xx, differentiate, write y′y' as a single factored fraction, and give y′(1)y'(1) and the point where the tangent is horizontal.
  • b) Let y=xexx+1y = \frac{xe^x}{x + 1} for x≠−1x \ne -1. Show that y′=ex(x2+x+1)(x+1)2y' = \frac{e^x(x^2 + x + 1)}{(x + 1)^2}, and deduce that the graph has no horizontal tangent.
  • c) Let f(x)=cos⁡x1+sin⁡xf(x) = \frac{\cos x}{1 + \sin x}. Show that f′(x)=−11+sin⁡xf'(x) = -\frac{1}{1 + \sin x}, then find the tangent line at x=π6x = \frac{\pi}{6}.
  • d) Find the exact points of the graph of g(x)=sin⁡x (1+cos⁡x)g(x) = \sin x\,(1 + \cos x), 0≤x≤2π0 \le x \le 2\pi, where the tangent is horizontal. The product rule and sin⁡2x=1−cos⁡2x\sin^2 x = 1 - \cos^2 x suffice.

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

a)
b)
c)
d)
Show the solution

Answers

  • a) y′=(x−3)(x+1)2x5/2y' = \frac{(x - 3)(x + 1)}{2x^{5/2}}; y′(1)=−2y'(1) = -2; horizontal tangent at (3,1633)\left(3, \frac{16}{3\sqrt 3}\right)
  • b) x2+x+1=(x+12)2+34>0x^2 + x + 1 = \left(x + \frac{1}{2}\right)^2 + \frac{3}{4} > 0 and ex>0e^x > 0: y′y' is never 00
  • c) f(π6)=33f\left(\frac{\pi}{6}\right) = \frac{\sqrt 3}{3}, f′(π6)=−23f'\left(\frac{\pi}{6}\right) = -\frac{2}{3}: y=33−23(x−π6)y = \frac{\sqrt 3}{3} - \frac{2}{3}\left(x - \frac{\pi}{6}\right)
  • d) g′(x)=(2cos⁡x−1)(cos⁡x+1)g'(x) = (2\cos x - 1)(\cos x + 1): (π3,334)\left(\frac{\pi}{3}, \frac{3\sqrt 3}{4}\right), (π,0)(\pi, 0), (5π3,−334)\left(\frac{5\pi}{3}, -\frac{3\sqrt 3}{4}\right)

a) Expand and divide term by term, with xx=x3/2x\sqrt x = x^{3/2}: y=x2+2x+1x3/2=x1/2+2x−1/2+x−3/2y = \frac{x^2 + 2x + 1}{x^{3/2}} = x^{1/2} + 2x^{-1/2} + x^{-3/2}. Power rule, term by term: y′=12x−1/2−x−3/2−32x−5/2y' = \frac{1}{2}x^{-1/2} - x^{-3/2} - \frac{3}{2}x^{-5/2}. Over the common denominator 2x5/22x^{5/2}: y′=x2−2x−32x5/2=(x−3)(x+1)2x5/2y' = \frac{x^2 - 2x - 3}{2x^{5/2}} = \frac{(x - 3)(x + 1)}{2x^{5/2}}. Then y′(1)=(−2)(2)2=−2y'(1) = \frac{(-2)(2)}{2} = -2. For x>0x > 0 the factors x+1x + 1 and x5/2x^{5/2} are positive, so y′=0y' = 0 only at x=3x = 3, where y=1633=1639y = \frac{16}{3\sqrt 3} = \frac{16\sqrt 3}{9}.

b) Quotient rule with top u=xexu = xe^x and bottom v=x+1v = x + 1; the top itself needs the product rule, u′=ex+xex=ex(x+1)u' = e^x + xe^x = e^x(x + 1). Then y′=ex(x+1)(x+1)−xex⋅1(x+1)2=ex(x2+2x+1−x)(x+1)2=ex(x2+x+1)(x+1)2y' = \frac{e^x(x + 1)(x + 1) - xe^x \cdot 1}{(x + 1)^2} = \frac{e^x\left(x^2 + 2x + 1 - x\right)}{(x + 1)^2} = \frac{e^x(x^2 + x + 1)}{(x + 1)^2}. A horizontal tangent needs y′=0y' = 0, so a zero of the numerator. But ex>0e^x > 0, and x2+x+1=(x+12)2+34≥34x^2 + x + 1 = \left(x + \frac{1}{2}\right)^2 + \frac{3}{4} \ge \frac{3}{4} (its discriminant is −3<0-3 < 0). The numerator never vanishes: no horizontal tangent.

c) Quotient rule with u=cos⁡xu = \cos x, u′=−sin⁡xu' = -\sin x, v=1+sin⁡xv = 1 + \sin x, v′=cos⁡xv' = \cos x: f′(x)=−sin⁡x(1+sin⁡x)−cos⁡x⋅cos⁡x(1+sin⁡x)2=−sin⁡x−(sin⁡2x+cos⁡2x)(1+sin⁡x)2=−(1+sin⁡x)(1+sin⁡x)2=−11+sin⁡xf'(x) = \frac{-\sin x(1 + \sin x) - \cos x \cdot \cos x}{(1 + \sin x)^2} = \frac{-\sin x - (\sin^2 x + \cos^2 x)}{(1 + \sin x)^2} = \frac{-(1 + \sin x)}{(1 + \sin x)^2} = -\frac{1}{1 + \sin x}, where sin⁡x≠−1\sin x \ne -1. The identity sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1 is what collapses the numerator; the exam expects the short form.

At π6\frac{\pi}{6}: sin⁡π6=12\sin\frac{\pi}{6} = \frac{1}{2} and cos⁡π6=32\cos\frac{\pi}{6} = \frac{\sqrt 3}{2}, so f(π6)=3/23/2=33f\left(\frac{\pi}{6}\right) = \frac{\sqrt 3/2}{3/2} = \frac{\sqrt 3}{3} and f′(π6)=−13/2=−23f'\left(\frac{\pi}{6}\right) = -\frac{1}{3/2} = -\frac{2}{3}. The tangent line is y=33−23(x−π6)y = \frac{\sqrt 3}{3} - \frac{2}{3}\left(x - \frac{\pi}{6}\right), with π\pi kept as π\pi.

d) Product rule with u=sin⁡xu = \sin x and v=1+cos⁡xv = 1 + \cos x: g′(x)=cos⁡x(1+cos⁡x)+sin⁡x(−sin⁡x)=cos⁡x+cos⁡2x−sin⁡2xg'(x) = \cos x(1 + \cos x) + \sin x(-\sin x) = \cos x + \cos^2 x - \sin^2 x. Replace sin⁡2x\sin^2 x by 1−cos⁡2x1 - \cos^2 x: g′(x)=2cos⁡2x+cos⁡x−1g'(x) = 2\cos^2 x + \cos x - 1, a quadratic in c=cos⁡xc = \cos x that factors as (2c−1)(c+1)(2c - 1)(c + 1). So g′(x)=(2cos⁡x−1)(cos⁡x+1)g'(x) = (2\cos x - 1)(\cos x + 1), and each factor is set to 00. First, cos⁡x=12\cos x = \frac{1}{2}: x=π3x = \frac{\pi}{3} or x=5π3x = \frac{5\pi}{3}. Second, cos⁡x=−1\cos x = -1: x=πx = \pi.

The points: g(π3)=32⋅32=334g\left(\frac{\pi}{3}\right) = \frac{\sqrt 3}{2} \cdot \frac{3}{2} = \frac{3\sqrt 3}{4}, g(π)=0g(\pi) = 0, g(5π3)=−32⋅32=−334g\left(\frac{5\pi}{3}\right) = -\frac{\sqrt 3}{2} \cdot \frac{3}{2} = -\frac{3\sqrt 3}{4}. The figure shows the three, and the one at π\pi deserves a look: the tangent is horizontal, yet the curve does not turn there, it keeps going down through the axis. A horizontal tangent is not the same thing as a peak or a valley. A student who expands gg carelessly, or who drops the factor cos⁡x+1\cos x + 1, loses exactly that point.

Exercise 7: The chain rule: three layers, another base, and a curve under a root

Before each derivative, name the inner function (let u=…u = \dots). Parts c) and d) use f(x)=x8−x2f(x) = x\sqrt{8 - x^2} for −22≤x≤22-2\sqrt 2 \le x \le 2\sqrt 2, whose graph is the figure, with three tangent lines dashed.

-3-2-1123-5-4-3-2-112345y = f(x)
  • a) Let y=cos⁡3(πx)y = \cos^3\left(\frac{\pi}{x}\right). List its three layers, differentiate, and compute y′(3)y'(3) exactly.
  • b) Find the tangent line to y=2cos⁡xy = 2^{\cos x} at x=π2x = \frac{\pi}{2}.
  • c) Show that f′(x)=8−2x28−x2f'(x) = \frac{8 - 2x^2}{\sqrt{8 - x^2}} for ∣x∣<22|x| < 2\sqrt 2. Find the points where the tangent is horizontal, the tangent line at the origin, and what happens to f′(x)f'(x) as x→(22)−x \to (2\sqrt 2)^-.
  • d) Show that f′′(x)=2x(x2−12)(8−x2)3/2f''(x) = \frac{2x(x^2 - 12)}{(8 - x^2)^{3/2}}, and compute f′′(2)f''(2).

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

a)
b)
c)
d)
Show the solution

Answers

  • a) y′=3πx2sin⁡(πx)cos⁡2(πx)y' = \frac{3\pi}{x^2}\sin\left(\frac{\pi}{x}\right)\cos^2\left(\frac{\pi}{x}\right); y′(3)=π324y'(3) = \frac{\pi\sqrt 3}{24}
  • b) y=1−(ln⁡2)(x−π2)y = 1 - (\ln 2)\left(x - \frac{\pi}{2}\right)
  • c) Horizontal at (2,4)(2, 4) and (−2,−4)(-2, -4); tangent at 00: y=22 xy = 2\sqrt 2\,x; f′(x)→−∞f'(x) \to -\infty, a vertical tangent at (22,0)(2\sqrt 2, 0)
  • d) f′′(2)=−4f''(2) = -4

a) From the outside in: the cube u3u^3, then cos⁡\cos, then πx=πx−1\frac{\pi}{x} = \pi x^{-1}. One factor per layer, each outer derivative keeping its inside untouched: y′=3cos⁡2(πx)⋅(−sin⁡(πx))⋅(−πx2)=3πx2sin⁡(πx)cos⁡2(πx)y' = 3\cos^2\left(\frac{\pi}{x}\right) \cdot \left(-\sin\left(\frac{\pi}{x}\right)\right) \cdot \left(-\frac{\pi}{x^2}\right) = \frac{3\pi}{x^2}\sin\left(\frac{\pi}{x}\right)\cos^2\left(\frac{\pi}{x}\right). Three layers, three factors, and the two minus signs cancel. At x=3x = 3: sin⁡π3=32\sin\frac{\pi}{3} = \frac{\sqrt 3}{2} and cos⁡2π3=14\cos^2\frac{\pi}{3} = \frac{1}{4}, so y′(3)=3π9⋅32⋅14=π324y'(3) = \frac{3\pi}{9} \cdot \frac{\sqrt 3}{2} \cdot \frac{1}{4} = \frac{\pi\sqrt 3}{24}.

b) Write 2cos⁡x=e(cos⁡x)ln⁡22^{\cos x} = e^{(\cos x)\ln 2}, where ln⁡2\ln 2 is a constant. Inner function u=(cos⁡x)ln⁡2u = (\cos x)\ln 2, u′=−(ln⁡2)sin⁡xu' = -(\ln 2)\sin x, so y′=2cos⁡x⋅(−ln⁡2)sin⁡xy' = 2^{\cos x} \cdot (-\ln 2)\sin x. At x=π2x = \frac{\pi}{2}: y=20=1y = 2^0 = 1 and y′=1⋅(−ln⁡2)⋅1=−ln⁡2y' = 1 \cdot (-\ln 2) \cdot 1 = -\ln 2. The tangent line is y=1−(ln⁡2)(x−π2)y = 1 - (\ln 2)\left(x - \frac{\pi}{2}\right). The answer cos⁡x⋅2cos⁡x−1\cos x \cdot 2^{\cos x - 1} treats the variable exponent as a power rule, and gives 00 at π2\frac{\pi}{2}: a horizontal tangent the curve does not have.

c) Product rule, with the chain rule inside the second factor: ddx8−x2=128−x2⋅(−2x)=−x8−x2\frac{d}{dx}\sqrt{8 - x^2} = \frac{1}{2\sqrt{8 - x^2}} \cdot (-2x) = -\frac{x}{\sqrt{8 - x^2}} (inner function u=8−x2u = 8 - x^2). So f′(x)=8−x2−x28−x2=(8−x2)−x28−x2=8−2x28−x2f'(x) = \sqrt{8 - x^2} - \frac{x^2}{\sqrt{8 - x^2}} = \frac{(8 - x^2) - x^2}{\sqrt{8 - x^2}} = \frac{8 - 2x^2}{\sqrt{8 - x^2}}, valid where 8−x2>08 - x^2 > 0, that is ∣x∣<22|x| < 2\sqrt 2.

Horizontal tangent: 8−2x2=08 - 2x^2 = 0, so x=±2x = \pm 2, with f(2)=24=4f(2) = 2\sqrt 4 = 4 and f(−2)=−4f(-2) = -4: the points (2,4)(2, 4) and (−2,−4)(-2, -4), as the figure shows (ff is odd). At the origin, f(0)=0f(0) = 0 and f′(0)=88=22f'(0) = \frac{8}{\sqrt 8} = 2\sqrt 2: the tangent is y=22 xy = 2\sqrt 2\,x. As x→(22)−x \to (2\sqrt 2)^-, the numerator tends to 8−16=−88 - 16 = -8 and the denominator to 0+0^+, so f′(x)→−∞f'(x) \to -\infty: the curve arrives at (22,0)(2\sqrt 2, 0) with a vertical tangent, and by symmetry the same happens at (−22,0)(-2\sqrt 2, 0).

d) Quotient rule on f′=8−2x2(8−x2)1/2f' = \frac{8 - 2x^2}{(8 - x^2)^{1/2}} is possible, but the product form (8−2x2)(8−x2)−1/2(8 - 2x^2)(8 - x^2)^{-1/2} is shorter. Product rule, then the chain rule on the second factor: f′′(x)=−4x(8−x2)−1/2+(8−2x2)⋅(−12)(8−x2)−3/2⋅(−2x)=−4x(8−x2)−1/2+x(8−2x2)(8−x2)−3/2f''(x) = -4x(8 - x^2)^{-1/2} + (8 - 2x^2) \cdot \left(-\frac{1}{2}\right)(8 - x^2)^{-3/2} \cdot (-2x) = -4x(8 - x^2)^{-1/2} + x(8 - 2x^2)(8 - x^2)^{-3/2}.

Factor out x(8−x2)−3/2x(8 - x^2)^{-3/2}: f′′(x)=x[−4(8−x2)+8−2x2](8−x2)3/2=x(2x2−24)(8−x2)3/2=2x(x2−12)(8−x2)3/2f''(x) = \frac{x\left[-4(8 - x^2) + 8 - 2x^2\right]}{(8 - x^2)^{3/2}} = \frac{x(2x^2 - 24)}{(8 - x^2)^{3/2}} = \frac{2x(x^2 - 12)}{(8 - x^2)^{3/2}}. At x=2x = 2: 4⋅(−8)43/2=−328=−4\frac{4 \cdot (-8)}{4^{3/2}} = \frac{-32}{8} = -4.

Exercise 8: Implicit differentiation on a cissoid, an inverse without its formula, and an inverse sine with a corner

The curve CC of equation y2(2−x)=x3y^2(2 - x) = x^3 is the cissoid of Diocles. The figure shows CC, the dashed line x=2x = 2, the points P(1,1)P(1, 1) and Q(1,−1)Q(1, -1), and the tangent at PP. Parts d) and e) are independent of the curve.

-0.50.511.522.5-5-4-3-2-112345PQx = 2C
  • a) Check that PP and QQ lie on CC. Find dydx\frac{dy}{dx} by implicit differentiation, then the tangent lines at PP and at QQ.
  • b) Find d2ydx2\frac{d^2y}{dx^2} at PP.
  • c) Show that CC has no point with a horizontal tangent and no point with a vertical tangent, except possibly the origin. What does the formula of a) say at the origin? Describe the curve there, and near the line x=2x = 2.
  • d) Let g(x)=x3+exg(x) = x^3 + e^x. Explain why gg is one-to-one without any derivative test, compute g(0)g(0), and find (g−1)′(1)(g^{-1})'(1) and the tangent line to y=g−1(x)y = g^{-1}(x) at (1,0)(1, 0).
  • e) Let y=arcsin⁡(1−x2)y = \arcsin(1 - x^2) for −2≤x≤2-\sqrt 2 \le x \le \sqrt 2. Find y′y' for 0<∣x∣<20 < |x| < \sqrt 2, simplifying the root correctly, and give the slopes at x=1x = 1 and x=−1x = -1. What does the formula give as x→0+x \to 0^+ and as x→0−x \to 0^-?

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

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

Answers

  • a) dydx=3x2+y22y(2−x)\frac{dy}{dx} = \frac{3x^2 + y^2}{2y(2 - x)}; at PP: y=2x−1y = 2x - 1; at QQ: y=−2x+1y = -2x + 1
  • b) y′′(P)=3y''(P) = 3
  • c) Both conditions force x=y=0x = y = 0, where the formula reads 00\frac{0}{0}; a cusp tangent to the xx-axis; vertical asymptote x=2x = 2
  • d) g(0)=1g(0) = 1, (g−1)′(1)=1g′(0)=1(g^{-1})'(1) = \frac{1}{g'(0)} = 1; tangent y=x−1y = x - 1
  • e) y′=−2x∣x∣2−x2y' = -\frac{2x}{|x|\sqrt{2 - x^2}}: slopes −2-2 at x=1x = 1 and 22 at x=−1x = -1; ∓2\mp\sqrt 2 as x→0±x \to 0^\pm, a corner at (0,π2)\left(0, \frac{\pi}{2}\right)

a) At PP: 12(2−1)=1=131^2(2 - 1) = 1 = 1^3; at QQ: (−1)2(2−1)=1(-1)^2(2 - 1) = 1. Both lie on CC. Differentiate both sides with respect to xx, yy being a function of xx: the left side is a product, and y2y^2 leaves the chain factor 2yy′2yy'. So 2yy′(2−x)+y2⋅(−1)=3x22yy'(2 - x) + y^2 \cdot (-1) = 3x^2, hence y′=3x2+y22y(2−x)y' = \frac{3x^2 + y^2}{2y(2 - x)} wherever y≠0y \ne 0 and x≠2x \ne 2. At PP: y′=3+12⋅1⋅1=2y' = \frac{3 + 1}{2 \cdot 1 \cdot 1} = 2, and the tangent is y=1+2(x−1)=2x−1y = 1 + 2(x - 1) = 2x - 1. At QQ: y′=4−2=−2y' = \frac{4}{-2} = -2, and the tangent is y=−2x+1y = -2x + 1. The curve is symmetric in the xx-axis (yy appears only squared), and the two tangents are mirror images, as they must be.

b) Differentiate the relation 2yy′(2−x)−y2−3x2=02yy'(2 - x) - y^2 - 3x^2 = 0 once more, yy and y′y' being functions of xx. The first term is a product of three factors: 2y′2(2−x)+2yy′′(2−x)−2yy′−2yy′−6x=02y'^2(2 - x) + 2yy''(2 - x) - 2yy' - 2yy' - 6x = 0. At PP, x=y=1x = y = 1 and y′=2y' = 2: 2⋅4⋅1+2y′′−4−4−6=02 \cdot 4 \cdot 1 + 2y'' - 4 - 4 - 6 = 0, so 2y′′=62y'' = 6 and y′′=3y'' = 3. Substituting the numbers BEFORE isolating y′′y'' saves a page of algebra. A student who differentiates y′=3x2+y22y(2−x)y' = \frac{3x^2 + y^2}{2y(2 - x)} treating yy as a constant forgets the new factors y′y' and gets a wrong value.

c) A horizontal tangent needs the numerator 3x2+y2=03x^2 + y^2 = 0, which forces x=0x = 0 and y=0y = 0. A vertical tangent needs the denominator 2y(2−x)=02y(2 - x) = 0 with the numerator not zero: x=2x = 2 is not on CC (it would give 0=80 = 8), and y=0y = 0 on CC gives x3=0x^3 = 0, so x=0x = 0. Both searches end at the origin only, and there the formula reads 00\frac{0}{0}, which decides nothing.

Near the origin, solve for yy: y2=x32−xy^2 = \frac{x^3}{2 - x} requires 0≤x<20 \le x < 2, and gives two branches y=±xx2−xy = \pm x\sqrt{\frac{x}{2 - x}}. The slope of the chord from the origin is yx=±x2−x→0\frac{y}{x} = \pm\sqrt{\frac{x}{2 - x}} \to 0 as x→0+x \to 0^+: both branches leave the origin tangent to the xx-axis, one above and one below. The curve has a cusp there, pointing left. Near x=2x = 2: as x→2−x \to 2^-, y2=x32−x→+∞y^2 = \frac{x^3}{2 - x} \to +\infty, so the upper branch tends to +∞+\infty and the lower one to −∞-\infty: the line x=2x = 2 is a vertical asymptote, the dashed line of the figure.

d) x3x^3 and exe^x are both increasing, so their sum is increasing: a<ba < b gives a3<b3a^3 < b^3 and ea<ebe^a < e^b, hence g(a)<g(b)g(a) < g(b). An increasing function is one-to-one. g(0)=0+1=1g(0) = 0 + 1 = 1, so g−1(1)=0g^{-1}(1) = 0. With g′(x)=3x2+exg'(x) = 3x^2 + e^x, g′(0)=1≠0g'(0) = 1 \ne 0, and (g−1)′(1)=1g′(g−1(1))=1g′(0)=1(g^{-1})'(1) = \frac{1}{g'(g^{-1}(1))} = \frac{1}{g'(0)} = 1. The tangent to y=g−1(x)y = g^{-1}(x) at (1,0)(1, 0) is y=x−1y = x - 1. The trap is to write 1g′(1)=13+e\frac{1}{g'(1)} = \frac{1}{3 + e}: the derivative of gg is read at the point 00 where gg takes the value 11, never at 11. No formula for g−1g^{-1} exists in elementary terms, and none was needed.

e) Chain rule with inner function u=1−x2u = 1 - x^2, u′=−2xu' = -2x, and dduarcsin⁡u=11−u2\frac{d}{du}\arcsin u = \frac{1}{\sqrt{1 - u^2}} for ∣u∣<1|u| < 1, that is 0<∣x∣<20 < |x| < \sqrt 2. Then 1−u2=1−(1−x2)2=2x2−x4=x2(2−x2)1 - u^2 = 1 - (1 - x^2)^2 = 2x^2 - x^4 = x^2(2 - x^2), and x2(2−x2)=∣x∣2−x2\sqrt{x^2(2 - x^2)} = |x|\sqrt{2 - x^2}, NOT x2−x2x\sqrt{2 - x^2}. So y′=−2x∣x∣2−x2y' = \frac{-2x}{|x|\sqrt{2 - x^2}}: for x>0x > 0, y′=−22−x2y' = -\frac{2}{\sqrt{2 - x^2}}, and for x<0x < 0, y′=22−x2y' = \frac{2}{\sqrt{2 - x^2}}. The slopes are −2-2 at x=1x = 1 and 22 at x=−1x = -1, consistent with yy being even.

As x→0+x \to 0^+ the formula tends to −22=−2-\frac{2}{\sqrt 2} = -\sqrt 2, and as x→0−x \to 0^- to 2\sqrt 2. At x=0x = 0, u=1u = 1 and the derivative of arcsin⁡\arcsin does not exist, so the formula says nothing at 00 itself; the two different limits suggest a corner at the top point (0,π2)\left(0, \frac{\pi}{2}\right), where the graph comes up with slope 2\sqrt 2 and leaves with slope −2-\sqrt 2. Writing x2=x\sqrt{x^2} = x would give −22−x2-\frac{2}{\sqrt{2 - x^2}} everywhere, a negative slope at x=−1x = -1 where the curve is rising.

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

See also

Preparing for the MATH 140 midterm?

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