I want to write partial derivatives of functions with many arguments. Why is it that when I type
f[x,y] ctrl+6 (0,1)
it turns out to be bad syntax? The output of
looks very much like f with a superscript (0,1).
For a start,
But the real reason is that these expressions are very different in meaning, as revealed by their
versus (and I had to use a simple symbolic expression as the exponent to show what was going on:
as described in the documentation.
Verbeia is right. An alternative notation is to use escpdesc which gives a partial derivative; thus, typing escpdesc ctrl-t followed by
For instance, this is a valid way to specify a differential equation:
This is closer to what you're after than
What internally makes the superscript behave as a
If you show this with
Edit: Of course one should never say it can't be done. I just stumbled over
then use EscdrvEsc to insert a corresponding template which you can fill by jumping from placeholder to placeholder using Tab. You could of course alternatively add such rules to your preferred stylesheet.
I have a function called "AbleitungsForm" (Ableitung is german for Derivative) which is based on an answer I found here in SE. I coudn't find the original answer. It looks like this:
You may switch the display of derivatives on or off by calling
Normally this changes the display for TraditionalForm only.
There are two Options:
The function changes the
As @Sjoerd pointed out, you can't paste the displayed expression as is (it's a
There is another way to input derivatives for people who really like
The first one is achieved with the code I posted in this MathGroup thread.
But the more we tweak the output to look like classical math typesetting, the more incongruous the
I think the question in this post really is concerned with this disconnect. So I thought it's worth addressing how this can be bridged if you do decide to massage
One possible way is to enter equations in TraditionalForm, too (not just output them that way). With the default settings, Mathematica doesn't exactly make this completely smooth (because it rightfully wants to avoid the potential ambiguities of
To enter a partial derivative like the one above in the same form as above, the steps are as follows (trying to give a detailed description, but assuming you know how to input superscripts etc.):
Now you can evaluate the cell. Mathematica will ask if you want to evaluate the input, and we have to confirm that we do. The point of this exercise is that you can in principle input expressions for (partial) derivatives in exactly the same form as they look in the $\LaTeX$-like