Step 1: Test whether the equation is exact.
The equation has the form $M\,dx + N\,dy = 0$ with $M = \sin x \cos y$ and $N = \cos x \sin y$.
Find the two cross derivatives.
\[ \frac{\partial M}{\partial y} = -\sin x \sin y, \qquad \frac{\partial N}{\partial x} = -\sin x \sin y \]
They are equal, so the equation is exact.
Step 2: Find the potential function.
Integrate M with respect to x, treating y as a constant.
\[ \int \sin x \cos y\,dx = -\cos x \cos y \]
The term $-\cos x \cos y$ already gives $N$ when differentiated with respect to y, so no extra function of y is needed.
Step 3: Write the general solution.
The solution is the potential function equal to a constant.
\[ \cos x \cos y = C \]
Step 4: Apply the condition y = pi/4 at x = 0.
Substitute the values: $C = (1)\left(\dfrac{1}{\sqrt{2}}\right) = \dfrac{1}{\sqrt{2}}$.
Final Answer:
The particular solution is below.
\[ \boxed{\cos x \cos y = \frac{1}{\sqrt{2}}} \]