Topic 2 Derivatives

2.1 Derivatives as Rate of Changes

A derivative of a function is a special type of limit in the sense that it represents the instantaneous rate of change.

Definition 2.1 Given a function ff defined near aa, the average rate of change (or difference quotient) near aa is f(x)f(a)xa.f(x)f(a)xa. The derivative of a function ff at a number aa, denoted by f(a)f(a) (read as ff prime of aa) is defined as f(a)=limxaf(x)f(a)xaf(a)=limxaf(x)f(a)xa if this limit exists.
We say that ff is differentiable at aa if the limit limxaf(x)f(a)xalimxaf(x)f(a)xa exists.

By a substitution x=a+hx=a+h, we see that f(a)=limh0f(a+h)f(a)h.f(a)=limh0f(a+h)f(a)h.

The slope of a tangent line and an instantaneous velocity are both derivatives.

In terms of the derivative, an equation of the tangent line through (a,f(a))(a,f(a)) can be written as y=f(a)(xa)+f(a).y=f(a)(xa)+f(a). The equation is known as the point-slope form equation.

Exercise 2.1 Find the tangent line to the curve defined by y=xy=x at the point (1,1)(1,1).

Solution.

The slope of the tangent line is given by the limit limx1f(x)f(1)x1=limx1x1x1=limx11x+1=12.limx1f(x)f(1)x1=limx1x1x1=limx11x+1=12. An equation of tangent line is y=12(x1)+1.y=12(x1)+1.

Exercise 2.2 Find the derivative f(2)f(2) for the function f(x)=3x22x+1f(x)=3x22x+1.

Solution.

The derivative (if exists) is the limit of difference quotient f(2)=limx2f(x)f(2)x2=limx2(3x22x+1)(32222+1)x2=limx2(3x+4)(x2)x2=limx2(3x+4)=10.f(2)=limx2f(x)f(2)x2=limx2(3x22x+1)(32222+1)x2=limx2(3x+4)(x2)x2=limx2(3x+4)=10.

Exercise 2.3 An equation of the tangent line to the curve y=f(x)y=f(x) at the point where x=2x=2 is y=x2y=x2. Find f(2)f(2) and f(2)f(2).

Solution.

The derivative of the function at x=ax=a is the same as the slope of the tangent line through (a,f(a))(a,f(a)). Since the slope of the tangent line when x=2x=2 is 11, we know that f(2)=1f(2)=1. As the function and the tangent line touch each other at x=2x=2, we see that f(2)=22=0f(2)=22=0.

Exercise 2.4 Find f(a)f(a) for the function f(x)=1x1f(x)=1x1, where aa is a number and a1a1.

Solution.

By the definition of derivative, we have f(a)=limxaf(x)f(a)xa=limxa1x11a1xa=limxaax(x1)(a1)xa=limxa1(x1)(a1)=1(a1)2f(a)=limxaf(x)f(a)xa=limxa1x11a1xa=limxaax(x1)(a1)xa=limxa1(x1)(a1)=1(a1)2

Exercise 2.5 The limit limh024+h1hlimh024+h1h represents the derivative of some function ff at some number aa. State ff and aa.

Solution.

The derivative of a function ff can be calculated using f(a)=limh0f(a+h)f(a)h.f(a)=limh0f(a+h)f(a)h.

Comparing with the limit given in the question, we may assume that a=2a=2 and f(x)=2xf(x)=2x. It can be checked that f(2+h)=24+hf(2+h)=24+h and f(2)=1f(2)=1.

2.2 Derivative as a Function

Definition 2.2 If ff is differentiable at every point in an interval II, the we say ff is differentiable over II.

For a function ff differentiable over an interval II, we may obtain a new function by a unique value f(x)f(x) to each xx in II. We call the function y=f(x)y=f(x) the derivative function (or simply derivative) of ff.

Using the identity f(x)f(a)=(xa)f(x)f(a)xaf(x)f(a)=(xa)f(x)f(a)xa and limit laws, we obtain easily the following theorem.

Theorem 2.1 If the function ff is differentiable at aa, then ff is continuous at aa.

When a function is given in the form y=f(x)y=f(x), we also use yy to denote the derivative function. The notations ff and yy are known as Lagrange’s “prime” notation.

As the derivative function is essentially (the limit) a difference quotient, we also use dydxdydx (or dy/dxdy/dx) to denote the derivative functions. The notation dydxdydx was introduced by Leibniz and called Leibniz’s notation.

A worthful remark is that dxdx and dydy may be considered as variables and are called differentials.

The process of calculating a derivative is known as differentiation. We view the prime or better the notation ddxddx as an operator and call it the differential operator.

Sometimes, a differential operator is also denoted as DD or DxDx to indicate the independent variable xx. Those notations are known as Euler’s notation.

Higher derivatives are defined as repeated differentiations of functions. The second derivative f(x)=(f(x))f′′(x)=(f(x)) is the derivative of the first derivative of ff. The third derivative is f(x)=(f(x))f′′′(x)=(f′′(x)). The nn-th derivative is defined recursively as f(n)(x)=(f(n1)(x))f(n)(x)=(f(n1)(x)).

Exercise 2.6 Use the definition of derivative to find f(x)f(x) for f(x)=12xf(x)=12x.

Solution.

