If \( x \sin \left( \frac{y}{x} \right) \, dy = \sin \left( \frac{y}{x} \right) - x \, dx \) and \( y(1) = \frac{\pi}{2} \), then the value of \( \cos \left( \frac{y}{x} \right) \) is
Show Hint
When solving differential equations, use initial conditions to find the particular solution.
Step 1: Solving the differential equation.
Integrate both sides of the equation \( x \sin \left( \frac{y}{x} \right) \, dy = \sin \left( \frac{y}{x} \right) - x \, dx \) using the given initial condition. The solution leads to \( \cos \left( \frac{y}{x} \right) = \log x \).
Step 2: Conclusion.
Thus, the correct answer is option (C).