Jump to content

Constant functions – "Math for Non-Geeks"

From Wikibooks, open books for an open world

"A function is constant, if its derivative vanishes", i.e. f′(x)=0. This is the main statement which we want to make concrete in this article.

Criterion for constant functions

[edit | edit source]
Theorem

Let I⊆ℝ be an interval and f:I→ℝ a differentiable function with f′(x)=0 for all x∈I. Then f is constant.

Proof

Let a,b∈I with a<b be given. Let further f be differentiable on [a,b] such that for all ξ∈I we have f′(ξ)=0. By the mean value theorem there is a ξ∈(a,b) with

f′(ξ)=f(b)−f(a)b−a

We know that f′(ξ)=0 must hold. So:

0=f′(ξ)=f(b)−f(a)b−a

Since a<b there is b−a≠0. Now we multiply both sides with (b−a) :

f(b)−f(a)=0⋅(b−a)=0

Or, in other words, f(a)=f(b). Since this holds for all a and b in I , the function f must be constant.

Identity theorem of differential calculus

[edit | edit source]

The first conclusion of f′=0 implying that a function is constant is that functions with identical derivatives are identical except for one constant. This result will prove very useful later on in the fundamental theorem of calculus.

Theorem (Identity theorem)

Let f,g:[a,b]→ℝ be two differentiable functions with f′=g′. Then, there is f(x)=g(x)+c for all x∈[a,b]. Where c∈ℝ is a constant number.

Proof (Identity theorem)

We define the auxiliary function

h:[a,b]→ℝ, h(x)=f(x)−g(x)

This function is differentiable since f and g are differentiable and

h′(x)=f′(x)−g′(x)=f′=g′0

Hence, there must be h(x)=f(x)−g(x)=c for all x∈[a,b] with a constant number c∈ℝ. Or equivalently,

f(x)=g(x)+c

Application: characterization of the exponential function

[edit | edit source]
Theorem (Characterization of the exponential function)

Let f:ℝ→ℝ be differentiable. Further let λ∈ℝ and for all x∈ℝ we have

f′(x)=λf(x)

Then, there is f(x)=cexp⁡(λx) for all x∈ℝ with a constant c∈ℝ. If λ=1 and in addition f(0)=1, then precisely f=exp.

Proof (Characterization of the exponential function)

We define the auxiliary function

h:ℝ→ℝ, h(x)=f(x)exp⁡(−λx)

By the product and the chain rule, it is differentiable. There is

h′(x)=f′(x)exp⁡(−λx)+f(x)exp⁡(−λx)(−λ)=λf(x)exp⁡(−λx)−λf(x)exp⁡(−λx)=0

According to the criterion for a function being constant, there is a c∈ℝ with h(x)=f(x)exp⁡(−λx)=c for all x∈[a,b]. But this is now equivalent to

f(x)=cexp⁡(λx)

If now λ=1 and additionally f(0)=1, then

f(0)=cexp⁡(0)=c=1

So f=exp.

Hint

Alternatively, we can write h as h(x)=f(x)exp⁡(λx) and apply the quotient rule to determine the derivative h′. Furthermore, the function f(x)=cexp⁡(λx) satisfies the differential equation f′=λf, since there is:

f′(x)=cexp′⁡(λx)=cλexp⁡(λx)=λcexp⁡(λx)=λf(x)

Exercises

[edit | edit source]

Interval assumption for constant functions

[edit | edit source]

The condition that the function f is defined on an interval is necessary for the criterion for constancy! This is illustrated by the following task:

Exercise

Find a differentiable function f:D→ℝ with D⊆ℝ and f′(x)=0 for all x∈D which is not constant.

D must be chosen here such that it is not an interval. Otherwise, it would follow from the previous sentence that f is constant. So, let us take two intervals

Solution
The function f

We define D:=(0,1)∪(2,3) and set f

