Determine all pairs $(a,b)$ of real numbers with $a\leqslant b$ that maximise the integral $$\int_a^b e^{\cos (x)}(380-x-x^2) \mathrm{d} x.$$
Source: Simon Marais MC 2019 B1
Tags: calculus, integration
Determine all pairs $(a,b)$ of real numbers with $a\leqslant b$ that maximise the integral $$\int_a^b e^{\cos (x)}(380-x-x^2) \mathrm{d} x.$$