Differentiation — Diagnostic Tests
Unit Tests
Tests edge cases, boundary conditions, and common misconceptions for differentiation.
UT-1: Implicit Differentiation — Second Derivative Trap
Question:
A curve is defined implicitly by x2+xy+y2=7.
(a) Find dxdy in terms of x and y.
(b) Find dx2d2y in terms of x and y.
(c) A student computes dx2d2y by implicitly differentiating the original equation twice and gets a different answer from part (b). Explain why the student's answer could be correct but in a different form, and show they are equivalent.
[Difficulty: hard. Tests second derivative via implicit differentiation and the subtlety of substituting dxdy back.]
Solution:
(a) Differentiate implicitly with respect to x:
2x+y+xdxdy+2ydxdy=0
(x+2y)dxdy=−(2x+y)
dxdy=−x+2y2x+y
(b) Differentiate dxdy with respect to x using the quotient rule:
dx2d2y=−(x+2y)2(x+2y)(2+dxdy)−(2x+y)(1+2dxdy)
Expand the numerator:
=−(x+2y)2(x+2y)(2+dxdy)−(2x+y)(1+2dxdy)
Substitute dxdy=−x+2y2x+y:
=−(x+2y)2(x+2y)(2−x+2y2x+y)−(2x+y)(1−x+2y2(2x+y))
=−(x+2y)2(x+2y)⋅x+2y2(x+2y)−(2x+y)−(2x+y)⋅x+2y(x+2y)−2(2x+y)
Numerator of the inner fractions:
2(x+2y)−(2x+y)=2x+4y−2x−y=3y
(x+2y)−2(2x+y)=x+2y−4x−2y=−3x
So:
dx2d2y=−(x+2y)23y−(2x+y)(x+2y−3x)=−(x+2y)23y+x+2y3x(2x+y)
=−(x+2y)33y(x+2y)+3x(2x+y)=−(x+2y)33xy+6y2+6x2+3xy
=−(x+2y)36x2+6xy+6y2=−(x+2y)36(x2+xy+y2)=−(x+2y)342
(c) The student's approach of differentiating the original equation twice is valid. Starting from:
2x+y+xdxdy+2ydxdy=0
Differentiate again:
2+dxdy+dxdy+xdx2d2y+2(dxdy)2+2ydx2d2y=0
2+2dxdy+2(dxdy)2+(x+2y)dx2d2y=0
Solving for dx2d2y:
dx2d2y=−x+2y2+2dxdy+2(dxdy)2
This is equivalent to the result in (b) after substituting dxdy=−x+2y2x+y and simplifying. Both forms are correct; they just express the answer differently.
UT-2: L'Hopital's Rule — When It Does Not Apply
Question:
(a) Evaluate x→0limx3ex−1−x−2x2.
(b) A student claims L'Hopital's rule applies to x→∞limxx+sinx. Apply L'Hopital's rule and explain why the result is misleading.
[Difficulty: hard. Tests repeated L'Hopital application and recognition of when L'Hopital gives an indeterminate loop.]
Solution:
(a) Direct substitution gives 00.
First application:
limx→03x2ex−1−x
Still 00:
limx→06xex−1
Still 00:
limx→06ex=61
(b) Direct substitution of x→∞ gives ∞∞, so L'Hopital technically applies.
limx→∞11+cosx=limx→∞(1+cosx)
This limit does not exist because cosx oscillates between −1 and 1. The result is misleading because the original limit does exist:
xx+sinx=1+xsinx
Since ∣sinx∣≤1 and x→∞, we have xsinx→0 by the squeeze theorem.
So x→∞limxx+sinx=1.
L'Hopital's rule fails here because the condition "the limit of g′(x)f′(x) must exist (or be ±∞)" is not satisfied. This is a case where L'Hopital gives an inconclusive result, not because the original limit is indeterminate.
UT-3: Product Rule — Order of Operations
Question:
Let f(x)=x2e3xsinx.
(a) Find f′(x).
(b) A student writes f′(x)=2x⋅3e3x⋅cosx and claims they applied the product rule correctly to all three functions. Explain the error.
[Difficulty: hard. Tests correct application of the product rule to a product of three functions.]
Solution:
(a) Treat f(x)=u⋅v⋅w where u=x2, v=e3x, w=sinx.
Using the product rule for three functions:
(uvw)′=u′vw+uv′w+uvw′
u′=2x,v′=3e3x,w′=cosx
f′(x)=2x⋅e3x⋅sinx+x2⋅3e3x⋅sinx+x2⋅e3x⋅cosx
=e3xsinx(2x+3x2)+x2e3xcosx
=e3x[(2x+3x2)sinx+x2cosx]
(b) The student's error is that they differentiated each factor independently and multiplied the results: f′(x)=u′⋅v′⋅w′. The derivative of a product is not the product of the derivatives. The correct rule is (uvw)′=u′vw+uv′w+uvw′ — each term differentiates exactly one factor while keeping the others unchanged.
Integration Tests
Tests synthesis of differentiation with other topics.
IT-1: Differentiation with Logarithms (with Algebra)
Question:
Let f(x)=xx for x>0.
(a) Find f′(x) using logarithmic differentiation.
(b) Find the x-coordinate of the stationary point of f and determine its nature.
(c) Show that the stationary point is a local minimum by considering f(x)=exlnx.
[Difficulty: hard. Combines logarithmic differentiation with logarithm laws and the chain rule.]
Solution:
(a) Let y=xx. Take natural logarithms:
lny=xlnx
Differentiate implicitly with respect to x:
y1dxdy=lnx+x⋅x1=lnx+1
dxdy=y(lnx+1)=xx(1+lnx)
(b) Stationary points: f′(x)=0⟹xx(1+lnx)=0.
Since xx>0 for all x>0, we need 1+lnx=0⟹lnx=−1⟹x=e−1=e1.
To determine the nature: for 0<x<e1, lnx<−1 so 1+lnx<0 (decreasing). For x>e1, 1+lnx>0 (increasing).
So x=e1 is a local minimum.
(c) f(x)=exlnx. Then:
f′(x)=exlnx⋅(lnx+1)=xx(1+lnx)
For the second derivative:
f′′(x)=dxd[xx(1+lnx)]
=xx(1+lnx)2+xx⋅x1=xx[(1+lnx)2+x1]
At x=e1:
f′′(e1)=(e1)1/e[0+e]=e⋅e−1/e=e1−1/e>0
Since f′′(e1)>0, the stationary point is confirmed as a local minimum by the second derivative test.