How can i go about maximising the value of the following,
$$ exp\left( -\alpha e^{rT}x -\alpha\sigma\lambda e^{rT}\int_0^T e^{-rs}\pi_sds+\frac{1}{2}(\alpha\sigma)^2 e^{2rT}\int_0^Te^{-2rs}\pi_s^2ds \right) $$
with respect to the process $(\pi_s)_{s>0}$?
Am tempted to differentiate with respect to $\pi_s$, but also not quite sure what's the right way to do that