# display square of derivative in LaTeX needs parenthesis

Using %display latex

diff(x,t)^2 is displayed in LaTeX as

\frac{\partial}{\partial t}x^2

This is confusing when looking at the LaTeX output. It should have an extra set of parenthesis

(\frac{\partial}{\partial t}x)^2

Is there a way to get this to display correctly, or to use \frac{\partial x}{\partial t}?

Indeed :

i e.$\frac{\partial}{\partial t}x\left(t\right)^{2}$.OTOH :

i.e.$2 \, x\left(t\right) \frac{\partial}{\partial t}x\left(t\right)$.No ambiguity there...