I am interested in calculating the critical points of a Wigner function $$ W(x,p)=\frac{1}{\pi}\int_{-\infty}^\infty\left\langle x+y\middle|\rho\middle|x-y\right\rangle e^{-2ipy}\mathrm{d}y $$ Unfortunately, my knowledge of calculus and linear algebra is only rudimentary. I know that I can do this by calculating the first and second partial derivatives with respect to $x$ and $p$, but I have no idea how to evaluate $$ \frac{\partial}{\partial x} \left\langle x+y \middle |\rho \middle| x-y\right\rangle $$ In particular, I am not even sure how $\left|x\right\rangle$ should look in this expression for an arbitrary $\rho$. Does it depend on the basis in which $\rho$ is written?
Aside from that, I was wondering if there is a more straightforward (established maybe? I found nothing so far) way of calculating the critical points of a Wigner function.