\documentclass{article}

\usepackage{commath}

\pagestyle{empty}

\begin{document}

\begin{equation*}
  \dpd{f}{x} = x^2
\end{equation*}

\end{document}
