I have a function in my .sty sheet that does a second partial derivative:
\newcommand{\hpartdsq}[2]{\dfrac{\partial^2 #1}{\partial #2 ^2}}
But I'd like to pass it something that already has a superscript (today it's \rho^*).
Is there a way to do this with this function? I feel like wrapping the \rho^* with parentheses would really kill the aesthetics and is not typical for second partial derivatives. Thanks!