I'm going through a proof for the mean value theorem.
We have a function $f(x)$ continuous on $[a, b]$ and differentiable on $(a, b)$.
Then we define a function $g(x)$ to be the secant line passing through $(a, f(a))$ and $(b, f(b))$.
The slope of said secant is:
$$m=\frac{f(b)-f(a)}{b-a}$$
That is clear. Now the proof I'm following defines $g(x)$ like so:
$$g(x) = \left[ \frac{f(b)-f(a)}{b-a} \right](x-a)+f(a)$$
What confuses me: why is the coefficient defined to be $(x-a)$ and not simply $(x)$.
Best Answer
The equation of the straight line passing through $(a,f(a)),(b,f(b))$ is given as:
$\displaystyle\frac{y-f(a)}{x-a}=\frac{f(b)-f(a)}{b-a}$
$\displaystyle\implies g(x)=y=\Big[\frac{f(b)-f(a)}{b-a}\Big](x-a)+f(a)$