3
$\begingroup$

I am trying to work out how I enter a differential in standard notation? I am familiar with using D, but everything I have tried to enter a differential has failed. The documentation says Esc+d+d+Esc. When I enter that, I then have to enter Ctrl+/ for the denominator followed by Esc+d+d+Esc again followed by x, assuming I am differentiating w.r.t. x. But that leaves me with the problem of how to enter the function I want to differentiate. Even using the math palettes I cannot get this to work. Integrals etc are fine, but I cannot figure out how to enter a derivative w.r.t. some variable.

$\endgroup$
4
  • 1
    $\begingroup$ If you need working code (not just typesetting), try this: ESC pd ESC CTRL - x RIGHT f[x]. That "-" is the actual "minus" key. Admittedly it is not exactly the standard notation. $\endgroup$
    – Szabolcs
    Commented Feb 7, 2014 at 22:55
  • 1
    $\begingroup$ This still doesn't show it in standard notation i.e d/dx instead it shows d with subscript of x ? $\endgroup$ Commented Feb 7, 2014 at 22:59
  • $\begingroup$ You may be interested in @Jens answer traditional output of derivatives $\endgroup$
    – Kuba
    Commented Feb 7, 2014 at 23:08
  • 2
    $\begingroup$ @DavidMcHarg What is it exactly that you need? 1. Type it in for display? 2. Type in code that both looks good and it can be evaluated? (difficult, and IMO not worth it) 3. Format the output of evaluations this way? (see the link above) $\endgroup$
    – Szabolcs
    Commented Feb 8, 2014 at 2:43

1 Answer 1

3
$\begingroup$

One thing you can do is the following. Start by entering a derivative in a cell with StandardForm, for example:

D[f[x], x]

or

Dt[f[x], {x, 2}]

You can then select the cell (via the bracket at the right of the window) and either

  1. Type CMD+Shift+T (or Ctrl+Shift+T on Windows), or
  2. select from the menu Cell > Convert To > TraditionalForm

You should now have an Input cell which has been converted to TraditionalForm; for the examples above this results in

a partial derivative

or

a second, total derivative

At this point you can set your cursor where the f(x) is and replace it with any expression you prefer. Note that you may need to use grouping parentheses ( ) to ensure the correct derivative is taken. For example,

enter image description here

or

enter image description here

The above forms aren't the most attractive. Interestingly, however, if you again select the cell, which is now an Input cell in TraditionalForm, you can switch back to StandardForm and again back to TraditionalForm (see 1 or 2 above) and it 'cleans' up the display; in this case it removes the parentheses but still give the correct derivative as Output.

Of course, you can input the expression for which you want the derivative in StandardForm when you begin, but it doesn't sound like that's what you're after.

$\endgroup$
1
  • $\begingroup$ @mr-wizard Thanks for the textual clean-up! I'll try to do it this way in the future. $\endgroup$ Commented Feb 8, 2014 at 11:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.