Let $F: \mathbb{R} \to \mathbb{R}$ be a function, $F(x)=\int_{\pi e^x}^{\cos(x)} \cos (t) dt$.
Find $F'(x)$.
I can't get to the correct answer which is $\pi (-e^x) \cos(\pi e^x) - \sin(x) \cos(\cos(x))$.
I used the chain rule, first with the upper bound:
$\cos(\cos(x))(-\sin(x))$.
And then with the lower bound:
$\cos(\pi e^x)(e^x)$.
So $F'(x)=\cos(\cos(x))(-\sin(x))-\cos(\pi e^x)(e^x)$? Am I missing something?
You miss a $\pi$: $$ F'(x)=\cos(\cos(x))(-\sin(x))-\cos(\pi e^x)(e^x)\color{red}{\pi}. $$
Note that $$ \frac{d}{dx}(\pi e^x)=\pi e^x. $$