I am having some trouble with this question out of Apostol's 'Calculus' Volume 1, Section 5.5 Question 19 (Page 209). This is not a homework question, I am doing this for personal study. The question is as follows:
Given a function $g$, continuous everywhere, such that $g(1) = 5$ and $\int_0^1g(t) dt = 2$. Let $f(x) = 0.5 \int_0^x (x-t)^2g(t) dt$. Prove $$ f'(x) = x\int_0^x g(t) dt - \int_0^x t g(t) dt $$ then compute $f''(1)$ and $f'''(1)$.
My thinking so far has been as follows: $$ f(x) = 0.5 \int_0^x (x-t)^2g(t) dt $$ which implies $$ f(x) = 0.5 \int_0^x (x^2-2tx +t^2)g(t) dt $$ which implies $$ 2f(x) = x^2 \int_0^x g(t) dt - 2x \int_0^x t g(t) dt + \int_0^xt^2 g(t) dt $$ Differentiating, we get: $$ 2f'(x) = 2x \int_0^x g(t) dt - 2 \int_0^x t g(t) dt $$ which implies $$ f'(x) = x\int_0^x g(t) dt - \int_0^x t g(t) dt $$ The problems I am having with this are as follows:
- I am not entirely convinced of the rigour of the argument defined above;
- I am stumped as to how to proceed with the computation of $f''(1)$ and $f'''(1)$. I think that the first fundamental theorem of calculus needs to be applied to the formula for $f'(x)$ , but for me this results in $f''(x) = 2 - xg(x)$ which would mean $f''(1) = -3$ (NB: The answers in the book are $f''(1) = 2$ and $f'''(1) = 5$). Clearly I'm missing the point somewhere.
Any suggestions and advice would be greatly appreciated.