I want to display something like:
My current attempt is :
\begin{equation}
Z=min E \int_{0}^{\infty} exp(-\rho t)\{ \alpha^2[r(t)-x(t)]^2+[\lambda ^ {-1}\frac{\dd{x(t)}}{\dd{t}}]^2 \} \dd{t}
\end{equation}
I have defined a macro dd above as (this uses physics package):
\newcommand{\dd}[1]{\mathrm{d}#1}
How should I go about doing this? I am okay with using any other packages if they allow to display this better.


equationblock isn't there! Everything else and otherequationgets displayed. I don't understand what am I doing wrong here. Edit I forgot closing$above so not getting displayed issue is resolved. :) – Karup Dec 15 '15 at 14:04\ddis\newcommand{\dd}[1]{\mathop{}\!\mathrm{d}#1}. I'd use an italic “d”, but that's personal preference by a mathematician.;-)This definition avoids the need of preceding the differential with\,. – egreg Dec 15 '15 at 14:11\\\before + solve that? @egreg Thanks for that! – Karup Dec 15 '15 at 14:13equationenvironment by itself only allows a single line. if you need more than one line, a different (either separate, e.g.align, or a subenvironment, e.g.split) must be used. and in that case, there are restrictions on how\leftand\rightcan be used. take a look at Brackets in two different align “lines” – barbara beeton Dec 15 '15 at 14:25