Consider the following maximization problem $$\max_{\{\tau(\cdot),q(\cdot)\}}\int_{\underline{\theta}}^{\bar{\theta}}\left(\theta q(\theta)-\dfrac{\gamma\sigma^{2}}{2}q^2(\theta)-\tau(\theta)\right)f(\theta)d\theta$$ subject to $$\int_{\underline{\theta}}^{\bar{\theta}}\left(\tau(\theta)-v(\theta)q(\theta)\right)f(\theta)d\theta\geq\underline{\pi}$$ where $\theta=s-\gamma\sigma^2 I$ and has a bounded support, $[\underline{\theta},\bar{\theta}]$, $\gamma\sigma^2>0$ and $s\sim N(\bar{s},\sigma_1^{2})$ and $I\in\mathbb{R}$. The functions $u(\cdot)$, $\tau(\cdot)$ and $q(\cdot)$ are linear with respect to $\theta$, $\underline{\pi}$ is a constant and $f(\theta)$ is the pdf of the normal distribution.
This is a problem of the Biais, Rochet and Martimont paper in 2000 problem in subsection $3.5$. I am a little confused with the constraint and I can not understand how to solve it. It is not obvious to me. Thank you in advance!
$\underline{Hint:}$ They do not explicitly assumme that the $\theta$ variable follows a normal distribution, but this has nothing to do with the optimization problem.
$\underline{Comments?:}$ I know it has been time but, to sum up the paper of Biais, Rochet and Martimont uses the calculus of variations, isn't it? I am a little confused because I thought that you can use the calculus of variations only in case you have the time dimension in your problem. As I can see, and correct me if I am mistaken, by this paper, their model is some type of a static one, isn't it?