Jump to content

Exercises: Derivatives 1 – "Math for Non-Geeks"

From Wikibooks, open books for an open world

Computing derivatives with differential quotients

[edit | edit source]

Exercises: derivative and differentiability

[edit | edit source]
Exercise (Differentiable power function)

Show that the power function f:ℝ∖{0}, f(x)=x−2=1x2 is differentiable at ξ=−2 and compute the derivative. What is the derivative of f at any x~∈ℝ∖{0}?

Solution (Differentiable power function)

The differential quotient of f at ξ=−2 is given by

f′(−2)=limh→0f(−2+h)−f(−2)h=limh→01(−2+h)2−1(−2)2h=limh→0(−2)2−(−2+h)2(−2)2⋅(−2+h)2h=limh→04−(4−4h+h2)4h(h2−4h+4)=limh→04h−h24h3−16h2+16h=limh→04−h4h2−16h+16=4−00+0+16=416=14

So f is differentiable at ξ=−2 , with derivative f′(−2)=14. For a general x~∈ℝ∖{0} there is

f′(x~)=limh→0f(x~+h)−f(x~)h=limh→01(x~+h)2−1x~2h=limh→0x~2−(x~+h)2x~2⋅(x~+h)2h=limh→0x~2−(x~2+2x~h+h2)x~2h(x~2+2x~h+h2)=limh→0−2x~h−h2x~4h+2x~3h2+x~2h3=limh→0−2x~−hx~4+2x~3h+x~2h2=−2x~−0x~4+0+0=−2x~3

Exercise (Derivative of a product function)

Let f:ℝ→ℝ defined by

f(x)=x(x−1)(x−2)⋅…⋅(x−1000)=∏k=01000(x−k)

Determine f′(0).

Solution (Derivative of a product function)

There is

f′(0)=limx→0f(x)−f(0)x−0=limx→0∏k=01000(x−k)−0x−0=limx→0x⋅∏k=11000(x−k)x=limx→0∏k=11000(x−k)=(∗)∏k=11000(−k)=(−1)1000⏟=1⋅∏k=11000k⏟=1000!=1000!

For (∗) we have used that x↦∏k=11000(x−k) is continuous as a product of the continuous functions x↦x−k for 1≤k≤1000.

Exercise (Derivative of a function with case distinction)

