$$\int^{x}_{0}tf(t)dt = x\sin(x)+\cos(x)-1$$ find $f(\pi), f'(x)$
This question confuses me because usually, the way I have seen questions like these, they have been in the form:
$$H(x) = \int^{x}_{a} f(t)dt$$
This form is kind of different so I am not sure how I would solve it.
My thinking:
$f(\pi) = x\sin(\pi)+\cos(\pi)-1$
$f'(x) = x\cos(x)$
Is this correct?
I'm afraid your answer is incorrect.
If you differentiate both sides, like normal, then using the product rule, we get that $$ xf(x)=x\cos x \iff f(x)=\cos x$$ So $f(\pi)=-1, f'(x)=-\sin x$.
EDIT
As pointed out by @celtschk, we require that $f(x)$ is continous in order for this to work. This is because for us to know for certain $$\frac {d}{dx}\int_{0}^{x} g(t) \mathrm {d}t =g(x)$$ for all $x$ we require something such as the continuity of $xf(x)$ for this solution to be true. Also, we need $f (x) $ to be continuous because of the issues in $f (0) $.