Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to express a second derivative with two dots above the variable. You can do this with a first derivative by saying:

f[x_] := OverDot[x];
Print[HoldForm[f[x]], " == ", f[x]]

Is there a possible syntax to do this with the second derivative?

share|improve this question

migrated from Jan 30 '12 at 16:05

This question came from our site for professional and enthusiast programmers.

up vote 11 down vote accepted
g[x_] := Overscript[x, ".."]
Print[HoldForm[g[x]], " == ", g[x]]

You could use AdjustmentBox to tweak the two dots, but maybe this is not necessary.

share|improve this answer
Awesome, this works just how I want it to. -- Thanks – Napthali Jan 28 '12 at 21:27

You may also find utility in this:

Format[f''[x_]] := Overscript[x, ".."]


See the documentation for Format for more information.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.