By the definition of derivative, we have f(x)=limh0f(x+h)f(x)h=limh0(12(x+h))(12x)h=limh02hh=2.f(x)=limh0f(x+h)f(x)h=limh0(12(x+h))(12x)h=limh02hh=2.

Exercise 2.7 Use the definition of derivative to find f(x)f(x) for f(x)=x3x2f(x)=x3x2.

Solution.

By the definition of derivative, we have f(x)=limh0f(x+h)f(x)h=limh0((x+h)3(x+h)2)(x3x2)h=limh0((x+h)3x3)((x+h)2x2)h=limh0((x+h)2+x(x+h)+x2(2x+h))=3x22xf(x)=limh0f(x+h)f(x)h=limh0((x+h)3(x+h)2)(x3x2)h=limh0((x+h)3x3)((x+h)2x2)h=limh0((x+h)2+x(x+h)+x2(2x+h))=3x22x

Exercise 2.8 Use the definition of derivative to find f(x)f(x) for f(x)=1x2f(x)=1x2.

Solution.

By the definition of derivative, we have f(x)=limh0f(x+h)f(x)h=limh01x+h21x2h=limh0hh(x+h2)(x2)=1(x2)2f(x)=limh0f(x+h)f(x)h=limh01x+h21x2h=limh0hh(x+h2)(x2)=1(x2)2

Exercise 2.9 Use the definition of derivative to find f(x)f(x) for f(x)=1x+1f(x)=1x+1.

Solution.

By the definition of derivative, we have f(x)=limh0f(x+h)f(x)h=limh01x+h+11x+1h=limh0x+1x+h+1hx+h+1x+1=limh01x+h+1x+1limh0x+1x+h+1h=1x+112x+1=12(x+1)x+1f(x)=limh0f(x+h)f(x)h=limh01x+h+11x+1h=limh0x+1x+h+1hx+h+1x+1=limh01x+h+1x+1limh0x+1x+h+1h=1x+112x+1=12(x+1)x+1

Exercise 2.10 Use the definition of derivative to find f(x)f(x) for f(x)=x+1xf(x)=x+1x.

Solution.

By the definition of derivative, we have f(x)=limh0f(x+h)f(x)h=limh0((x+h)+1x+h)(x+1x)h=limh0h+hx(x+h)h=limh0(11x(x+h))=11x2f(x)=limh0f(x+h)f(x)h=limh0((x+h)+1x+h)(x+1x)h=limh0h+hx(x+h)h=limh0(11x(x+h))=11x2

Exercise 2.11 Sketch the derivative function of the following function.

The graph of a x^3-x

Solution.

The derivative function is a parabola.

The graphs of x^3-x and its derivative

Exercise 2.12 Find the value aa where the function f(x)=|x5|f(x)=|x5| is not differentiable

Solution.

When x<5x<5 or x>5x>5, the function is a linear function and hence differentiable. It may not be differentiable at x=5x=5. We can check that using the definition of differentiability. Calculate one-side limits because the absolute value sign is involved. limx5f(x)f(5)x5=limx5|x5|0x5limx55xx5=1.limx5f(x)f(5)x5=limx5|x5|0x5limx55xx5=1. limx5+f(x)f(5)x5=limx5+|x5|0x5limx5+x5x5=1.limx5+f(x)f(5)x5=limx5+|x5|0x5limx5+x5x5=1. Because the left and right limits do not agree, the limit of the difference quotient does not exist and the function is not differentiable at x=5x=5.

Exercise 2.13 Find the values of xx where the function ff given in the following graph is not differentiable. Explain why ff is not differentiable at the values you found.

A function whose derivative function has three types of discontinuity

Solution.

If ff is differentiable at x=ax=a, then it is continuous at x=ax=a and it can be approximated by the tangent line locally, that is, the graph is locally flat.

In the graph, we see that ff is not continuous at x=0x=0 and not defined at x=1x=1. So ff cannot be differentiable at those two values. Besides, when x=1x=1, the graph is not flat. So ff is not differentiable at x=1x=1 too.

We can conclude that ff has three discontinuities x=1x=1, x=0x=0 and x=1x=1.

