Detailed Explanation
A first-order differential equation is called homogeneous if it can be written as \(\frac{dy}{dx} = F\left(\frac{y}{x}\right)\), that is, every term has the same total degree. Such equations are solved by the substitution \(y = vx\), where \(v\) is a function of \(x\). Differentiating gives \(\frac{dy}{dx} = v + x\frac{dv}{dx}\). This substitution converts the equation into a variables-separable form, which we then integrate. Finally, we substitute back \(v = \frac{y}{x}\) and use the given condition to determine the constant of integration.
Formula Used
Substitution: \(y = vx\), so \(\frac{dy}{dx} = v + x\frac{dv}{dx}\). Useful integral: \(\int \csc^2 v \, dv = -\cot v + C\).
Solution
- Step 1: Rewrite the equation in the form \(\frac{dy}{dx}\). The given equation is \[\left[x\sin^2\left(\frac{y}{x}\right) - y\right]dx + x\, dy = 0.\] Rearranging, \[x\, dy = -\left[x\sin^2\left(\frac{y}{x}\right) - y\right]dx,\] so \[\frac{dy}{dx} = \frac{y - x\sin^2\left(\frac{y}{x}\right)}{x}.\]
- Step 2: Check homogeneity. We can write \[\frac{dy}{dx} = \frac{y}{x} - \sin^2\left(\frac{y}{x}\right).\] The right-hand side depends only on \(\frac{y}{x}\), so this is a homogeneous differential equation.
- Step 3: Apply the substitution \(y = vx\). Then \[\frac{dy}{dx} = v + x\frac{dv}{dx}.\] Substituting into the equation gives \[v + x\frac{dv}{dx} = v - \sin^2 v.\]
- Step 4: Simplify to a variables-separable form. Cancelling \(v\) from both sides, \[x\frac{dv}{dx} = -\sin^2 v.\] Separating the variables, \[\frac{dv}{\sin^2 v} = -\frac{dx}{x},\] which can be written as \[\csc^2 v \, dv = -\frac{dx}{x}.\]
- Step 5: Integrate both sides. \[\int \csc^2 v \, dv = -\int \frac{dx}{x}.\] This gives \[-\cot v = -\ln|x| + C.\] Multiplying by \(-1\), \[\cot v = \ln|x| - C.\] Writing \(-C\) as a new constant \(C_1\), \[\cot v = \ln|x| + C_1.\]
- Step 6: Substitute back \(v = \frac{y}{x}\). The general solution is \[\cot\left(\frac{y}{x}\right) = \ln|x| + C_1.\]
- Step 7: Apply the initial condition \(y = \frac{\pi}{4}\) when \(x = 1\). Then \(\frac{y}{x} = \frac{\pi}{4}\), and \[\cot\left(\frac{\pi}{4}\right) = \ln 1 + C_1.\] Since \(\cot\frac{\pi}{4} = 1\) and \(\ln 1 = 0\), we get \[1 = 0 + C_1 \Rightarrow C_1 = 1.\]
- Step 8: Write the particular solution by substituting \(C_1 = 1\). \[\cot\left(\frac{y}{x}\right) = \ln|x| + 1.\]
Final Answer
The particular solution is \[\cot\left(\frac{y}{x}\right) = \ln|x| + 1.\]
Common Mistake
A common mistake is forgetting to replace \(v\) back with \(\frac{y}{x}\) after integrating, or writing the integral of \(\csc^2 v\) incorrectly. Remember \(\int \csc^2 v \, dv = -\cot v + C\), and always substitute back before applying the initial condition.