Proving there is a constant $C$ such that $f=g+C$

Consider the following lemma:

Lemma: Let $f:[a,b]tomathbb{R}$ continuous on $[a,b]$ and differentiable on $(a,b)$, If $f'(x)=0$ for all $xin [a,b]$, then $f$ is constant on $[a,b]$.

I have to prove the following corollary:

Corollary: If $f$ and $g$ are continuous functions on $[a,b]$, differentiable on $(a,b)$, and $f'(x)=g'(x)$ for all $xin(a,b)$, then there exists a constant $C$ such that $f=g+C$.

My attempt: Consider the function $h(x)=f(x)-g(x)$. We have that $h'(x)=f'(x)-g'(x)=0$ for all $xin(a,b)$. By the lemma we have that $h$ is constant on $[a,b]$. In other words, $h(x)=C$, where $Cinmathbb{R}$ is a constant. Then, $C=f(x)-g(x)$ in $[a,b]$. We conclude that $C+g(x)=f(x)$.

Is this proof correct?

Mathematics Asked by user926356 on December 30, 2020

0 Answers

Add your own answers!

Related Questions

Does this lead to a contradiction within ZF?

1  Asked on December 14, 2020 by quanticbolt


multiplicity of functions

0  Asked on December 14, 2020 by mathh


Find the angle that lets you make a bendy pipe

1  Asked on December 13, 2020 by john-porter


Set of open sets notation

1  Asked on December 12, 2020 by jpmarulandas


Proof by contradiction(sets)

1  Asked on December 12, 2020 by jasdeep-singh


Series Expansion by differentiation

1  Asked on December 12, 2020 by dodgevipert56


Ask a Question

Get help from others!

© 2022 All rights reserved.