Exercise 2.14 Find values of aa and bb in the function f(x)={ax+bx>=1x23x<1f(x)={ax+bx>=1x23x<1 such ff is differentiable.

Solution.

To make ff is differential, it must be continuous at x=1x=1 and the left derivative and right derivative much agree. Those conditions produces the following system of equations {a+b=13a=2{a+b=13a=2

Solve for bb, we get b=4b=4.

Note that the second equation is from the one side limits of the difference quotients.

Exercise 2.15 Use the definition of derivative to find f(x)f(x) and f(x)f′′(x) for f(x)=3x22x1f(x)=3x22x1.

Solution.

By the definition of derivative, we have f(x)=limh0f(x+h)f(x)h=limh0(3(x+h)22(x+h)1)(3x22x1)h=limh06xh3h22hh=limh0(6x23h)=6x2f(x)=limh0f(x+h)f(x)h=limh0(3(x+h)22(x+h)1)(3x22x1)h=limh06xh3h22hh=limh0(6x23h)=6x2 f(x)=limh0f(x+h)f(x)h=limh0(6(x+h)2)(6x2)h=limh06hh=6f′′(x)=limh0f(x+h)f(x)h=limh0(6(x+h)2)(6x2)h=limh06hh=6

2.3 Differentiation Formulas

Using limit laws, you may obtain the following differential formulas.

Theorem 2.2   1. Constant rule: Let cc be a constant number. If f(x)=cf(x)=c, then f(x)=0f(x)=0. 2. Power rule: Let nn be a real number. If f(x)=xnf(x)=xn, then f(x)=nxn1f(x)=nxn1.

Theorem 2.3 Let ff and gg be differentiable functions and cc be a constant number.

  1. Scalar multiplication rule: Let cc be a constant number. Then (cf)=cf(x)(cf)=cf(x).
  2. Sum rule: (f+g)=f+g(f+g)=f+g.
  3. Product rule: (fg)=fg+fg(fg)=fg+fg.
  4. Quotient rule: (fg)=fgfgg2(fg)=fgfgg2.

Exercise 2.16 Find f(x)f(x) for f(x)=x2019+9f(x)=x2019+9.

Solution.

f(x)=(x2019+9)=(x2019)+(9)=2019x2018.f(x)=(x2019+9)=(x2019)+(9)=2019x2018.

Exercise 2.17 Find f(x)f(x) for f(x)=x31x2f(x)=x31x2.

Solution.

f(x)=(x31x2)=(x3)(x2)=3x2+2x3.f(x)=(x31x2)=(x3)(x2)=3x2+2x3.

Exercise 2.18 Find f(x)f(x) for f(x)=(x+3)(3x21)f(x)=(x+3)(3x21).

Solution.

First simplify the function rule. f(x)=(x+3)(3x21)=3x3+9x2x3f(x)=(x+3)(3x21)=3x3+9x2x3

Now it should be easier to calculate the derivative. f(x)=(3x3+9x2x3)=9x2+18x1.f(x)=(3x3+9x2x3)=9x2+18x1.

Exercise 2.19 Find dydxdydx for y=23x2/3y=23x2/3.

Solution.

Rewrite using negative exponents. y=23x2/3=23x23y=23x2/3=23x23 The derivative is dydx=ddx(23x23)=49x53.dydx=ddx(23x23)=49x53.

Exercise 2.20 Find dydxdydx for y=x(2x1)y=x(2x1).

Solution.

Rewrite using exponents first. y=x(2x1)=2x32xy=x(2x1)=2x32x The derivative is dydx=ddx(2x32x)=3x121=3x1.dydx=ddx(2x32x)=3x121=3x1.

Exercise 2.21 Find A(R)A(R) for A(R)=πR2A(R)=πR2.

Solution.

The derivative is A(R)=(πRR)=π((R)R+R(R))=2πR.A(R)=(πRR)=π((R)R+R(R))=2πR.

Exercise 2.22 Find g(x)g(x) for g(x)=3x2+5x7xg(x)=3x2+5x7x.

Solution.

Rewrite using exponents first. g(x)=3x2+5x7x=3x32+5x127x12g(x)=3x2+5x7x=3x32+5x127x12 The derivative is g(x)=(3x32+5x127x12)=92x12+52x12+72x32=9x2+5x+72xxg(x)=(3x32+5x127x12)=92x12+52x12+72x32=9x2+5x+72xx

Exercise 2.23 Find h(t)h(t) for h(t)=t31t2+1h(t)=t31t2+1.

Solution.

Apply the quotient rule. h(t)=(t31t2+1)=(t31)(t2+1)(t31)(t2+1)(t2+1)2=3t2(t2+1)2t(t31)(t2+1)2=t4+3t2+2t(t2+1)2h(t)=(t31t2+1)=(t31)(t2+1)(t31)(t2+1)(t2+1)2=3t2(t2+1)2t(t31)(t2+1)2=t4+3t2+2t(t2+1)2

Exercise 2.24 Find dsdtdsdt for s=(1t1t)2s=(1t1t)2.

Solution.

Simplify and rewrite using exponents first. s=(1t1t)2=t22t32+t1s=(1t1t)2=t22t32+t1 The derivative is dsdt=ddt(t22t32+t1)=2t3+3t52t2dsdt=ddt(t22t32+t1)=2t3+3t52t2

Exercise 2.25 Find f(x)f(x) for f(x)=x(x+2)21xf(x)=x(x+2)21x.

Solution.

Apply the quotient rule. f(x)=(x(x+2)21x)=(x(x+2)2)(1x)(x(x+2)2)(1x)(x1)2=(3x2+8x+4)(1x)+(x3+4x2+4x)(x1)2=2x3x2+8x+4(x1)2f(x)=(x(x+2)21x)=(x(x+2)2)(1x)(x(x+2)2)(1x)(x1)2=(3x2+8x+4)(1x)+(x3+4x2+4x)(x1)2=2x3x2+8x+4(x1)2

Exercise 2.26 Find f(x)f(x) for f(x)=(x33x2+3x1)(x2+2)f(x)=(x33x2+3x1)(x2+2).

Solution.

Apply the product rule. f(x)=((x33x2+3x1)(x2+2))=(x33x2+3x1)(x2+2)+(x33x2+3x1)(x2+2)=(3x26x+3)(x2+2)+2x(x33x2+3x1)=5x412x3+15x14x+6f(x)=((x33x2+3x1)(x2+2))=(x33x2+3x1)(x2+2)+(x33x2+3x1)(x2+2)=(3x26x+3)(x2+2)+2x(x33x2+3x1)=5x412x3+15x14x+6

Note that you may also simplify the function first.

Exercise 2.27 Find f(x)f(x) for f(x)=3xx1f(x)=3xx1.

Solution.

Apply the quotient rule. f(x)=(3xx1)=(x13)(x1)x13(x1)(x1)2=13x23(x1)x13(x1)2=2x133x2(x1)2f(x)=(3xx1)=(x13)(x1)x13(x1)(x1)2=13x23(x1)x13(x1)2=2x133x2(x1)2

Exercise 2.28 Suppose that ff and gg are both differentiable functions with f(4)=3f(4)=3, g(4)=2g(4)=2, f(4)=9f(4)=9 and g(4)=5g(4)=5. Find h(4)h(4) where h(x)=2xf(x)1g(x).h(x)=2xf(x)1g(x).

Solution.

By rules of derivatives, h(x)=(2xf(x)1g(x))=(2x12)(f(x)1)g(x)(f(x)1)g(x)(g(x))2=x32f(x)g(x)(f(x)1)g(x)(g(x))2h(x)=(2xf(x)1g(x))=(2x12)(f(x)1)g(x)(f(x)1)g(x)(g(x))2=x32f(x)g(x)(f(x)1)g(x)(g(x))2

Therefore, h(4)=432f(4)g(4)(f(4)1)g(4)(g(4))2=178.h(4)=432f(4)g(4)(f(4)1)g(4)(g(4))2=178.

Exercise 2.29 Find equations of the tangent line and normal line to the curve y=4xxy=4xx at (1,3)(1,3).

Solution.

The derivative of the function is dydx=2x1.dydx=2x1. The slope of the tangent line is the value of the derivative function at x=1x=1, that is, m=dydx|x=1=211=1m=dydxx=1=211=1 So the tangent line is y=x+1y=x+1.

The normal line is the line that is perpendicular to the tangent line and passing through the tangent point. The slope of the normal line passing through (a,f(a))(a,f(a)) (if it is not vertical) is 1f(a)1f(a).

In this question, the slope of the normal line is 11. Then an equation of the normal line is y=x+4y=x+4.

Exercise 2.30 Find the second derivatives of the function f(x)=x1xf(x)=x1x.

Solution.

You may apply the quotient rule directly. Here, we rewrite the function first. f(x)=x1x=1+11xf(x)=x1x=1+11x Then f(x)=(1+11x)=(11x)=(1x)(1x)2=1(1x)2f(x)=(1+11x)=(11x)=(1x)(1x)2=1(1x)2 The second derivative is f(x)=(1(1x)2)=((1x)2)(1x)4=(12x+x2)(1x)4=22x(1x)4=2(1x)3.f(x)=(1(1x)2)=((1x)2)(1x)4=(12x+x2)(1x)4=22x(1x)4=2(1x)3.

2.4 Derivatives of Trigonometric Functions

Using trigonometric identities, the limit limh0sinhh=1limh0sinhh=1 and derivative rules, you may find derivatives of trigonometric functions as shown below. ddxsinx=cosxddxcosx=sinxddxtanx=sec2xddxcscx=cscxcotxddxsecx=secxtanxddxcotx=csc2xddxsinx=cosxddxcosx=sinxddxtanx=sec2xddxcscx=cscxcotxddxsecx=secxtanxddxcotx=csc2x

Exercise 2.31 Find the derivatives of the function f(x)=2x2cosxf(x)=2x2cosx.

Solution.

f(x)=(2x2cosx)=2((x2)cosx+x2(cosx))=2(2xcosxx2sinx)=4xcosxx2sinx.f(x)=(2x2cosx)=2((x2)cosx+x2(cosx))=2(2xcosxx2sinx)=4xcosxx2sinx.

Exercise 2.32 Find the derivatives of the function f(x)=sinxcosxf(x)=sinxcosx.

Solution.

f(x)=(sinxcosx)=(sinx)cosx+sinx(cosx)=cos2xsin2x=cos(2x).f(x)=(sinxcosx)=(sinx)cosx+sinx(cosx)=cos2xsin2x=cos(2x).

Exercise 2.33 Find the derivatives of the function f(x)=sinxx+1f(x)=sinxx+1.

Solution.

f(x)=(sinxx+1)=(sinx)(x+1)sinx(x+1)(x+1)2=(x+1)cosxsinx(x+1)2.f(x)=(sinxx+1)=(sinx)(x+1)sinx(x+1)(x+1)2=(x+1)cosxsinx(x+1)2.

Exercise 2.34 Find the derivatives of the function f(x)=2tanx+x3f(x)=2tanx+x3.

Solution.

f(x)=(2tanx+x3)=2(tanx)+(x23)=2sec2x+32x12.f(x)=(2tanx+x3)=2(tanx)+(x23)=2sec2x+32x12.

Exercise 2.35 Find the derivatives of the function f(x)=2tanxxsecxf(x)=2tanxxsecx.

Solution.

f(x)=(2tanxxsecx)=2(tanx)+(xsecx)=2sec2x+secx+x(secx)=2sec2x+secx+xtanxsecx.f(x)=(2tanxxsecx)=2(tanx)+(xsecx)=2sec2x+secx+x(secx)=2sec2x+secx+xtanxsecx.

Exercise 2.36 Find the derivatives of the function f(x)=1tanxxsinx+1f(x)=1tanxxsinx+1.

Solution.

f(x)=(1tanxxsinx+1)=(1tanx)(xsinx+1)(1tanx)(xsinx+1)(xsinx+1)2=sec2x(xsinx+1)(1tanx)(sinx+xcosx)(xsinx+1)2f(x)=(1tanxxsinx+1)=(1tanx)(xsinx+1)(1tanx)(xsinx+1)(xsinx+1)2=sec2x(xsinx+1)(1tanx)(sinx+xcosx)(xsinx+1)2

Exercise 2.37 Find the derivatives of the function f(x)=xsinxcosx+x2f(x)=xsinxcosx+x2.

Solution.

f(x)=(xsinxcosx+x2)=(xsinx)(cosx+x2)(xsinx)(cosx+x2)(cosx+x2)2=(1cosx)(cosx+x2)(xsinx)(2xsinx)(cosx+x2)2f(x)=(xsinxcosx+x2)=(xsinx)(cosx+x2)(xsinx)(cosx+x2)(cosx+x2)2=(1cosx)(cosx+x2)(xsinx)(2xsinx)(cosx+x2)2

Exercise 2.38 Find the second derivatives of the function f(x)=tanxf(x)=tanx.

Solution.

f(x)=(tanx)=sec2xf(x)=(tanx)=sec2x

f(x)=(sec2x)=(secx)secx+secx(secx)=2tanxsec2x.f′′(x)=(sec2x)=(secx)secx+secx(secx)=2tanxsec2x.

Exercise 2.39 Find the nn-th derivatives of the function f(x)=cosxf(x)=cosx.

Solution.

We first calculate derivative up to 4-th order. (cosx)=sinx(cosx)=(sinx)=cosx(cosx)=(cosx)=sinx(cosx)(4)=(sinx)=cosx(cosx)=sinx(cosx)′′=(sinx)=cosx(cosx)′′′=(cosx)=sinx(cosx)(4)=(sinx)=cosx

From the above calculations, we see that the 4-th derivative of cosxcosx is cosxcosx itself. Denote by rr the reminder of nn divided by 44. Then nn-th derivative is the same as the rr-th derivative, that is, (cosx)(n)={sinxn=4k+1cosxn=4k+2sinxn=4k+3cosxn=4(k+1),(cosx)(n)=⎪ ⎪⎪ ⎪sinxn=4k+1cosxn=4k+2sinxn=4k+3cosxn=4(k+1), where kk is an integer.

Exercise 2.40 Find all xx values at where the tangent line of f(x)=3x2sinxf(x)=3x2sinx for π<x<ππ<x<π has the slope 2.

Solution.

We first find the derivative.

f(x)=(3x2sinx)=32cosx.f(x)=(3x2sinx)=32cosx.

The slope of a tangent line at xx is the same as the derivative f(x)f(x) which gives us an equation. 32cosx=2.32cosx=2. Equivalently, cosx=12cosx=12 which has two solutions x=π3x=π3 and x=π3x=π3 in (π,π)(π,π).

At x=π3 or x=π3, the tangent line of the function has the slope 2.

2.5 The Chain Rule

If y=f(u) and u=g(x) are differentiable functions, intuitively, using Leibniz’s notation, you may find dydx=dydududx. This identity is indeed true and called the Chain Rule which is one of the most important of the differentiation rules.

Theorem 2.4 If g is differentiable at x and f is differentiable at g(x), then the composite function F=fg defined by F(x)=f(g(x)) is differentiable at x and F(x)=f(g(x))g(x).

In the chain rule, f(g(x)) mean the “output” of the derivative function f for the “input” g(x).

The theorem can be proved using the error function of an estimation. Let ε(t)=f(u+t)f(u)tf(u) and k=g(x+h)g(x). Then f(g(x+h))f(g(x))h=f(g(x)+k)f(g(x))h=k(ε(k)+f(g(x))h. Taking limits will give the chain rule formula.

The above idea can be simplified using the mean value theorem.

Exercise 2.41 Find the derivatives of the function f(x)=1(x2+1)3.

Solution.

Rewrite using negative exponent and apply the chain rule. f(x)=((x2+1)3)=3(x2+1)4(x2+1)=6x(x2+1)4.

Exercise 2.42 Find the derivatives of the function f(x)=cosx.

Solution.

Rewrite using rational exponent and apply the chain rule. f(x)=((cosx)12)=12(cosx)12(cosx)=sinx2cosx.

Exercise 2.43 Find the derivatives of the function f(x)=tan(sinx+1).

Solution.

Apply the chain rule. f(x)=(tan(sinx+1))=sec2(sinx+1)(sinx+1)=sec2(sinx+1)cosx.

Exercise 2.44 Find the derivatives of the function f(x)=sec(2x35).

Solution.

Apply the chain rule. f(x)=(sec(2x35))=sec(2x35)tan(2x35)(2x35)=6x2sec(2x35)tan(2x35).

Exercise 2.45 Find the derivatives of the function f(x)=1(sinx+cosx)2.

Solution.

Rewrite using negative exponent and apply the chain rule. f(x)=((sinx+cosx)2)=2(sinx+cosx)3(sinx+cosx)=2(sinx+cosx)3(cosxsinx).

Exercise 2.46 Find the derivatives of the function f(x)=(x2+1x21)3.

Solution.

Apply the chain rule. Rewrite the base may help simplify the calculation. f(x)=((1+2x21)3)=3(x2+1x21)2(1+2x21)=3(x2+1x21)2(2(x21)1)=3(x2+1x21)2(2(x21)2(x21))=3(x2+1x21)2(2(x21)2(2x))=12x(x2+1)2(x21)4.

Exercise 2.47 Find the derivatives of the function f(x)=x2sin1x.

Solution.

Apply the product rule and the chain rule. f(x)=(x2sin1x)=2xsin1x+x2(sin1x)=2xsin1x+x2cos1x(1x)=2xsin1x+x2cos1x(1x2)=2xsin1xcos1x

Exercise 2.48 Find the derivatives of the function f(x)=11+sin(x2+1).

Solution.

Rewrite using rational exponents and apply the chain rule. f(x)=((1+sin(x2+1))12)=12(1+sin(x2+1))32(1+sin(x2+1))=12(1+sin(x2+1))32cos(x2+1)(x2+1)=x(1+sin(x2+1))32cos(x2+1)=xcos(x2+1)(1+sin(x2+1))3

Exercise 2.49 Find the derivatives of the function f(x)=sin(3x2+5)1x2+1.

Solution.

Rewrite using rational exponents and apply the product rule and the chain rule. f(x)=(sin(3x2+5)(x2+1)12)=cos(3x2+5)(6x)(x2+1)12+sin(3x2+5)(12(x2+1)32)(2x)=6x(x2+1)cos(3x2+5)xsin(3x2+5)(x2+1)32

Exercise 2.50 Find the derivatives of the function f(x)=tanx1+sinx.

Solution.

Apply the quotient rule and the chain rule. f(x)=(tanx1+sinx)=sec2x(1+sinx)(tanx)(12sinxcosx)(1+sinx)2=2sec2x(1+sinx)sinx2(1+sinx)2

Exercise 2.51 Find the derivatives of the function f(x)=sin(x2+1)cos(x).

Solution.

Apply the quotient rule and the chain rule. f(x)=(sin(x2+1)cos(x))=cos(x2+1)(2x)cos(x)(sin(x2+1))(sin(x))(12x)cos2(x)=4cos(x2+1)cos(x)xx+sin(x2+1)sin(x)2cos2(x)x

Exercise 2.52 Find the derivatives of the function f(x)=(x+1)(x2)(x1)(x+2).

Exercise 2.53 Find the derivatives of the function f(x)=tan(x+cos(x)).

Solution.

Apply the quotient rule and the chain rule. f(x)=(tan(x+cos(x)))=sec2(x+cos(x))(x+cos(x))=sec2(x+cos(x))(1sin(x))(12x)

Exercise 2.54 Find an equation of the tangent line to the curve y=x2+5 at (2,3).

Solution.

We first find the derivative. dydx=12x2+5(2x)=xx2+5.

The slope mT of the tangent line at (2,3) is the derivative of the function at x=2. Plug in x=2 into the derivative function, we get mT=222+5=23.

Using the point-slope formula for a line, an equation of the tangent line can be written as y=23(x2)+3

Exercise 2.55 Find all points on the curve y=cosxcos2x at which the tangent line is horizontal.

Solution.

We first find the derivative. dydx=sinx(2cosx)(sinx)=2sinxcosxsinx.

The slope of a horizontal line is 0.

Since the slope of a tangent line is the derivative. The question is equivalent to solve the equation 2sinxcosxsinx=0

So sinx=0 or cosx=12. Solve those two equations, we get x=kπ or x=2kπ±π3, where k is any integer.

Exercise 2.56 Find all points on the curve y=4x+1 at which the tangent line is perpendicular to the line 3x+2y=1.

Solution.

We first find the derivative. dydx=24x+1.

Solve for y from the linear equation 3x+2y=1, we get y=32x+12. So the slope of the given line is m=32.

Because the tangent line is perpendicular to the given line. The slope of the tangent line is 23. The question is now to solve the following equation for x. 24x+1=23

Clear denominators and square both sides, we find that 4x+1=9 which implies that x=2.

Thus, at (2,42+1)=(2,3), the tangent line is perpendicular to the line 3x+2y=1.

2.6 Implicit Differentiation

Implicit differentiation is an application of the chain rule. There are many functions defined implicitly by equations which means that y may not be easily solved. For examples the heart curve (x2+y21)3x2y3=0. To find the derivative y, the idea is to view y and x both as functions of x and take derivatives of both sides of the equation by using the chain rule. The reason that the equality still holds is because of the sum rule of derivatives. The procedure of taking a derivative is called a differentiation. After differentiate both sides, we may solve for y from the resulting equation. This method is called the implicit differentiation method.

Exercise 2.57 Find dydx for the curve x32xy+y2=1.

Solution.

Differentiate both sides of the equation and solve for dydx. Note that y is a function of x. ddx(x32xy+y2)=ddx(1)3x2(2y+2xdydx)+2ydydx=03x22y+(2x+2y)dydx=0(2x+2y)dydx=3x2+2ydydx=3x2+2y2x+2y=3x22y2x2y

Exercise 2.58 Find dydx for the curve x2x+yy2=1.

Solution.

Differentiate both sides of the equation and solve for dydx. ddx(x2x+yy2)=ddx(1)2x(x+y)x2ddx(x+y)(x+y)22ydydx=02x(x+y)x2(1+dydx)(x+y)22ydydx=02x(x+y)x2x2dydx2y(x+y)2dydx=0(x22y(x+y)2)dydx=2x(x+y)+x2dydx=2x(x+y)+x2x22y(x+y)2dydx=x2+2xyx2+2y(x+y)2

Exercise 2.59 Find dydx for the curve cos(x+y)=x+y.

Solution.

Differentiate both sides of the equation and solve for dydx. ddx(cos(x+y))=ddx(x+y)sin(x+y)(1+dydx)=1+dydx(1+sin(x+y))(1+dydx)=01+dydx=0ifsin(x+y)1which is true. Becausecos(x+y)=x+y.dydx==1.

Exercise 2.60 Find the equations of lines tangent to the curve x2+2xy=y2+2x at the points where x=2.

Solution.

Differentiate both sides of the equation and solve for dydx. ddx(x2+2xy)=ddx(y2+2x)2x+2y+2xdydx=2ydydx+2dydx=22x2y2x2y=1xyxy

When x=2, 4+4y=y2+4. So y=0 or y=4.

At (2,0), the slope is 12020=12 and the tangent line is defined by y=12(x2).

At (2,4), the slopeis 12424=52 and the tagent line is defined by y=52(x2)+4.

Exercise 2.61 Find the equations of lines tangent to the curve 2xy=xy+yx, x>0, y>0, at the point (1,1).

Solution.

Differentiate both sides of the equation and solve for dydx. 2y+2xdydx=yxdydxy2+xdydxyx22x2y3+2x3y2dydx=x2yx3dydx+xy2dydxy3(2x3y2+x3xy2)dydx=x2yy32x2y3dydx=x2yy32x2y32x3y2+x3xy2

At (1,1), the slope is 1122+11=1 and the tangent line is defined by y=(x1)+1.

Exercise 2.62 Find all points on the graph of the equation x2+4y2=2x+4y and in the first quadrant such that at where the tangent line is:

  1. Horizontal.
  2. Vertical.

Solution.

Differentiating both sides with respect to x yields 2x+8ydydx=2+4dydx.

Solving for dydx, we get dydx=1x4y2.

  1. The tangent line is horizontal if dydx=0, that is 1x4y2=0, which implies x=1. The y-coordinate statisfies the equation 12+4y2=21+4y. Since (x,y) is in the first quadrant, y>0. Solving the equation for y yields y=1+22. So at (1,1+22), the tangent line is horizontal.

  2. The tangent line is vertical if dxdy=0, that is 4y21x=0, which implies y=12. Plugging y into the equation of the ellipse and solving for x, we get x=1+2. So at (1+2,12) the tangent line is vertical.

Exercise 2.63 Let m and n be integers and m0. Suppose that ym=xn and assume that y exists. Use implicit differentiation to show that y=rxr1, where r=nm.

Solution.

Differentiate both sides of the equation ym=xn, solve for dydx and replace y by xnm. mym1dydx=nxn1dydx=nxn1mym1dydx=nxn1m(xnm)m1dydx=nmxn1n(m1)m=nmxnm1

Let r=nm. Then ddxxr=rxr1.

2.7 Rates of Change

A derivative can be interpreted as a rate of change. The idea of studying functions by looking at the rate of change is ubiquity in science. Derivatives provide efficient way to study functions.

Exercise 2.64 The height of a stone thrown upward from a place 20 meters above the ground is given by s(t)=20+6t4.9t2 meters after t seconds. Round your answer to the nearest tenth of a unit.

  1. Find the initial velocity.
  2. Find the velocity of the stone after 2 seconds and 4 second.
  3. When does the stone reach its highest position?
  4. Find the velocity when the stone hits the ground.

Solution.

After thrown upward in the air, the stone will hit the ground some time. When the stone hits the ground, we have s(t)=0. So solve for 20+6t4.9t2=0 using the quadratic formula, we get t=1049(3+107)2.7.

To solve the problems, we first find the velocity v(t)=s(t)=69.8t.

  1. The initial velocity is v(0)=6 meters/second.
  2. The velocity after 2 second is v(2)=69.82=13.6. But v(4)=0 because the the stone hits the ground after about 2.7 seconds.
  3. When the stone reaches the highest position. The stone is temporarily still. So v(t)=0. Solve 69.8t=0, we get t=c=30490.6 second.
  4. The velocity when the stone hits the ground is about v(2.7)20.5.

Exercise 2.65 The mass of the part of a metal rod that lies between its left end and a point x meters to the right is 2x3 kg.

  1. Find the linear density function ρ(x).
  2. What’s the linear density when x is 1 m?

Solution.

The linear density is ρ(x)=limΔx0ΔmΔx=m(x), where m(x) is mass (weight) of the rod from left to the point x meters to the right. In this question, m(x)=2x3.

  1. The linear density function is ρ(x)=m(x)=232x12=2x.

  2. The linear density when x=1 m is ρ(1)=2 kg/m.

Exercise 2.66 A particle starts moving along a straight line. After t seconds, the position function of the particle is s(t)=2t36t218t+1 meters.

  1. Find the time t that the particle is at rest.
  2. Find the distance the particle moved in the first 5 seconds.
  3. When the particle is speeding up?

Solution.

We first find the velocity function and the acceleration function: v(t)=s(t)=6t212t18, and a(t)=v(t)=s(t)=12t12.

  1. The particle at rest when the velocity is 0. To find t, we solve for t from v(t)=6t212t18=0 and get t=1 or t=3. So after 3 seconds, the partial is at rest.

  2. The particle moves forward if v(t)>0 and backward if v(t)<0. Using the solutions from 1., we find that v(t)>0 if 0<t<3 or t>3, and v(t)<0 if 3<t5. So the total distance should be calculated as |s(3)s(0)|+|s(5)s(3)|=118

  3. The speed function of the particle is |v(t)|. When v(t)>0 and a(t)>0, the particle is speeding up. When v(t)<0 and a(t)<0, the particle is also speeding up. So the particle is speeding up if v(t)a(t)>0. Similarly, the particle is slowing down if v(t)a(t)<0. Solve the inequality v(t)a(t)>0, we find that the particle is speeding up when t<1 or t>3.

Exercise 2.67 The cost (in dollars) of producing x units of a certain commodity is C(x)=20+100x+0.01x2.

  1. Find the marginal cost function.
  2. Find C(100) and explain it meaning.
  3. What is the difference between C(100) and the additional cost for producing the 1001st commodity?

Solution.

  1. The marginal cost is the derivative of the cost function. In this question, C(x)=50x+0.02x.
  2. The marginal cost C(100)=5+2=$7 estimates the cost for producing the 101st commodity.
  3. The actual cost is C(101)C(100)6.99756. The difference is smaller than 1 cent.

Exercise 2.68 The cost (in dollars ) for a company to produce x units of a certain commodity is C(x)=5x+2x2+4.

  1. Find the marginal cost function C(x).
  2. What are the marginal costs when x=1, x=2 and x=3?
  3. After how many units being produced, the cost starts decreasing.

Solution.

  1. The marginal cost is C(x)=5(x2+4)2x(5x+2)(x2+4)2=5x24x+20(x2+4)2.
  2. The marginal costs for x=1, x=2 and x=3 are C(1)=1125 dollors, C(2)=864 dollars, and C(3)=37169 dollars.
  3. Since the marginal cost is negative when x>1. The costs starts decreasing after 1 unit being produced.

Exercise 2.69 The area enclosed by a circle with radius r inches is A=πr2 square inches.

  1. Find the rate of increase of area with respect to radius at r=10.
  2. Interpret geometrically the rate of change function.

Solution.

The rate of increase of area is dAdr=2πr which is the circumference of the circle.

2.9 Linear Approximations

Given a function f, an important application of a derivative f(a) is to evaluate the function at x near a approximately using tangent line, f(x)f(a)(xa)+f(a). This approximation for f(x) is call the linear approximation. The function L(x)=f(a)(xa)+f(a) that defines the tangent line is called the the linearization of f at a.

The ideas behind linear approximations are sometimes formulated in terms of differentials dx and dy, where we view dx as an independent variable and define dy by dy=dydxdx. Note dydx is the derivative functions.

Exercise 2.75 Find the linearization of the function f(x)=sinx+cosxsinxcosx at x=π2.

Solution.

Apply the quotient rule to find the derivative. f(x)=(cosxsinx)(sinxcosx)(sinx+cosx)(cosx+sinx)(sinxcosx)2=212sinxcosx=21sin(2x)

So f(π2)=2, f(π2)=1 and the linearization is

L(x)=2(xπ2)+1=2x(π1).

Exercise 2.76 Find the differential dy of the function f(x)=2x21x and evaluate dy for x=1 and dx=0.01.

Solution.

The differential dy is given by dy=f(x)dx. We need to find f(x) first. Apply chain rule and rewrite the radicand using negative exponents, we get f(x)=122xx1(2xx1)=122xx1(2+x2)=2x2+12x2x3x

So dy=2x2+12x2x3xdx. When x=1 and dx=0.01, we have dy=0.03.

Exercise 2.77 Use a linear approximation to estimate 31.1.

Solution.

Consider the function f(x)=3x. To estimate using linear approximate, we need to find a number that is close to 1.1 and easy to calculate. We may pick a=1. Find the derivative f(x) and evaluate f(1) and f(1), we get f(x)=13x2, f(1)=1 and f(1)=13. Then 31.113(1.11)+11.03.

Exercise 2.78 Use linear approximation (or differential) to explain why limx0sinxx=1.

Solution.

At x=0, sinx can be approximate by cos(0)(x0)+sin(0)=x. Therefore, sinxx1. As x approaches 0, the approximation becomes more accurate. Therefore, it is reasonable that limx0sinxx=1.

Exercise 2.79 If the side of a cube is measured with an error of at most 1 percent, estimate the percentage error in the volume of the cube.

Solution.

Denote the length of a side of the cube by x and the volume of the cube by V. The relative error in the side can be understood as Δxx=1%. Similarly, the percentage error in the volume is given by ΔVV. Note that V(x)=x3 and dV=3x2dx. By linear approximation, the percentage error in the volume is approximately ΔVVdVV=3x2dxx3=3dxx=3%.