Find local extrema and saddle points of the function $$f(x,y)=x \sin y$$
I just want to make sure that I'm understanding this correctly.
The critical points of $f(x,y)$ is at
$$\nabla f= \begin{pmatrix}\sin y \\ x \cos y\end{pmatrix}=0$$
which gives $(x,y)= (0,0)$. That is the only critical point.
Using the second derivative test gives us the following
$$f_{xx}=0, \,\,\,\,\, f_{yy}=-x\sin y, \,\,\,\,\, f_{xy}=\cos y$$
Hence
$$\begin{align} D & =f_{xx}(0,0)f_{yy}(0,0) - (f_{xy}(0,0))^2\\ & = 0 - 1^2 \\ & = -1 \\ \end{align}$$
Since $D<0 \implies$ this is a saddlepoint with no extrema. Is this correct?
EDIT: Now knowing that $$\sin y = 0 \iff y=0 \, \pm \, n\pi $$ $$x\cos y =0 \iff y=\frac{\pi}{2} \, \pm \, n\pi \,\, \text{and } \, \, x=0$$
Doing the second derivative test again gives
$$\begin{align} D & =f_{xx}(0,\pm n\pi)f_{yy}(0,\pm n\pi) - (f_{xy}(0,\pm n\pi))^2\\ & = 0 - [(\pm1)^n]^2 \\ & = -[(1)^{2n}] \\ \end{align}$$
$D<0$ for $\forall n \in \mathbb{Z} \implies $ this is a saddlepoint with no extrema.