f:D→ℝ,x↦{0x∈(0,1)1x∈(2,3)

The function f is obviously not constant. But for all x~∈D there is f′(x~)=0.

For proving this we first consider a x~∈]0,1[. Let (xn)n∈ℕ be a sequence in D∖{x~} which converges towards x~. Then there is an N∈ℕ such that for all n>N the inequality xn=|xn|≤2 is fulfilled. From this we get xn∈(0,1). There is hencef(xn)=0 for all n>N and

f(xn)−f(x~)xn−x~=0−0xn−x~=0

So:

f′(x~)=limx→x~f(x)−f(x~)x−x~=0

The proof that also for all x~∈(2,3) the equation f′(x~)=0 is fulfilled goes completely analogous.

Trigonometric Pythagorean theorem

[edit | edit source]

Using the criterion for constancy, identities of functions can also be proven very well:

Exercise (Trigonometric Pythagorean theorem)

Show that for all x∈ℝ there is

sin2(x)+cos2(x)=1

Here, sin2(x)=sin⁡(x)⋅sin⁡(x) and cos2(x)=cos⁡(x)⋅cos⁡(x).

Solution (Trigonometric Pythagorean theorem)

We define the auxiliary function

h:ℝ→ℝ, h(x)=sin2(x)+cos2(x)

According to the chain and sum rule for derivatives, this is differentiable on all of ℝ, and there is

h′(x)=2sin⁡(x)cos⁡(x)+2cos⁡(x)(−sin⁡(x))=2sin⁡(x)cos⁡(x)−2sin⁡(x)cos⁡(x)=0

Thus h is a constant number c. We can determine it by calculating h(0):

h(0)=sin2(0)+cos2(0)=02+12=1

So h is constant 1 and there is:

h(x)=sin2(x)+cos2(x)=1

Function equation for arctan

[edit | edit source]
Exercise (Function equation for arctan)

Show: arctan⁡(x)+arctan⁡(1x)=π2 for x>0

Solution (Function equation for arctan)

We define f:ℝ+→ℝ and f(x)=arctan⁡(x)+arctan⁡(1x). The function f is differentiable on ℝ+ according to the sum and chain rule for derivatives. Now,

f′(x)=11+x2+11+1x2⋅−1x2=11+x2−11+x2=0

According to the criterion for constancy, f is constant. To determine the exact value it is sufficient to use a concrete value. We choose x=1 and get

f(1)=arctan⁡(1)+arctan⁡(1)=π4+π4=π2

Here, we used that tan⁡(π4)=1 and hence arctan⁡(1)=π4. This implies our claim.

Exercise: identity theorem

[edit | edit source]
Exercise (Logarithm representation of the arsinh)

Show that for all x∈ℝ there is

arsinh⁡(x)=ln⁡(x+x2+1)

Proof (Logarithm representation of the arsinh)

The function f:ℝ→ℝ, f(x)=arsinh⁡(x) is differentiable on all of ℝ, see also the by the examples for derivatives. Its derivative is

f′(x)=1x2+1

by the chain and sum rule, the function g:ℝ→ℝ, g(x)=ln⁡(x+x2+1) is differentiable on all of ℝ . There is:

g′(x)=1x+x2+1⋅(1+2x2x2+1)=1x+x2+1⋅(x2+1+xx2+1)=1x2+1

We have f′(x)=g′(x) for all x∈ℝ so by the identity theorem, f(x)=g(x)+c with a constant c. But now, since sinh⁡(0)=0:

f(0)=arsinh⁡(0)=0

In addition

g(0)=ln⁡(0+02+1)=0

So c=0 which implies the claim.

Characterization of sin and cos

[edit | edit source]
Exercise (Characterization of sin and cos)

Let s,c:ℝ→ℝ be two differentiable functions with

s′=c,s(0)=0c′=−s,c(0)=1

Prove that:

  1. There is s2(x)+c2(x)=1 for all x∈ℝ
  2. There is exactly one pair of functions which meets the above conditions, namely s=sin and c=cos.

Hint: Consider the help function in the second sub-task ĥ(x)=(sin⁡(x)−s(x))2+(cos⁡(x)−c(x))2.

Solution (Characterization of sin and cos)

Solution sub-exercise 1:

We consider the auxiliary function

h~:ℝ→ℝ, h~(x)=s2(x)+c2(x)

where s and c fulfil the conditions from above. Then h~ is differentiable by the sum and chain rule, and

h~′(x)=2s(x)s′(x)+2c(x)c′(x)=2s(x)c(x)+2c(x)(−s(x))=2s(x)c(x)−2s(x)c(x)=0

According to the criterion for constancy, there is h~(x)=c~ for some c∈ℝ. We have

h~(0)=s2(0)+c2(0)=02+12=1

So c~=1 and we get the claim h~(x)=s2(x)+c2(x)=1.

Solution sub-exercise 2:

We consider the differential auxiliary function

ĥ:ℝ→ℝ,ĥ(x)=(sin⁡(x)−s(x))2+(cos⁡(x)−c(x))2

For this function

ĥ′(x)=2(sin⁡(x)−s(x))(cos⁡(x)−s′(x))+2(cos⁡(x)−c(x))(−sin⁡(x)+c′(x))=assumption2(sin⁡(x)−s(x))(cos⁡(x)−c(x))+2(cos⁡(x)−c(x))(−sin⁡(x)−s(x))=2(sin⁡(x)−s(x))(cos⁡(x)−c(x))−2(cos⁡(x)−c(x))(sin⁡(x)+s(x))=0

According to the criterion for constancy, there is ĥ(x)=ĉ with ĉ∈ℝ. We have

ĥ(0)=(sin⁡(0)−s(0))2+(cos⁡(0)−c(0))2=(0−0)2+(1−1)2=02+02=0

So ĥ(x)=(sin⁡(x)−s(x))2+(cos⁡(x)−c(x))2=0. Now both (sin⁡(x)−s(x))2≥0 and (cos⁡(x)−c(x))2≥0 for all x∈∈ℝ. In order for the sum (sin⁡(x)−s(x))2+(cos⁡(x)−c(x))2 to be zero, both summands (sin⁡(x)−s(x))2 and (sin⁡(x)−s(x))2 must be zero. That means

(sin⁡(x)−s(x))2=0⟹sin⁡(x)−s(x)=0⟹sin⁡(x)=s(x)(cos⁡(x)−c(x))2=0⟹cos⁡(x)−c(x)=0⟹cos⁡(x)=c(x)

So s=sin and c=cos, which is what we wanted to show.