# Making time differentials look like the textbook [duplicate]

I need to have time differentials to look like the 'textbook'. My code is

Dt[x y^2] /. {Dt[x] -> dx/dt, Dt[y] -> dy/dt}


which gives the output

(2 dy x y)/dt + (dx y^2)/dt.


This is very hard to follow.

My question is how can the output be made to look like

2 x y dy/dt + y^2  dx/dt


(only with dy/dt and dx/dt vertical).

Thanks.

-

## marked as duplicate by Jens, Artes, Kuba, Sjoerd C. de Vries, SzabolcsSep 3 '13 at 21:58

Strange. #[x] /. {#[x_] -> h} & /@ {Dt, g} == {Dt[x], h} – ssch Sep 3 '13 at 19:46
Welcome to Mathematica.SE! Could you please change your username to something recognizable, instead of "user9292"? Then you can remove the signature from the post itself. This will comply with the site etiquette. – Szabolcs Sep 3 '13 at 19:49
Nevermind my strangeness above, the pattern got differentiated. HoldPattern made everything better – ssch Sep 3 '13 at 19:57
Have you asked this question Basins of Attraction? If this is the case the both accounts should be merged. – Artes Sep 3 '13 at 20:52

To look at the output in TraditionalForm, either use Dt[x y^2] // TraditionalForm as the input or select the output cell and press ctrl-shift-T. In the preferences you can set TraditionalForm as the default output.