I want to create a new function that I called HD to give a visual way to see the derivatives. For example:

The objective is apply the function HD[f_,x_]:

HD[f_, x_] 

To obtain:

enter image description here

What I have at this moment is:

Format[HD[f_, x_]] := ("∂" f)/("∂" x)

But my result is:

In[41]:= HD[f, x]

Out[41]= f/x

What can be wrong?

  • 2
    $\begingroup$ mathematica.stackexchange.com/q/23659/5478 $\endgroup$
    – Kuba
    Jan 23 '19 at 17:26
  • 1
    $\begingroup$ If linked question does not help, let me know why. Would also be nice to respond to comments under your recent questions. $\endgroup$
    – Kuba
    Jan 23 '19 at 18:56
  • $\begingroup$ The link helps me, thanks. Sorry to respond too late. $\endgroup$
    – Mateus
    Jan 23 '19 at 19:41