Check whether the following functions are differentiable at x=0.

  1. f:ℝ→ℝ, f(x)={cos⁡(1x) for x≠00 for x=0
  2. g:ℝ→ℝ, g(x)={xcos⁡(1x) for x≠00 for x=0
Solution (Derivative of a function with case distinction)

Part 1: Since cos⁡(1x) oscillates very quickly between −1 and −1, just like sin⁡(1x) for x→0, it is to be expected that f at x=0 is not continuous. For this purpose we consider the null sequences (an)n∈ℕ=(12nπ)n∈ℕ and (bn)n∈ℕ=(1(2n−1)π)n∈ℕ. For these sequences

f(an)=cos⁡(2nπ)=1

and

f(bn)=cos⁡((2n−1)π)=−1

So limx→0f(x) does not exist. According to the sequence criterion f is therefore not continuous at zero and thus not differentiable.

Part 2: The function g is continuous at zero by the sequence criterion, as limx→0g(x)=0. So we can consider the differential quotient:

limx→0g(x)−g(0)x−0=limx→0xcos⁡(1x)−0x=limx→0cos⁡(1x)

In Part 1 we have shown that this limit value does not exist. Therefore g is also not differentiable at zero.

Exercise (Criterion for non-differentiability of a general function at zero)

Let f:(−1,1)→ℝ. Show that: If |f(x)|≥|x|α for some 0<α<1 and f(0)=0, then f is not differentiable at zero.

Solution (Criterion for non-differentiability of a general function at zero)

There is

|f(x)−f(0)x−0|=|f(x)||x|≥|f(x)|≥|x|α|x|α|x|=1|x|1−α⟶x→0∞ since 1−α>0

So f′(0)=limx→0f(x)−f(0)x−0 does not exist.

Exercise (Determining limits with the differential quotient)

Let f:D→ℝ be differentiable at a∈D. Show that the following limits exist

  1. limh→0f(a+h2)−f(a)h=0
  2. limh→0f(a+ch)−f(a−dh)h=(c+d)f′(a) for c,d∈ℝ
  3. limx→axf(a)−af(x)x−a=f(a)−af′(a)
How to get to the proof? (Determining limits with the differential quotient)

Since f in a is differentiable, there is

limh→0f(a+h)−f(a)h=f′(a) and limx→af(x)−f(a)x−a=f′(a)

In addition, from the exercises within the article "derivatives", we know that

limh→0f(a−h)−f(a)h=−f′(x)

The idea is to transform the limits so that we can calculate them using the differential quotient.

Solution (Determining limits with the differential quotient)

Part 1: Because limh→0f(a+h)−f(a)h=f′(a) there is also limh→0f(a+h2)−f(a)h2=f′(a).

So

limh→0f(a+h2)−f(a)h=limh→0h⋅f(a+h2)−f(a)h2=limh→0h⏟=0⋅limh→0f(a+h2)−f(a)h2⏟=f′(a)=0

Part 2: With limh→0f(a+h)−f(a)h=f′(a) and limh→0f(a−h)−f(a)h=−f′(a) there is also limh→0f(a+ch)−f(a)ch=f′(a) and limh→0f(a−dh)−f(a)dh=−f′(a). Hence,

limh→0f(a+ch)−f(a−dh)h=limh→0f(a+ch)−f(a)−(f(a−dh)−f(a))h=limh→0f(a+ch)−f(a)h−limh→0f(a−dh)−f(a)h=c⋅limh→0f(a+ch)−f(a)ch⏟=f′(a)−d⋅limh→0f(a−dh)−f(a)dh⏟=−f′(a)=cf′(a)+df′(a)=(c+d)f′(a)

Part 3: Here we need the "original" differential quotient limx→af(x)−f(a)x−a=f′(a):

limx→axf(a)−af(x)x−a=limx→axf(a)−af(a)−(af(x)−af(a))x−a=limx→axf(a)−af(a)x−a−limx→aaf(x)−af(a)x−a=limx→a(x−a)f(a)x−a−limx→aa(f(x)−f(a))x−a=c⋅limx→af(a)⏟=f(a)−a⋅limx→af(x)−f(a)x−a⏟=f′(a)=f(a)−af′(a)

Exercise (Implication of differentiability)

Let f:ℝ→ℝ be differentiable at x~. Further, let (an)n∈ℕ and (bn)n∈ℕ be sequences with an<x~<bn for all n∈ℕ, as well as limn→∞(an−bn)=0. Show that then, there is

limn→∞f(an)−f(bn)an−bn=f′(x~)

Additional question: Does the converse statement also hold? I.e. does the limit value limn→∞f(an)−f(bn)an−bn with sequences (an) and (bn) as above exist, so f is differentiable at x~, and f′(x~) is equal to this limit?

Hint: Show first that f(an)−f(bn)an−bn=f(an)−f(x~)an−x~+an−x~an−bn(f(an)−f(x~)an−x~−f(bn)−f(x~)bn−x~)

Solution (Implication of differentiability)

There is

f(an)−f(bn)an−bn=f(an)−f(x~)+f(x~)−f(bn)an−bn=f(an)−f(x~)an−bn+f(x~)−f(bn)an−bn=f(an)−f(x~)an−x~+f(an)−f(x~)an−bn−f(an)−f(x~)an−x~−f(bn)−f(x~)an−bn=f(an)−f(x~)an−x~+(an−x~−(an−bn))(f(an)−f(x~)(an−bn)(an−x~)−f(bn)−f(x~)an−bn=f(an)−f(x~)an−x~+bn−x~an−bn⋅f(an)−f(x~)an−x~−bn−x~an−bn⋅f(bn)−f(x~)bn−x~=f(an)−f(x~)an−x~⏟→f′(x~)+an−x~an−bn⏟|…|≤1⋅(f(an)−f(x~)an−x~−f(bn)−f(x~)bn−x~)⏟→f′(x~)−f′(x~)=0

Since now the product of a bounded sequence and a null sequence converges to zero, there is with the calculation rules for sequences

limn→∞f(an)−f(bn)an−bn=f′(x~)+0=f′(x~)

Concerning the additional question: The converse is false. Let us consider the following function, which is not continuous at x~=0 (and therefore not differentiable):

f:ℝ→ℝ, f(x)={1 for x≠0,0 for x=0

Then, there is for all null sequences (an) and (bn) with an<0<bn:

limn→∞f(an)−f(bn)an−bn=limn→∞1−1an−bn=limn→∞0an−bn=0

Exercises: examples for derivatives

[edit | edit source]
Exercise (Derivatives of linear and quadratic functions)

Determine (using the definition) the derivative of a linear function

f:ℝ→ℝ, f(x)=ax+b

and of a quadratic function

g:ℝ→ℝ, g(x)=ax2+bx+c

with a,b,c∈ℝ.

Solution (Derivatives of linear and quadratic functions)

1. linear function: For x~∈ℝ there is

f′(x~)=limx→x~f(x)−f(x~)x−x~=limx→x~ax+b−(ax~+b)x−x~=limx→x~ax+b−ax~−bx−x~=limx→x~ax−ax~x−x~=limx→x~a(x−x~)x−x~=limx→x~a=a

2. quadratic function: For x~∈ℝ there is

g′(x~)=limx→x~g(x)−g(x~)x−x~=limx→x~ax2+bx+c−(ax~2+bx~+c)x−x~=limx→x~ax2+bx−ax~2−bx~x−x~=limx→x~a(x2−x~2)+b(x−x~)x−x~=limx→x~a(x+x~)(x−x~)x−x~+limx→x~b(x−x~)x−x~=limx→x~a(x+x~)+limx→x~b=2ax~+b

Exercise (Derivative of the logarithm function)

Compute the derivative of the natural logarithm function

f:ℝ+→ℝ, f(x)=ln⁡x

directly, using the differential quotient.

Solution (Derivative of the logarithm function)

1st way:

For x~∈ℝ+ there is

f′(x~)=limx→x~f(x)−f(x~)x−x~=limx→x~ln⁡x−ln⁡x~x−x~

Now for 0<x<x~ we have the inequality

1x~≤f(x)−f(x~)x−x~≤1x

If we swap the roles of x and x~, then there is

1x≤f(x~)−f(x)x~−x≤1x~

Since the left and right-hand sides of the inequality for x→x~ converge towards 1x~, the squeeze theorem implies

f′(x~)=limx→x~ln⁡x−ln⁡x~x−x~=1x~

2nd way: h-method

For x~∈ℝ+ there is

f′(x~)=limh→0~f(x~+h)−f(x~)h=limh→0ln⁡(x~+h)−ln⁡(x~)h=limh→0ln⁡(x~+hx~)h=limh→0ln⁡(1+hx~)h=limh→01x~ln⁡(1+hx~)hx~=y=hx~limy→01x~ln⁡(1+y)y=1x~limy→0ln⁡(1+y)y⏟=1=1x~

Exercise (Computing the derivatives of hyperbolic functions sinh cosh and tanh)

Determine die derivatives of the following functions using the differential quotient

  1. sinh⁡:ℝ→ℝ,sinh⁡(x):=ex−e−x2
  2. cosh⁡:ℝ→ℝ,cosh⁡(x):=ex+e−x2
  3. tanh⁡:ℝ→ℝ,tanh⁡(x):=sinhcosh
Solution (Computing the derivatives of hyperbolic functions sinh cosh and tanh)

Part 1: Let x∈ℝ. Then, there is

sinh′⁡(x)=limh→0sinh⁡(x+h)−sinh⁡(x)h= limh→0ex+h−e−(x+h)2−ex−e−x2h= limh→0ex(eh−1)−e−x(e−h−1)2h= limh→0ex(eh−1)2h−limh→0e−x(e−h−1)2h↓ substitution (2nd limit) h~=−h= limh→0ex(eh−1)2h−limh~→0e−x(eh~−1)−2h~= ex2limh→0(eh−1)h+e−x2limh~→0(eh~−1)h~↓ limh→0(eh−1)h=1= ex+e−x2= cosh⁡(x)

Alternative proof:

sinh′⁡(x)=limh→0sinh⁡(x+h)−sinh⁡(x)h↓ addition theorem: sinh⁡(x+y)=sinh⁡(x)cosh⁡(y)+cosh⁡(x)sinh⁡(y)=limh→0sinh⁡(x)cosh⁡(h)+cosh⁡(x)sinh⁡(h)−sinh⁡(x)h=sinh⁡(x)⋅limh→0cosh⁡(h)−1h⏟=0+cosh⁡(x)⋅limh→0sinh⁡(h)h⏟=1=cosh⁡(x)

Part 2: Let x∈ℝ. Then, there is

cosh′⁡(x)=limh→0cosh⁡(x+h)−cosh⁡(x)h= limh→0ex+h+e−(x+h)2−ex+e−x2h= limh→0ex(eh−1)+e−x(e−h−1)2h= limh→0ex(eh−1)2h+limh→0e−x(e−h−1)2h↓ substitution (2nd limit) h~=−h= limh→0ex(eh−1)2h+limh~→0e−x(eh~−1)−2h~= ex2limh→0(eh−1)h−e−x2limh~→0(eh~−1)h~↓ limh→0(eh−1)h=1= ex−e−x2= sinh⁡(x)

Alternative proof:

cosh′⁡(x)=limh→0cosh⁡(x+h)−cosh⁡(x)h↓ addition theorem: cosh⁡(x+y)=cosh⁡(x)cosh⁡(y)+sinh⁡(x)sinh⁡(y)=limh→0cosh⁡(x)cosh⁡(h)+sinh⁡(x)sinh⁡(h)−cosh⁡(x)h=cosh⁡(x)⋅limh→0cosh⁡(h)−1h⏟=0+sinh⁡(x)⋅limh→0sinh⁡(h)h⏟=1=sinh⁡(x)

Part 3: Let x∈ℝ. Then, there is

tanh⁡(x)=sinh⁡(x)cosh⁡(x)=ex−e−x2ex+e−x2=2(ex−e−x)2(ex+e−x)=ex−e−xex+e−x

So

tanh′⁡(x)=limh→0tanh⁡(x+h)−tanh⁡(x)h= limh→0ex+h−e−(x+h)ex+h+e−(x+h)−ex−e−xex+e−xh= limh→0(ex+h−e−(x+h))(ex+e−x)−(ex−e−x)(ex+h+e−(x+h))h(ex+h+e−(x+h))(ex+e−x)= limh→0ex+hex−e−x−hex+e−xex+h−e−xe−x−h−exex+h−exe−x−h+e−xex+h+e−xe−x−hh(ex+h+e−(x+h))(ex+e−x)= limh→02e−xex+h−2exe−x−hh(ex+h+e−(x+h))(ex+e−x)= limh→02eh−2e−hh(ex+h+e−(x+h))(ex+e−x)= limh→02e−h(e2h−1)h(ex+h+e−(x+h))(ex+e−x)= limh→02e−h⋅(e2h−1)h⋅1(ex+h+e−(x+h))(ex+e−x)= limh→02e−h⋅2(e2h−1)2h⋅1(ex+h+e−(x+h))(ex+e−x)= limh→02e−h⋅limh→02(e2h−1)2h⋅limh→02e−h1(ex+h+e−(x+h))(ex+e−x)↓ limh→0(e2h−1)2h=1= 2e0⋅2⋅1(ex+e−x)(ex+e−x)= 4(ex+e−x)2= 1(ex+e−x2)2= 1cosh2(x)

Alternative proof:

tanh′⁡(x)=limh→0tanh⁡(x+h)−tanh⁡(x)h=limh→0sinh⁡(x+h)cosh⁡(x+h)−sinh⁡(x)cosh⁡(x)h=limh→0sinh⁡(x+h)cosh⁡(x)−sinh⁡(x)cosh⁡(x+h)cosh⁡(x+h)cosh⁡(x)h=limh→0sinh⁡(x+h)cosh⁡(x)−sinh⁡(x)cosh⁡(x+h)hcosh⁡(x+h)cosh⁡(x)↓ addition theorems: sinh⁡(x+y)=sinh⁡(x)cosh⁡(y)+cosh⁡(x)sinh⁡(y) and cosh⁡(x+y)=cosh⁡(x)cosh⁡(y)+sinh⁡(x)sinh⁡(y)=limh→0(sinh⁡(x)cosh⁡(h)+cosh⁡(x)sinh⁡(h))cosh⁡(x)−sinh⁡(x)(cosh⁡(x)cosh⁡(h)+sinh⁡(x)sinh⁡(h))hcosh⁡(x+h)cosh⁡(x)=limh→0sinh⁡(x)cosh⁡(x)cosh⁡(h)+cosh2(x)sinh⁡(h)−sinh⁡(x)cosh⁡(x)cosh⁡(h)−sinh2(x)sinh⁡(h)hcosh⁡(x+h)cosh⁡(x)=limh→0cosh2(x)sinh⁡(h)−sinh2(x)sinh⁡(h)hcosh⁡(x+h)cosh⁡(x)=limh→0(cosh2(x)−sinh2(x))sinh⁡(h)hcosh⁡(x+h)cosh⁡(x)↓ cosh2(x)−sinh2(x)=1=limh→0sinh⁡(h)hcosh⁡(x+h)cosh⁡(x)=limh→0sinh⁡(h)h⋅1cosh⁡(x+h)cosh⁡(x)↓ limh→0sinh⁡(h)h=1=1cosh2(x)

Computation rules for derivatives

[edit | edit source]

Applying the computation rules

[edit | edit source]
Exercise (derivatives of a power function)

Show by induction in n∈ℕ, that the power function

f:ℝ→ℝ, f(x)=xn

is differentiable with

f′(x)=nxn−1

Proof (derivatives of a power function)

Induction base: n=1

If f(x)=x1=x, then there is f′(x)=1=1⋅x0

Induction assumption:

For f(x)=xn with n∈ℕ, there is

f′(x)=n⋅xn−1

Induction step: n→n+1

Let f(x)=xn+1=x⋅xn. Then f is differentiable by induction assumption and the product rule. For x∈ℝ there is f′(x)=IV1⋅xn+x⋅nxn−1=xn+nxn=(n+1)xn

Exercise (Derivatives of secant and cosecant)

The functions sec (secant) and csc (cosecant) are defined as follows:

sec⁡(x)=(cos⁡x)−1=1cos⁡x

as well as

csc⁡(x)=(sin⁡x)−1=1sin⁡x

Determine their domain of definition and all derivatives.

Solution (Derivatives of secant and cosecant)

Part 1: secant

domain of definition: sec is well-defined ⟺ cos⁡x≠0 ⟺ x≠π2+kπ ∀k∈ℤ ⟹ D1=ℝ∖{π2+kπ∣k∈ℤ}

Derivative: Since cos is differentiable on D1 , there is with the chain rule

sec⁡(x)=(−1)(cos⁡x)−2⋅(−sin⁡x)=sin⁡xcos2x=sec⁡x⋅tan⁡x=sec2xcsc⁡x

Part 2: cosecant

domain of definition: csc is well-defined ⟺ sin⁡x≠0 ⟺ x≠kπ ∀k∈ℤ ⟹ D2=ℝ∖{kπ∣k∈ℤ}

Derivative: Since sin is differentiable on D2 , there is with the chain rule

csc⁡(x)=(−1)(sin⁡x)−2⋅(cos⁡x)=−cos⁡xsin2x=csc⁡x⋅cot⁡x=−csc2xsec⁡x

Exercise (Computing derivatives)

Determine the domain of definition of the following functions, as well as their derivatives

  1. f1(x)=x2e−x
  2. f2(x)=ln⁡(ln⁡(ln⁡(x)))
  3. f3(x)=sin⁡(xcos⁡(x2))
  4. f4(x)=1+x2x2−1
  5. f5(x)=x⋅|x|
Solution (Computing derivatives)

Part 1:

domain of definition: ℝ

Derivative: For x∈ℝ there is with the product rule

f1′(x)=2xe−x+x2(−e−x)=xe−x(2−x)

Part 2:

domain of definition: (e,∞), as

ln⁡(ln⁡(x))>0⟺ln⁡(x)>1⟺x>e

Derivative: For x∈(0,∞) there is with the chain rule

f2′(x)=1ln⁡(ln⁡(x))⋅1ln⁡(x)⋅1x=1xln⁡(x)ln⁡(ln⁡(x))

Part 3:

domain of definition: ℝ

Derivative: For x∈ℝ there is with the chain- and product rule

f3′(x)=cos⁡(xcos⁡(x2))[1⋅cos⁡(x2)+x(−sin⁡(x2)⋅2x)]=cos⁡(xcos⁡(x2))[cos⁡(x2)−2x2sin⁡(x2)]

Part 4:

domain of definition: (−∞,−1)∪(1,∞), since there must be

  1. x2−1≠0⟺x2≠1⟺x≠±1
  2. x2−1>0⟺x2>1⟺|x|>1⟺(x<−1)∨(x>1)

Derivative: For x∈ℝ there is with the quotient rule

f4′(x)=2xx2−1−(1+x2)2x2x2−1x2−1=2x(x2−1)−x(1+x2)(x2−1)32=x(2x2−2−1−x2)(x2−1)32=x(x2−3)(x2−1)32

Part 5:

domain of definition: ℝ

Derivative:

For x<0 there is f5(x)=x2 ⟹ f5′(x)=2x

For x<0 there is f5(x)=−x2 ⟹ f5′(x)=−2x

Further there is

limx→0+f5(x)−f5(0)x−0=limx→0+x2−0x=limx→0+x=0

as well as

limx→0−f5(x)−f5(0)x−0=limx→0−−x2−0x=limx→0−−x=0

So we have

f5′(0)=limx→0f5(x)−f5(0)x−0=0

Concluding all three cases, we get for x∈ℝ

f5′(x)=2|x|

Exercise (derivatives of exponential functions)

Determine the derivatives of the following functions on their domain of definition (a>0)

  1. f:ℝ+→ℝ, f(x)=x(xx)
  2. g:ℝ+→ℝ, g(x)=(xx)x
  3. h:ℝ+→ℝ, h(x)=x(xa)
  4. i:ℝ+→ℝ, i(x)=x(ax)
  5. j:ℝ+→ℝ, j(x)=a(xx)

For the function g we may leave out the bracket, since in general xxx=x(xx) is well-defined.

Solution (derivatives of exponential functions)

Part 1: There is g(x)=x(xx)=exp⁡(xxln⁡x). The function x↦xx=exp⁡(xln⁡(x)) is differentiable with (xx)′=xx(ln⁡(x)+1). Hence g is differentiable by the chain- and product rule and for x∈ℝ+ there is

f′(x)=exp⁡(xxln⁡x)[xx(ln⁡x+1)⋅ln⁡x+xx⋅1x]=exp⁡(xln⁡x)[xx(ln⁡x+1)ln⁡(x)+1x)]=xxx+x(ln2x+ln⁡x+1x)

Part 2: There is g(x)=(xx)x=xx⋅x=xx2=exp⁡(x2ln⁡x). Hence h is differentiable by the chain- and product rule and for x∈ℝ+ there is

g′(x)=exp⁡(x2ln⁡x)[2xln⁡x+x2⋅1x]=exp⁡(x2ln⁡x)[2xln⁡x+x]=exp⁡(x2ln⁡x)[x(2ln⁡x+1)]=xx2+1(2ln⁡x+1)

Part 3: There is h(x)=x(xa)=exp⁡(xaln⁡x). Hence h is differentiable by the chain- and product rule and for x∈ℝ+ there is

h′(x)=exp⁡(xaln⁡x)[axa−1⋅ln⁡x+xa⋅1x]=exp⁡(xln⁡x)[xa−1(aln⁡x+1)]=xxa+a−1(aln⁡x+1)

Part 4: There is i(x)=(x(ax))=exp⁡(axln⁡x). Hence i is differentiable by the chain- and product rule and for x∈ℝ+ there is

i′(x)=exp⁡(axln⁡x)[axln⁡aln⁡x+ax⋅1x]=x(ax)ax[ln⁡aln⁡x+1x)]

Part 5: There is j(x)=a(xx)=exp⁡(xxln⁡a). The function x↦xx=exp⁡(xln⁡(x)) is differentiable with (xx)′=xx(ln⁡(x)+1). Hence j is differentiable by the chain- and product rule and for x∈ℝ+ there is

j′(x)=exp⁡(xxln⁡a)[xx(ln⁡x+1)⋅ln⁡a]=a(xx)xxln⁡a(ln⁡x+1)

Exercise (Proof of sum formulas using the derivative)

Proofs by means of binomial theorem (missing) that for all n∈ℕ:

  • ∑k=1nk(nk)=n2n−1
  • ∑k=1n(−1)k−1k(nk)=0

Use the binomial theorem and set x=1 . Then take the derivative on both sides.

Proof (Proof of sum formulas using the derivative)

For x=1 the binomial theorem reads

∑k=0n(nk)yk=(1+y)n

for n∈ℕ and y∈ℝ. Now the left-hand side of the equation is a polynomial f(y) and the right-hand side is a power function g(y). Both sides are therefore differentiable on ℝ with

f′(y)=∑k=0n(nk)kyk−1=∑k=1nk(nk)yk−1

and

g′(y)=n(1+y)n−1

Since f≡g there is also f′≡g′. So in particular

f(1)=g(1)⟺∑k=1nk(nk)=n2n−1

and

f(−1)=g(−1)⟺∑k=1n(−1)k−1k(nk)=0

Exercise (Logarithmic derivatives)

Determine the logarithmic derivatives of the following functions

  1. f(x)=1x
  2. g(x)=sec⁡(x)=1sin⁡(x)
  3. h(x)=ax=exp⁡(xln⁡(a)) with a∈ℝ+
  4. h(x)=xx=exp⁡(xln⁡(x))

Proof of computational laws

[edit | edit source]
Exercise (Alternative proof of the product rule)

Prove that for differentiable f,g:D→ℝ the product rule

(fg)′=f′g+g′f

holds - by using the chain rule.

Hint: There is: fg=12((f+g)2−f2−g2)

Proof (Alternative proof of the product rule)

The function g:ℝ→ℝ, g(x)=x2 is differentiable on ℝ with

g′(x)=2x

By der chain rule, we hence have that g∘f=f2:D→ℝ is differentiable with

(g∘f)′(x)=(g∘f)′(x)⋅f′(x)=2f(x)f′(x)

for all x∈D. Using the hint, we get with the factor- and sum rule

(fg)′(x)=(12((f+g)2−f2−g2))′(x)=12[(2(f(x)+g(x)))(f′(x)+g′(x))−2f(x)f′(x)−2g(x)g′(x)]=12[2f(x)f′(x)+2f(x)g′(x)+2g(x)f′(x)+2g(x)g′(x)−2f(x)f′(x)−2g(x)g′(x)]=12[2f(x)g′(x)+2g(x)f′(x)]=f(x)g′(x)+g(x)f′(x)

Exercise (Special case of the chain rule)

Derive a general derivative formula for the following function:

f1f2:(0,∞)→ℝ, (f1f2)(x)=exp⁡(f2(x)ln⁡(f1(x)))

If f1,f2:(0,∞)→ℝ are differentiable.

Solution (Special case of the chain rule)

There is

f1f2:(0,∞)→ℝ, f1(x)f2(x)=exp⁡(f2(x)⋅ln⁡(f1(x)))=g(f(x))

with g(x)=exp⁡(x) and f(x)=f2(x)⋅ln⁡(f1(x)) for all x∈(0,∞). The function f is differentiable by the product rule with f′(x)=f2′(x)ln⁡(f1(x))+f2(x)f1′(x)f1(x)

By the chain rule, also f1f2:(0,∞)→ℝ is differentiable, and there is

(f1f2)′(x)=g′(f(x))⋅f′(x)=exp⁡(f2(x))⋅[f2′(x)ln⁡(f1(x))+f2(x)f1′(x)f1(x)]=f1(x)f2(x)[f2′(x)ln⁡(f1(x))+f2(x)f1′(x)f1(x)]

Theorem (Computational laws for logarithmic derivatives)

For two differentiable functions f and g without zeros there is

  1. L(fk)=1kL(f) for k∈ℕ and f>0
  2. L(fα)=αL(f) for α∈ℝ and f>0
  3. L(f+g)=L(f)+L(1+fg)