I want to write the partial derivative of a function, while making the parameters of that function explicit, like so:
\dfrac{\partial f(x, y)}{\partial x}
But this leads to an elongated horizontal line, which I don't think looks very nice (although it's possible that this is just the right way of doing it, and I should live with it). I have seen some books where the line ends before the parentheses start, so that df and dx are aligned.
Another way is:
\dfrac{\partial f}{\partial x}(x, y)
but then the parentheses are not level with the function, and in fact, this kind of changes the meaning of the line.
- Is the first approach the standard / usual way of doing it? I've seen both approaches in textbooks and papers.
- Is there a third, more correct way of placing the parentheses, that I am not aware of?
Edit: Adding compilable code and screenshot of output.
Code that can be compiled to reproduce the two methods:
\documentclass[11pt]{scrartcl}
\usepackage{amsmath}
\title{}
\author{}
\date{}
\begin{document}
\maketitle
\begin{itemize}
\item Method 1
\begin{equation*}
\dfrac{\partial f(x, y)}{\partial x}
\end{equation*}
\item Method 2
\begin{equation*}
\dfrac{\partial f}{\partial x}(x, y)
\end{equation*}
\end{itemize}
\end{document}
Output it produces:
Thanks!