Detailed Explanation
A first-order differential equation is called homogeneous if it can be written in the form \(\frac{dy}{dx} = F\left(\frac{y}{x}\right)\), that is, the right-hand side depends only on the ratio \(\frac{y}{x}\). For such equations we use the substitution \(y = vx\), where \(v\) is a new function of \(x\). This converts the equation into one whose variables \(v\) and \(x\) can be separated. After separating, we integrate both sides, replace \(v\) by \(\frac{y}{x}\), and finally use the given condition \(y(1) = \frac{\pi}{6}\) to fix the constant of integration.
Formula Used
Substitution for a homogeneous equation: \(y = vx\) so that \(\frac{dy}{dx} = v + x\frac{dv}{dx}\). Useful integral: \(\int \csc^2 v \, dv = -\cot v + C\).
Solution
- Step 1: Rewrite the given equation in the standard form. Starting from \(x\frac{dy}{dx} = y - x\sin^2\left(\frac{y}{x}\right)\), divide throughout by \(x\): \[\frac{dy}{dx} = \frac{y}{x} - \sin^2\left(\frac{y}{x}\right).\] The right side depends only on \(\frac{y}{x}\), so the equation is homogeneous.
- Step 2: Use the substitution \(y = vx\). Then \[\frac{dy}{dx} = v + x\frac{dv}{dx}.\] Substitute this into the equation to get \[v + x\frac{dv}{dx} = v - \sin^2 v.\]
- Step 3: Cancel \(v\) from both sides, which simplifies the equation: \[x\frac{dv}{dx} = -\sin^2 v.\] This is now a variables-separable equation.
- Step 4: Separate the variables by dividing by \(\sin^2 v\) and by \(x\): \[\frac{dv}{\sin^2 v} = -\frac{dx}{x}.\] Rewrite \(\frac{1}{\sin^2 v}\) as \(\csc^2 v\): \[\csc^2 v \, dv = -\frac{dx}{x}.\]
- Step 5: Integrate both sides. Using \(\int \csc^2 v \, dv = -\cot v\) and \(\int \frac{dx}{x} = \ln|x|\): \[-\cot v = -\ln|x| + C.\] Multiply through by \(-1\): \[\cot v = \ln|x| + C_1,\] where \(C_1 = -C\) is a constant.
- Step 6: Replace \(v\) by \(\frac{y}{x}\) to return to the original variables: \[\cot\left(\frac{y}{x}\right) = \ln|x| + C_1.\]
- Step 7: Apply the initial condition \(y(1) = \frac{\pi}{6}\). Put \(x = 1\) and \(y = \frac{\pi}{6}\), so \(\frac{y}{x} = \frac{\pi}{6}\): \[\cot\left(\frac{\pi}{6}\right) = \ln 1 + C_1.\] Since \(\cot\frac{\pi}{6} = \sqrt{3}\) and \(\ln 1 = 0\), we get \(C_1 = \sqrt{3}\).
- Step 8: Substitute the value of \(C_1\) back to obtain the particular solution: \[\cot\left(\frac{y}{x}\right) = \ln|x| + \sqrt{3}.\]
Final Answer
The particular solution is \[\cot\left(\frac{y}{x}\right) = \ln|x| + \sqrt{3}.\]
Common Mistake
A common mistake is forgetting that after substituting \(y = vx\), the derivative becomes \(\frac{dy}{dx} = v + x\frac{dv}{dx}\) (using the product rule), and instead writing only \(x\frac{dv}{dx}\). Missing the extra \(v\) term leads to a wrong equation and an incorrect solution.