# Constant functions – Serlo

Zur Navigation springen Zur Suche springen

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

## Criterion for constant functions

Theorem

Let ${\displaystyle I\subseteq \mathbb {R} }$ be an interval and ${\displaystyle f:I\to \mathbb {R} }$ a differentiable function with ${\displaystyle f'(x)=0}$ for all ${\displaystyle x\in I}$. Then ${\displaystyle f}$ is constant.

Proof

Let ${\displaystyle a,b\in I}$ with ${\displaystyle a be given. Let further ${\displaystyle f}$ be differentiable on ${\displaystyle [a,b]}$ such that for all ${\displaystyle \xi \in I}$ we have ${\displaystyle f'(\xi )=0}$. By the mean value theorem there is a ${\displaystyle \xi \in (a,b)}$ with

${\displaystyle f'(\xi )={\frac {f(b)-f(a)}{b-a}}}$

We know that ${\displaystyle f'(\xi )=0}$ must hold. So:

${\displaystyle 0=f'(\xi )={\frac {f(b)-f(a)}{b-a}}}$

Since ${\displaystyle a there is ${\displaystyle b-a\neq 0}$. Now we multiply both sides with ${\displaystyle (b-a)}$ :

${\displaystyle f(b)-f(a)=0\cdot (b-a)=0}$

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

## Identity theorem of differential calculus

The first conclusion of ${\displaystyle 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 ${\displaystyle f,g:[a,b]\to \mathbb {R} }$ be two differentiable functions with ${\displaystyle f'=g'}$. Then, there is ${\displaystyle f(x)=g(x)+c}$ for all ${\displaystyle x\in [a,b]}$. Where ${\displaystyle c\in \mathbb {R} }$ is a constant number.

Proof (Identity theorem)

We define the auxiliary function

${\displaystyle h:[a,b]\to \mathbb {R} ,\ h(x)=f(x)-g(x)}$

This function is differentiables ince ${\displaystyle f}$ and ${\displaystyle g}$ are differentiable and

${\displaystyle h'(x)=f'(x)-g'(x){\overset {f'=g'}{=}}0}$

Hence, there must be ${\displaystyle h(x)=f(x)-g(x)=c}$ for all ${\displaystyle x\in [a,b]}$ with a constant number ${\displaystyle c\in \mathbb {R} }$. Or equivalently,

${\displaystyle f(x)=g(x)+c}$

## Application: characterization of the exponential function

Theorem (Characterization of the exponential function)

Let ${\displaystyle f:\mathbb {R} \to \mathbb {R} }$ be differentiable. Further let ${\displaystyle \lambda \in \mathbb {R} }$ and for all ${\displaystyle x\in \mathbb {R} }$ we have

${\displaystyle f'(x)=\lambda f(x)}$

Then, there is ${\displaystyle f(x)=c\exp(\lambda x)}$ for all ${\displaystyle x\in \mathbb {R} }$ with a constanten ${\displaystyle c\in \mathbb {R} }$. If ${\displaystyle \lambda =1}$ and in addition ${\displaystyle f(0)=1}$, then precisely ${\displaystyle f=\exp }$.

Proof (Characterization of the exponential function)

We define the auxiliary function

${\displaystyle h:\mathbb {R} \to \mathbb {R} ,\ h(x)=f(x)\exp(-\lambda x)}$

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

{\displaystyle {\begin{aligned}h'(x)&=f'(x)\exp(-\lambda x)+f(x)\exp(-\lambda x)(-\lambda )\\&=\lambda f(x)\exp(-\lambda x)-\lambda f(x)\exp(-\lambda x)=0\end{aligned}}}

According to the criterion for a function being constant there is a ${\displaystyle c\in \mathbb {R} }$ with ${\displaystyle h(x)=f(x)\exp(-\lambda x)=c}$ for all ${\displaystyle x\in [a,b]}$. But this is now equivalent to

${\displaystyle f(x)=c\exp(\lambda x)}$

If now ${\displaystyle \lambda =1}$ and additionally ${\displaystyle f(0)=1}$, then

${\displaystyle f(0)=c\exp(0)=c=1}$

So ${\displaystyle f=\exp }$.

Hint

Alternatively we can write ${\displaystyle h}$ as ${\displaystyle h(x)={\tfrac {f(x)}{\exp(\lambda x)}}}$ and apply the quotient rule to determine the derivative ${\displaystyle h'}$. Furthermore, the function ${\displaystyle f(x)=c\exp(\lambda x)}$ satisfies the differential equation ${\displaystyle f'=\lambda f}$, since there is:

${\displaystyle f'(x)=c\exp '(\lambda x)=c\lambda \exp(\lambda x)=\lambda c\exp(\lambda x)=\lambda f(x)}$

## Exercises

### Interval assumption for constant functions

The condition that the function ${\displaystyle 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 ${\displaystyle f:D\to \mathbb {R} }$ with ${\displaystyle D\subseteq \mathbb {R} }$ and ${\displaystyle f'(x)=0}$ for all ${\displaystyle x\in D}$ which is not constant.

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

Solution

The function ${\displaystyle f}$

We define ${\displaystyle D:=(0,1)\cup (2,3)}$ and set ${\displaystyle f}$

${\displaystyle f:D\to \mathbb {R} ,x\mapsto {\begin{cases}0&x\in (0,1)\\1&x\in (2,3)\end{cases}}}$

The function ${\displaystyle f}$ is obviously not constant. But for all ${\displaystyle {\tilde {x}}\in D}$ there is ${\displaystyle f'({\tilde {x}})=0}$.

For proving this we first consider a ${\displaystyle {\tilde {x}}\in ]0,1[}$. Let ${\displaystyle (x_{n})_{n\in \mathbb {N} }}$ be a sequence in ${\displaystyle D\setminus \lbrace {\tilde {x}}\rbrace }$ which converges towards ${\displaystyle {\tilde {x}}}$. Then there is an ${\displaystyle N\in \mathbb {N} }$ such that for all ${\displaystyle n>N}$ the inequality ${\displaystyle x_{n}=|x_{n}|\leq 2}$ is fulfilled. From this we get ${\displaystyle x_{n}\in (0,1)}$. There is hence${\displaystyle f(x_{n})=0}$ for all ${\displaystyle n>N}$ and

${\displaystyle {\frac {f(x_{n})-f({\tilde {x}})}{x_{n}-{\tilde {x}}}}={\frac {0-0}{x_{n}-{\tilde {x}}}}=0}$

So:

${\displaystyle f'({\tilde {x}})=\lim _{x\to {\tilde {x}}}{\frac {f(x)-f({\tilde {x}})}{x-{\tilde {x}}}}=0}$

The proof that also for all ${\displaystyle {\tilde {x}}\in (2,3)}$ the equation ${\displaystyle f'({\tilde {x}})=0}$ is fulfilled goes completely analogous.

### Trigonometric Pythagorean theorem

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

Exercise (Trigonometric Pythagorean theorem)

Show that for all ${\displaystyle x\in \mathbb {R} }$ there is

${\displaystyle \sin ^{2}(x)+\cos ^{2}(x)=1}$

Here, ${\displaystyle \sin ^{2}(x)=\sin(x)\cdot \sin(x)}$ and ${\displaystyle \cos ^{2}(x)=\cos(x)\cdot \cos(x)}$.

Solution (Trigonometric Pythagorean theorem)

We define the auxiliary function

${\displaystyle h:\mathbb {R} \to \mathbb {R} ,\ h(x)=\sin ^{2}(x)+\cos ^{2}(x)}$

According to the chain and sum rule for derivatives, this is differentiable on all of ${\displaystyle \mathbb {R} }$, and there is

{\displaystyle {\begin{aligned}h'(x)&=2\sin(x)\cos(x)+2\cos(x)(-\sin(x))\\&=2\sin(x)\cos(x)-2\sin(x)\cos(x)=0\end{aligned}}}

Thus ${\displaystyle h}$ is a constant number ${\displaystyle c}$. We can determine it by calculating ${\displaystyle h(0)}$:

${\displaystyle h(0)=\sin ^{2}(0)+\cos ^{2}(0)=0^{2}+1^{2}=1}$

So ${\displaystyle h}$ is constant ${\displaystyle 1}$ and there is:

${\displaystyle h(x)=\sin ^{2}(x)+\cos ^{2}(x)=1}$

### Function equation for arctan

Exercise (Function equation for ${\displaystyle \arctan }$)

Show: ${\displaystyle \arctan(x)+\arctan({\tfrac {1}{x}})={\tfrac {\pi }{2}}}$ for ${\displaystyle x>0}$

Solution (Function equation for ${\displaystyle \arctan }$)

We define ${\displaystyle f:\mathbb {R} ^{+}\to \mathbb {R} }$ and ${\displaystyle f(x)=\arctan(x)+\arctan({\tfrac {1}{x}})}$. The function ${\displaystyle f}$ is differentiable on ${\displaystyle \mathbb {R} ^{+}}$ according to the sum and chain rule for derivatives. Now,

{\displaystyle {\begin{aligned}f'(x)&={\frac {1}{1+x^{2}}}+{\frac {1}{1+{\frac {1}{x^{2}}}}}\cdot {\frac {-1}{x^{2}}}\\[0.5em]&={\frac {1}{1+x^{2}}}-{\frac {1}{1+x^{2}}}=0\end{aligned}}}

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

${\displaystyle f(1)=\arctan(1)+\arctan(1)={\frac {\pi }{4}}+{\frac {\pi }{4}}={\frac {\pi }{2}}}$

Here, we used that ${\displaystyle \tan \left({\tfrac {\pi }{4}}\right)=1}$ and hence ${\displaystyle \arctan(1)={\tfrac {\pi }{4}}}$. This implies our claim.

### Exercise: identity theorem

Exercise (Logarithm representation of the arsinh)

Show that for all ${\displaystyle x\in \mathbb {R} }$ there is

${\displaystyle \operatorname {arsinh} (x)=\ln \left(x+{\sqrt {x^{2}+1}}\right)}$

Proof (Logarithm representation of the arsinh)

The function ${\displaystyle f:\mathbb {R} \to \mathbb {R} ,\ f(x)=\operatorname {arsinh} (x)}$ is differentiable on all of ${\displaystyle \mathbb {R} }$, see also the by the examples for derivatives. Its derivative is

${\displaystyle f'(x)={\frac {1}{\sqrt {x^{2}+1}}}}$

by the chain and sum rule, the function ${\displaystyle g:\mathbb {R} \to \mathbb {R} ,\ g(x)=\ln \left(x+{\sqrt {x^{2}+1}}\right)}$ is differentiable on all of ${\displaystyle \mathbb {R} }$ . There is:

{\displaystyle {\begin{aligned}g'(x)&={\frac {1}{x+{\sqrt {x^{2}+1}}}}\cdot \left(1+{\frac {2x}{2{\sqrt {x^{2}+1}}}}\right)\\[0.3em]&={\frac {1}{x+{\sqrt {x^{2}+1}}}}\cdot \left({\frac {{\sqrt {x^{2}+1}}+x}{\sqrt {x^{2}+1}}}\right)\\[0.3em]&={\frac {1}{\sqrt {x^{2}+1}}}\end{aligned}}}

We have ${\displaystyle f'(x)=g'(x)}$ for all ${\displaystyle x\in \mathbb {R} }$ so by the identity theorem, ${\displaystyle f(x)=g(x)+c}$ with a constant ${\displaystyle c}$. But now, since ${\displaystyle \sinh(0)=0}$:

${\displaystyle f(0)=\operatorname {arsinh} (0)=0}$

${\displaystyle g(0)=\ln \left(0+{\sqrt {0^{2}+1}}\right)=0}$

So ${\displaystyle c=0}$ which implies the claim.

### Characterization of sin and cos

Exercise (Characterization of sin and cos)

Let ${\displaystyle s,c:\mathbb {R} \to \mathbb {R} }$ be two differentiable functions with

{\displaystyle {\begin{aligned}s'&=c,&s(0)&=0\\c'&=-s,&c(0)&=1\end{aligned}}}

Prove that:

1. There is ${\displaystyle s^{2}(x)+c^{2}(x)=1}$ for all ${\displaystyle x\in \mathbb {R} }$
2. There is exactly one pair of functions which meets the above conditions, namely ${\displaystyle s=\sin }$ and ${\displaystyle c=\cos }$.

Hint: Consider the help function in the second sub-task ${\displaystyle {\hat {h}}(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

${\displaystyle {\tilde {h}}:\mathbb {R} \to \mathbb {R} ,\ {\tilde {h}}(x)=s^{2}(x)+c^{2}(x)}$

where ${\displaystyle s}$ and ${\displaystyle c}$ fulfil the conditions from above. Then ${\displaystyle {\tilde {h}}}$ is differentiable by the sum and chain rule, and

{\displaystyle {\begin{aligned}{\tilde {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\end{aligned}}}

According to the criterion for constancy, there is ${\displaystyle {\tilde {h}}(x)={\tilde {c}}}$ for some ${\displaystyle c\in \mathbb {R} }$. We have

${\displaystyle {\tilde {h}}(0)=s^{2}(0)+c^{2}(0)=0^{2}+1^{2}=1}$

So ${\displaystyle {\tilde {c}}=1}$ and we get the claim ${\displaystyle {\tilde {h}}(x)=s^{2}(x)+c^{2}(x)=1}$.

Solution sub-exercise 2:

We consider the differential auxiliary function

${\displaystyle {\hat {h}}:\mathbb {R} \to \mathbb {R} ,{\hat {h}}(x)=(\sin(x)-s(x))^{2}+(\cos(x)-c(x))^{2}}$

For this function

{\displaystyle {\begin{aligned}{\hat {h}}'(x)&=2(\sin(x)-s(x))(\cos(x)-s'(x))+2(\cos(x)-c(x))(-\sin(x)+c'(x))\\&{\overset {\text{assumption}}{=}}2(\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\end{aligned}}}

According to the criterion for constancy,there is ${\displaystyle {\hat {h}}(x)={\hat {c}}}$ with ${\displaystyle {\hat {c}}\in \mathbb {R} }$. We have

{\displaystyle {\begin{aligned}{\hat {h}}(0)&=(\sin(0)-s(0))^{2}+(\cos(0)-c(0))^{2}\\&=(0-0)^{2}+(1-1)^{2}\\&=0^{2}+0^{2}=0\end{aligned}}}

So ${\displaystyle {\hat {h}}(x)=(\sin(x)-s(x))^{2}+(\cos(x)-c(x))^{2}=0}$. Now both ${\displaystyle (\sin(x)-s(x))^{2}\geq 0}$ and ${\displaystyle (\cos(x)-c(x))^{2}\geq 0}$ for all ${\displaystyle x\in \in \mathbb {R} }$. In order for the sum ${\displaystyle (\sin(x)-s(x))^{2}+(\cos(x)-c(x))^{2}}$ to be be zero, both summands ${\displaystyle (\sin(x)-s(x))^{2}}$ and ${\displaystyle (\sin(x)-s(x))^{2}}$ must be zero. That means

{\displaystyle {\begin{aligned}(\sin(x)-s(x))^{2}=0\implies \sin(x)-s(x)=0\implies \sin(x)=s(x)\\(\cos(x)-c(x))^{2}=0\implies \cos(x)-c(x)=0\implies \cos(x)=c(x)\end{aligned}}}

So ${\displaystyle s=\sin }$ and ${\displaystyle c=\cos }$, which is what we wanted to show.