CalcPath
ProgressProblem setsFeedback
← Question sheet

Calculus · Solutions

Derivatives

12 questions · about 102 minutes

Work this sheet on paper and show every step: the route is what is being tested, and the solutions are written so you can check your method rather than just your final expression. Name each rule as you use it (“by the product rule”, “by the chain rule with inner function u=…”, “by the inverse function theorem”) and, where a rule has a hypothesis such as differentiability or a nonzero denominator, say why it holds. No calculator is needed anywhere and every answer should be exact. Full worked solutions are on a separate page; each question also has its own reveal, so you can check one answer without seeing the rest.

  1. 1.Computation

    Work directly from the definition of the derivative. No differentiation rules may be used, except as a final check. In each part say at which step you divide by the increment and why that is legitimate.

    1. (a)Using the x→a form of the definition, find f′(1) for f(x)=x21​.
    2. (b)Using the h-form, find f′(x) for f(x)=2x+3​. State the domain of f and the domain of f′, and explain the difference.

    Solution

    (a) Combine, factor, cancel. With a=1 and f(1)=1,

    f′(1)=x→1lim​x−1x21​−1​.

    Put the numerator over a common denominator: x21​−1=x21−x2​=−x2(x−1)(x+1)​. For x=1 the factor x−1 cancels against the denominator, and a limit never inspects x=1 itself, so the cancellation is legitimate:

    x−1f(x)−f(1)​=−x2x+1​(x=1).

    The right side is continuous at 1, so substitute: f′(1)=−12​=−2.

    Check: the power rule gives f′(x)=−2x−3, and f′(1)=−2. The sign is right, since 1/x2 is decreasing for x>0.

    (b) Rationalise. The difference quotient is

    h2x+2h+3​−2x+3​​,

    of the form 00​ as h→0. Multiply above and below by the conjugate 2x+2h+3​+2x+3​. The numerator becomes (2x+2h+3)−(2x+3)=2h, so for h=0 (which is all the limit ever looks at) the quotient equals

    h(2x+2h+3​+2x+3​)2h​=2x+2h+3​+2x+3​2​.

    Let h→0: the denominator tends to 22x+3​, so

    f′(x)=22x+3​2​=2x+3​1​.

    Check: the chain rule gives 22x+3​1​⋅2, the same thing.

    Domains. f is defined where 2x+3≥0, that is on [−23​,∞). The formula for f′ needs 2x+3>0, so the domain of f′ is (−23​,∞). At the endpoint x=−23​ the function is only defined to the right, and even the one-sided quotient fails: f(−23​+h)/h=2h​/h=2/h​→+∞. The graph starts there with a vertical tangent, and a vertical line has no slope. This is the general pattern: the domain of f′ can be strictly smaller than the domain of f.

  2. 2.Computation

    Every decision below must be made from one-sided difference quotients at the point in question, not from a picture.

    1. (a)Let g(x)=x∣x∣. Compute g−′​(0) and g+′​(0), and decide whether g′(0) exists.
    2. (b)Write down g′(x) for every real x as a single formula. Is g′ continuous at 0? Is g′ differentiable at 0? Justify both answers.
    3. (c)Let p(x)=∣x∣​. Show that p is continuous at 0, and decide whether its failure to be differentiable there is a corner, a vertical tangent or a cusp.

    Solution

    (a) g(0)=0. For h>0, ∣h∣=h and g(h)=h2, so the quotient is hh2−0​=h→0; hence g+′​(0)=0. For h<0, ∣h∣=−h and g(h)=−h2, so the quotient is h−h2​=−h→0; hence g−′​(0)=0. The one-sided derivatives exist and agree, so g′(0) exists and equals 0. The absolute value did not produce a corner here, because the factor x flattens both branches at the origin.

    (b) For x>0, g(x)=x2 and g′(x)=2x. For x<0, g(x)=−x2 and g′(x)=−2x. Together with g′(0)=0 this is

    g′(x)=2∣x∣for all x.

    Continuity of g′ at 0: 2∣x∣→0=g′(0) as x→0, so yes.

    Differentiability of g′ at 0: the difference quotient of g′ is

    hg′(h)−g′(0)​=h2∣h∣​={2,−2,​h>0,h<0,​

    so the one-sided derivatives of g′ at 0 are 2 and −2. They differ, so g′′(0) does not exist: the graph of g′=2∣x∣ has a corner at the origin. Summary: g is differentiable everywhere, but it is not twice differentiable at 0. Being differentiable once does not make a function smooth.

    (c) Continuity: ∣p(x)−p(0)∣=∣x∣​→0 as x→0, so p is continuous at 0.

    The quotients: p(0)=0, so the difference quotient is h∣h∣​​. For h>0 this is hh​​=h​1​→+∞. For h<0, write h=−∣h∣: the quotient is −∣h∣∣h∣​​=−∣h∣​1​→−∞.

    The two one-sided quotients tend to infinity with opposite signs. That is the signature of a cusp, on the model of x2/3: the graph comes to a sharp point at the origin with a vertical tangent direction on each side. It is not a corner (those have finite, unequal one-sided slopes) and not a vertical tangent (those have infinite one-sided quotients of the same sign, like 3x​).

  3. 3.Computation

    Only the constant, constant-multiple, sum and power rules are needed in this question. Do not use the quotient rule anywhere.

    1. (a)Differentiate y=x22x3−5x+4x​​ for x>0, and write the answer without negative or fractional exponents.
    2. (b)Find every point on the curve y=x4−2x2 at which the tangent line is horizontal.
    3. (c)The point (1,−2) is not on the parabola y=x2+1. Find both tangent lines to the parabola that pass through (1,−2).

    Solution

    (a) Simplify first. Divide each term by x2 and write everything as a power:

    y=2x−5x−1+4x1/2−2=2x−5x−1+4x−3/2.

    Now the sum and power rules apply term by term:

    y′=2+5x−2+4⋅(−23​)x−5/2=2+x25​−x2x​6​.

    Sign check on the middle term: −5x−1=−5/x is increasing for x>0, so its derivative +5/x2 should be positive, and it is.

    (b) Horizontal tangent means y′=0. By the power rule y′=4x3−4x=4x(x2−1)=4x(x−1)(x+1), which vanishes at x=0, x=1 and x=−1. The corresponding heights are y(0)=0 and y(±1)=1−2=−1, so the points are

    (0,0),(1,−1),(−1,−1).

    (The curve is even, so the two outer points had to be mirror images.)

    (c) Parametrise by the point of tangency. The tangent at x=a touches the parabola at (a,a2+1) and has slope 2a, so its equation is

    y=a2+1+2a(x−a).

    Demand that (1,−2) lies on it: −2=a2+1+2a(1−a)=−a2+2a+1, that is a2−2a−3=0, so (a−3)(a+1)=0 and a=3 or a=−1.

    For a=3: the point is (3,10), the slope is 6, and the line is y=10+6(x−3)=6x−8.

    For a=−1: the point is (−1,2), the slope is −2, and the line is y=2−2(x+1)=−2x.

    Check both through (1,−2): 6⋅1−8=−2 and −2⋅1=−2. The common mistake is to differentiate at x=1 and use slope 2; but (1,−2) is not on the curve, so nothing is tangent there. The unknown is the point of contact, not the given point.

  4. 4.Computation

    Throughout, a denotes an arbitrary real number and dxd​ex=ex may be quoted.

    1. (a)Write down the tangent line to y=ex at the point (a,ea), and prove that it crosses the x-axis at x=a−1 no matter what a is.
    2. (b)Use (a) to find the tangent line to y=ex that passes through (2,0).
    3. (c)Find the y-intercept of the tangent line in (a) as a function of a. For which a is it negative, for which is it zero, and for which is it positive?

    Solution

    (a) The slope at x=a is ea, so the tangent line is

    y=ea+ea(x−a)=ea(x−a+1).

    Set y=0. Since ea>0 for every a we may divide by it, leaving x−a+1=0, that is x=a−1. ■

    Geometrically: from any point of the exponential curve, run the tangent down to the axis and you always land exactly one unit to the left of the foot of the point. That fixed horizontal run of 1 is another way of saying "slope equals height": rise ea over run 1 is slope ea.

    (b) A tangent through (2,0) is a tangent whose x-intercept is 2, so by (a) a−1=2 and a=3. It touches the curve at (3,e3) and is

    y=e3(x−2).

    Check: at x=3 the line gives e3, which is on the curve, and its slope e3 is the derivative there. The tangent through the origin is the special case a=1, giving y=ex.

    (c) Put x=0 in the tangent line: the y-intercept is

    ea(1−a).

    As ea>0, the sign is the sign of 1−a: the intercept is negative for a>1, zero for a=1 (the tangent through the origin again), and positive for a<1. In words: tangents drawn to the right of x=1 dive below the origin before reaching the y-axis, and tangents drawn to the left cross the y-axis above it. Every one of them has positive slope ea, so each is an increasing line; only where it sits changes.

  5. 5.Proof

    Quote the product rule by name wherever it is used, and say what its hypotheses are each time.

    1. (a)Let f, g and h be differentiable at x. Prove that fgh is differentiable at x and that (fgh)′=f′gh+fg′h+fgh′.
    2. (b)Use (a) to differentiate y=xexsinx, and evaluate y′(0) and y′(π) exactly.
    3. (c)Suppose f is differentiable at a with f(a)=0, and g is merely continuous at a (it need not be differentiable there). Prove directly from the definition that fg is differentiable at a and (fg)′(a)=f′(a)g(a). Then apply this to F(x)=sinx∣x∣ at a=0, and say why the product rule itself could not have been used.

    Solution

    (a) Group the product as (fg)⋅h. By the product rule, fg is differentiable at x (its hypotheses, that f and g are differentiable at x, are given) with (fg)′=f′g+fg′. Now apply the product rule again to the two differentiable factors fg and h:

    (fgh)′=((fg)h)′=(fg)′h+(fg)h′=(f′g+fg′)h+fgh′=f′gh+fg′h+fgh′.■

    The shape is worth noticing: one term for each factor, that factor differentiated and the others left alone. The same argument by induction gives the rule for any number of factors.

    (b) Take f=x, g=ex, h=sinx, with f′=1, g′=ex, h′=cosx. By (a),

    y′=1⋅exsinx+x⋅exsinx+xexcosx=ex[(1+x)sinx+xcosx].

    At x=0: e0[1⋅0+0]=0. At x=π: sinπ=0 and cosπ=−1, so y′(π)=eπ[0+π⋅(−1)]=−πeπ.

    Sanity check on y′(0)=0: near 0, ex≈1 and sinx≈x, so y≈x2, which is flat at the origin.

    (c) Proof. Since f(a)=0, the product has (fg)(a)=0, and for h=0

    hf(a+h)g(a+h)−f(a)g(a)​=hf(a+h)​g(a+h)=hf(a+h)−f(a)​⋅g(a+h),

    where the last step inserts −f(a)=0 into the numerator. As h→0 the first factor tends to f′(a), by the definition of the derivative, and the second tends to g(a), by continuity of g at a. Both limits exist as real numbers, so the product law for limits applies and the difference quotient tends to f′(a)g(a). That is exactly the statement that fg is differentiable at a with (fg)′(a)=f′(a)g(a). ■

    Application. Take f(x)=sinx and g(x)=∣x∣ at a=0: f(0)=0, f′(0)=cos0=1, and ∣x∣ is continuous at 0 with g(0)=0. Hence F is differentiable at 0 and F′(0)=1⋅0=0.

    The product rule could not be invoked because one of its hypotheses fails: ∣x∣ is not differentiable at 0 (it has a corner there). The rule is silent, not wrong; the definition still answers. Away from 0 both factors are differentiable and the product rule gives F′(x)=cosx∣x∣+sinx⋅sgn(x), which also tends to 0 as x→0 from either side, consistent with what we found.

  6. 6.Computation

    All angles are in radians. You may quote dxd​sinx=cosx and dxd​cosx=−sinx, but nothing else from the trigonometric table.

    1. (a)Prove that dxd​cscx=−cscxcotx.
    2. (b)Let y=x2sinx+2xcosx−2sinx. Show that y′=x2cosx, and note how many terms cancel.
    3. (c)Find every x in [0,2π] at which the curve y=sinxcosx has a horizontal tangent, and give the value of y at each.

    Solution

    (a) Write cscx=sinx1​ and apply the quotient rule with f=1, g=sinx, f′=0, g′=cosx, valid wherever sinx=0:

    dxd​sinx1​=sin2x0⋅sinx−1⋅cosx​=−sin2xcosx​=−sinx1​⋅sinxcosx​=−cscxcotx.■

    The minus sign is the co-function rule at work: csc is the co-function of sec, whose derivative is +secxtanx.

    (b) Differentiate term by term, using the product rule on the first two.

    dxd​(x2sinx)=2xsinx+x2cosx.

    dxd​(2xcosx)=2cosx−2xsinx.

    dxd​(−2sinx)=−2cosx.

    Add:

    y′=2xsinx​+x2cosx+2cosx​​−2xsinx​−2cosx​​=x2cosx.

    Two pairs cancel and a single term survives. (This is the kind of cancellation that integration by parts produces: y is an antiderivative of x2cosx.)

    (c) Product rule: y′=cosx⋅cosx+sinx⋅(−sinx)=cos2x−sin2x.

    A horizontal tangent needs cos2x=sin2x. If cosx=0 then sin2x=1=0, so no solution has cosx=0, and we may divide: tan2x=1, that is tanx=±1. In [0,2π] this gives

    x=4π​, 43π​, 45π​, 47π​.

    Values: at 4π​ and 45π​ the sine and cosine have the same sign and each has magnitude 22​​, so y=21​; at 43π​ and 47π​ they have opposite signs, so y=−21​.

    Cross-check: cos2x−sin2x=cos2x, and y=21​sin2x has derivative cos2x by the chain rule; it vanishes when 2x is an odd multiple of 2π​, which is the same list. The maxima 21​ and minima −21​ are the peaks and troughs of 21​sin2x.

  7. 7.Critique

    Three short arguments follow. Not all of them are wrong. For each one, either identify precisely which step fails and which rule or hypothesis is being misused, then give the correct derivative — or, if the argument is sound, say so and verify the result by a second method.

    1. (a)“For y=cos3(x2) the outer function is u3 and the inner is u=cos(x2). So y′=3cos2(x2)⋅(−sin(x2))=−3cos2(x2)sin(x2).”
    2. (b)“Given g(1)=3, g′(1)=2, f′(1)=5 and f′(3)=−4: by the chain rule (f∘g)′(1)=f′(1)g′(1)=5⋅2=10.”
    3. (c)“dxd​(x3+1)21​=dxd​(x3+1)−2=−2(x3+1)−3⋅3x2=−(x3+1)36x2​.”

    Solution

    (a) Wrong: a missing innermost derivative. The student peeled only two layers. There are three: outer u3, middle cosv, inner v=x2. The derivative of the middle layer, −sin(x2), must itself be multiplied by the derivative of what is inside it, dxd​x2=2x. The chain rule says the derivative of the inner function is dxd​cos(x2)=−sin(x2)⋅2x, not −sin(x2). Correctly,

    y′=3cos2(x2)⋅(−sin(x2))⋅2x=−6xcos2(x2)sin(x2).

    A check that exposes the error without any computation: y is an even function of x, and the derivative of an even function is odd. The student's answer −3cos2(x2)sin(x2) is even, so it cannot be the derivative of y; the corrected answer carries the odd factor x.

    (b) Wrong: the outer derivative is evaluated at the wrong point. The chain rule reads (f∘g)′(1)=f′(g(1))⋅g′(1), and g(1)=3, so the outer derivative that matters is f′(3), not f′(1). The number f′(1)=5 is the slope of f at an input f never receives here. Correctly,

    (f∘g)′(1)=f′(3)g′(1)=(−4)(2)=−8.

    (c) Correct. Rewriting the reciprocal as a negative power is legal, and the power case of the chain rule, dxd​[g(x)]n=n[g(x)]n−1g′(x) with g(x)=x3+1, n=−2 and g′(x)=3x2, gives exactly −2(x3+1)−3⋅3x2. The quotient rule was not required.

    Second method, by the quotient rule with f=1 and g=(x3+1)2, g′=2(x3+1)⋅3x2:

    g20⋅g−1⋅g′​=−(x3+1)46x2(x3+1)​=−(x3+1)36x2​,

    the same result. The lesson of the three parts together: the chain rule fails in exactly two ways — a layer forgotten, or a derivative evaluated at the wrong input — and a correct answer that looks unfamiliar is still correct.

  8. 8.Computation

    The curve C is given by

    x2−xy+y2=3.

    It is an ellipse, tilted, centred at the origin. Every time you differentiate a term containing y, say which rule supplies the factor dxdy​.

    1. (a)Find dxdy​ in terms of x and y.
    2. (b)Verify that (−1,1) lies on C, and find the tangent and normal lines there.
    3. (c)Find all points of C at which the tangent is horizontal, and all points at which it is vertical. In each case confirm that the other part of your fraction from (a) is nonzero.
    4. (d)Compute dx2d2y​ at the point (1,2), and say what its sign tells you about the curve there.

    Solution

    (a) Differentiate each term with respect to x, treating y as a function of x.

    dxd​x2=2x. For xy the product rule gives 1⋅y+x⋅y′. For y2 the chain rule (outer u2, inner u=y) gives 2yy′. The right side is a constant, with derivative 0. So

    2x−(y+xy′)+2yy′=0.

    Collect the y′ terms: y′(2y−x)=y−2x, hence

    dxdy​=2y−xy−2x​(2y=x).

    (b) At (−1,1): 1−(−1)(1)+1=3, so the point is on C. The slope is

    2(1)−(−1)1−2(−1)​=33​=1.

    Tangent: y−1=1⋅(x+1), that is y=x+2. Normal: slope −1, so y−1=−(x+1), that is y=−x.

    Sanity check: the normal passes through the origin, the centre of the ellipse. That is right, because (−1,1) lies on the line y=−x, which is an axis of symmetry of this ellipse (the equation is unchanged when x and y are swapped, and also when both are negated), and at the end of an axis the normal points straight at the centre.

    (c) Horizontal: the numerator vanishes, y=2x. Substitute into C: x2−2x2+4x2=3x2=3, so x=±1 and the points are (1,2) and (−1,−2). There the denominator is 2y−x=3x=±3=0, so the slope is genuinely 0.

    Vertical: the denominator vanishes, x=2y. Substitute: 4y2−2y2+y2=3y2=3, so y=±1 and the points are (2,1) and (−2,−1). There the numerator is y−2x=y−4y=−3y=∓3=0, so the fraction really blows up and the tangent is vertical rather than undetermined.

    The four points are the top, bottom, right and left extremes of the ellipse: y ranges over [−2,2] and x over [−2,2].

    (d) Differentiate y′=2y−xy−2x​ by the quotient rule, remembering that y and hence y′ depend on x:

    y′′=(2y−x)2(y′−2)(2y−x)−(y−2x)(2y′−1)​.

    At (1,2) we know from (c) that y′=0 and y−2x=0, while 2y−x=3. The second product in the numerator is therefore 0, and

    y′′​(1,2)​=32(0−2)(3)−0​=−96​=−32​.

    It is negative, so the curve is concave down at (1,2): the tangent is horizontal and the curve bends away beneath it. That is what the top of a closed oval must do, and it confirms that (1,2) is the highest point of C rather than the lowest.

  9. 9.Proof

    Let f(x)=x5+2x3+x. Quote the theorem on the derivative of an inverse function by name wherever you use it, and check its hypotheses.

    1. (a)Explain why f has an inverse on all of R, find (f−1)′(4), and explain why f′(4)1​ is the wrong number.
    2. (b)Prove: if F is differentiable on R and odd, then F′ is even.
    3. (c)Prove that f−1 is an odd function, and deduce that (f−1)′ is even. Hence write down (f−1)′(−4) with no further computation.

    Solution

    (a) f′(x)=5x4+6x2+1≥1>0 for every x, so f is strictly increasing on R, hence one-to-one, and being a polynomial it is continuous. So f−1 exists, and the inverse function theorem applies at every point because f′ is never 0.

    To use the theorem at 4 we need f−1(4), that is the solution of x5+2x3+x=4. By inspection x=1 works (1+2+1=4), and there is no other solution because f is one-to-one. Then f′(1)=5+6+1=12 and

    (f−1)′(4)=f′(f−1(4))1​=f′(1)1​=121​.

    The number f′(4)1​=5⋅256+6⋅16+11​=13771​ is the reciprocal of the slope of f at the wrong point. Reflection in y=x sends the point (1,4) on the graph of f to the point (4,1) on the graph of f−1, so the slope of f−1 at input 4 is tied to the slope of f at input 1, not at input 4.

    (b) Oddness says F(−x)=−F(x) for all x. Both sides are differentiable functions of x, so differentiate both. On the left, the chain rule with inner function −x gives F′(−x)⋅(−1); on the right, −F′(x). So −F′(−x)=−F′(x), that is F′(−x)=F′(x) for all x: F′ is even. ■

    (Check on our f: it is odd, having only odd powers, and f′ has only even powers.)

    (c) f−1 is odd. Let x be any real number and put y=f−1(x), so f(y)=x. Since f is odd, f(−y)=−f(y)=−x. Applying f−1 to both sides, f−1(−x)=−y=−f−1(x). ■

    (f−1)′ is even. By the inverse function theorem (f continuous, one-to-one on an interval, f′=0 everywhere) f−1 is differentiable on all of R. It is odd by the first half of (c), so by (b) applied to F=f−1 its derivative is even. ■

    One can also see it directly from the formula: (f−1)′(−x)=f′(f−1(−x))1​=f′(−f−1(x))1​=f′(f−1(x))1​=(f−1)′(x), using oddness of f−1 and then evenness of f′.

    Consequence. (f−1)′(−4)=(f−1)′(4)=121​. Check by hand: f(−1)=−4 and f′(−1)=12, so the theorem gives 121​ directly, as it must.

  10. 10.Computation

    In each part state where the expression is positive, so that its logarithm exists, before you take logarithms.

    1. (a)Differentiate y=(sinx)x for 0<x<π. Evaluate y′ at x=2π​ and explain the value you get.
    2. (b)Differentiate y=xlnx for x>0. Find every point with a horizontal tangent and decide, from the sign of y′, whether it is a maximum or a minimum.
    3. (c)Let f and g be differentiable and nonzero on an interval, and assume that y=f/g is differentiable there. Use logarithmic differentiation to derive the quotient rule, and state which hypotheses your derivation needs that the quotient rule itself does not.

    Solution

    (a) On (0,π) we have sinx>0, so y>0 and lny=xln(sinx). Differentiate implicitly. The left side becomes yy′​ by the chain rule. The right side is a product, and dxd​ln(sinx)=sinxcosx​=cotx by the chain rule, so

    yy′​=ln(sinx)+xcotx,y′=(sinx)x[ln(sinx)+xcotx].

    At x=2π​: sinx=1, so ln(sinx)=0, and cot2π​=0; hence y′(2π​)=1⋅[0+0]=0. The value makes sense: for 0<x<π the base satisfies 0<sinx≤1 and the exponent is positive, so y≤1, with equality exactly at x=2π​. That is the maximum of y, and a maximum in the interior of the domain must have a horizontal tangent.

    (b) For x>0, y=xlnx>0 and lny=lnx⋅lnx=(lnx)2. Differentiating, with the chain rule on both sides,

    yy′​=2lnx⋅x1​,y′=x2lnx​xlnx.

    Since xlnx>0 and x>0, the sign of y′ is the sign of lnx: negative on (0,1), zero at x=1, positive on (1,∞). The only horizontal tangent is at (1,1), and because y′ changes from − to + there, it is a minimum.

    Cross-check: xlnx=e(lnx)2≥e0=1, with equality only when lnx=0. The chain rule on this form gives e(lnx)2⋅2lnx⋅x1​, the same derivative.

    (c) Since f and g are nonzero, ∣y∣=∣f∣/∣g∣>0 and

    ln∣y∣=ln∣f∣−ln∣g∣.

    Differentiate, using dxd​ln∣u∣=uu′​ for each of y, f, g:

    yy′​=ff′​−gg′​.

    Multiply through by y=gf​:

    y′=gf​(ff′​−gg′​)=gf′​−g2fg′​=g2f′g−fg′​.■

    What was assumed. Two things the quotient rule does not require. First, f=0: the quotient rule needs only g=0, but taking ln∣f∣ needs f=0 as well. Second, the differentiability of y itself: we wrote dxd​ln∣y∣=yy′​, which presupposes y′ exists, whereas the quotient rule proves that f/g is differentiable. So this derivation is a way of remembering or recovering the formula, not an independent proof of the theorem. Its real content is the bookkeeping identity: the relative rate of change of a quotient is the difference of the relative rates of change of numerator and denominator.

  11. 11.Proof

    Each part asks for a proof for all positive integers n or for all constants; a check of the first few cases is not a proof. Set out any induction with its base case and inductive step clearly labelled.

    1. (a)Let f(x)=xex. Compute f′, f′′ and f′′′, conjecture a formula for f(n)(x), prove it by induction, and evaluate f(10)(0).
    2. (b)Prove that dxndn​sinx=sin(x+2nπ​) for every n≥1, and use it to find dx50d50​sinx.
    3. (c)Prove that for every pair of constants A, B the function y=(A+Bx)e2x satisfies y′′−4y′+4y=0.

    Solution

    (a) By the product rule, f′(x)=1⋅ex+xex=(x+1)ex. Again, f′′(x)=1⋅ex+(x+1)ex=(x+2)ex, and f′′′(x)=ex+(x+2)ex=(x+3)ex. Conjecture:

    f(n)(x)=(x+n)ex(n≥1).

    Base case n=1. f′(x)=(x+1)ex, computed above.

    Inductive step. Suppose f(n)(x)=(x+n)ex for some n≥1. Then, by definition of the (n+1)st derivative and the product rule,

    f(n+1)(x)=dxd​[(x+n)ex]=1⋅ex+(x+n)ex=(x+(n+1))ex,

    which is the formula with n+1 in place of n. By induction it holds for all n≥1. ■

    Hence f(10)(0)=(0+10)e0=10.

    (b) Base case n=1. dxd​sinx=cosx, and cosx=sin(x+2π​) (shifting the sine a quarter period to the left gives the cosine; equivalently, the addition formula gives sinxcos2π​+cosxsin2π​=cosx). So the statement holds for n=1.

    Inductive step. Suppose dxndn​sinx=sin(x+2nπ​). Differentiate once more, using the chain rule with inner function x+2nπ​ (whose derivative is 1) and then the base-case identity:

    dxn+1dn+1​sinx=cos(x+2nπ​)=sin(x+2nπ​+2π​)=sin(x+2(n+1)π​).

    By induction the formula holds for all n≥1. ■

    With n=50: sin(x+25π)=sin(x+π+24π)=sin(x+π)=−sinx, since 24π is a whole number of periods. Check against the four-step cycle sin→cos→−sin→−cos→sin: 50=48+2, so the 50th derivative is the second, namely −sinx.

    (c) Product rule with the chain rule on e2x (derivative 2e2x):

    y′=Be2x+(A+Bx)⋅2e2x=(2A+B+2Bx)e2x.

    Again:

    y′′=2Be2x+(2A+B+2Bx)⋅2e2x=(4A+4B+4Bx)e2x.

    Now substitute and factor out e2x:

    y′′−4y′+4y=e2x[(4A+4B+4Bx)−4(2A+B+2Bx)+4(A+Bx)].

    Collect the bracket by type of term. Constants: 4A+4B−8A−4B+4A=0. Terms in x: 4Bx−8Bx+4Bx=0. The bracket is identically zero, so y′′−4y′+4y=0 for every A and B. ■

    Both e2x (take B=0) and xe2x (take A=0) solve the equation on their own; the two-parameter family is their general combination. The factor x appears because 2 is a repeated root of r2−4r+4=(r−2)2, a fact the differential equations chapter will explain.

  12. 12.Sketch

    Let f(x)=x∣x−2∣ on the interval −1≤x≤4.

    A sketch earns credit only for the features you can justify from f′; every peak, valley, corner and jump you draw must be accounted for in your working.

    1. (a)Write f without the absolute value, as two formulas on two intervals. Find f′(x) on each open piece and the one-sided derivatives f−′​(2) and f+′​(2). Is x=2 a critical point? Is x=0 a corner?
    2. (b)Find every critical point of f and classify each as a local maximum, a local minimum or neither, using the sign of f′ on either side.
    3. (c)Sketch y=f(x) and, directly beneath it with the same x-axis, y=f′(x), both for −1≤x≤4. On the graph of f mark the intercepts, the local extremes and the corner; on the graph of f′ mark its zero, the jump at x=2 (with open circles) and its values at x=−1 and x=4. Then state, in one sentence each, how the zero of f′ and the jump of f′ show up on the graph of f.

    Solution

    (a) ∣x−2∣=x−2 for x≥2 and 2−x for x<2, so

    f(x)={2x−x2,x2−2x,​x<2,x≥2.​

    On the open pieces the power rule applies: f′(x)=2−2x for x<2 and f′(x)=2x−2 for x>2.

    At x=2 both formulas give f(2)=0, so f is continuous there, and the one-sided derivatives come from the one-sided formulas: f−′​(2)=2−2⋅2=−2 and f+′​(2)=2⋅2−2=2. (Formally, for h<0 the quotient hf(2+h)−0​=h(2+h)(−h)​=−(2+h)→−2, and for h>0 it is h(2+h)h​=2+h→2.) They differ, so f′(2) does not exist and f has a corner at x=2. Since 2 is in the domain of f and f′(2) does not exist, x=2 is a critical point.

    x=0 is not a corner. The absolute value ∣x−2∣ is smooth except at x=2; near x=0 we are inside the single piece 2x−x2, so f′(0)=2 exists. The zero of f at 0 is an ordinary crossing with slope 2.

    (b) Critical points are where f′=0 or f′ fails to exist. 2−2x=0 gives x=1, which lies in the piece x<2, so it counts; 2x−2=0 gives x=1 again, which is not in the piece x>2, so the right piece contributes no zero. Together with x=2 from (a), the critical points are x=1 and x=2.

    Sign of f′: on (−∞,1), 2−2x>0; on (1,2), 2−2x<0; on (2,∞), 2x−2>0.

    At x=1 the sign changes from + to −: local maximum, f(1)=1⋅∣−1∣=1.

    At x=2 the sign changes from − to +: local minimum, f(2)=0. The sign-change criterion never asks for f′(2) itself; it only needs f continuous at 2 (it is) and the sign of f′ on either side. A corner can be a minimum just as a smooth valley can.

    (c) Values to plot. f(−1)=(−1)(3)=−3, f(0)=0, f(1)=1, f(2)=0, f(3)=3, f(4)=8. For f′: f′(−1)=4, f′(0)=2, f′(1)=0, f′→−2 as x→2−, f′→2 as x→2+, f′(3)=4, f′(4)=6.

    The graph of f. For x<2 it is the downward parabola 2x−x2=1−(x−1)2: it rises from (−1,−3), crosses the axis at the origin with slope 2, peaks at (1,1), and descends to (2,0) arriving with slope −2. For x≥2 it is the upward parabola x2−2x started at its point (2,0): it leaves with slope +2 and climbs through (3,3) to (4,8), steepening. At (2,0) the two arcs meet in a sharp V with symmetric slopes −2 and +2. Intercepts: (0,0) and (2,0); the second is also the corner and the local minimum. Mark (1,1) as the local maximum.

    The graph of f′. For x<2 it is the straight line 2−2x: from (−1,4) down through (0,2), crossing the axis at (1,0), and reaching height −2 as x→2− — draw an open circle at (2,−2). For x>2 it is the line 2x−2: starting from an open circle at (2,2) and rising through (3,4) to (4,6). There is no point of the graph on the line x=2, since f′(2) does not exist. The jump has height 4.

    Reading one graph off the other. The zero of f′ at x=1 sits directly beneath the peak of f: f′ is positive to its left, where f climbs, and negative to its right, where f falls, so the crossing from + to − is the hilltop. The jump of f′ at x=2 sits directly beneath the corner of f: the left-hand value −2 and right-hand value +2 are the two slopes that meet at the V, and because f′ jumps from negative to positive, the corner is a valley.

← Back to the question sheet

CalcPath·Free university mathematics

SubjectsProblem setsProgressFeedbackAbout