Detailed Explanation
To verify that a function is a solution of a differential equation, we do not solve the equation. Instead, we take the given function, compute the derivatives that appear in the equation, and substitute everything into the equation. If the Left Hand Side (LHS) becomes equal to the Right Hand Side (RHS), the function is a valid solution. Here the function is \( y = x \sin x \), and the differential equation is \( xy' = y + x\sqrt{x^2 - y^2} \). We must find \( y' \), substitute into both sides, and check that they match. The condition \( x > y \) or \( x < -y \) ensures the square root term is real and correctly signed.
Formula Used
Product rule: \( \dfrac{d}{dx}(uv) = u'v + uv' \). Given \( y = x\sin x \), verify \( xy' = y + x\sqrt{x^2 - y^2} \).
Solution
- Step 1: Write down the given function. \[ y = x \sin x \] We will differentiate this to find \( y' \) so it can be substituted into the differential equation.
- Step 2: Differentiate using the product rule, treating \( y \) as a product of \( x \) and \( \sin x \). \[ y' = \frac{d}{dx}(x \sin x) = (1)\sin x + x\cos x \] So \[ y' = \sin x + x\cos x \]
- Step 3: Compute the Left Hand Side (LHS) of the differential equation, which is \( xy' \). \[ xy' = x(\sin x + x\cos x) = x\sin x + x^2 \cos x \]
- Step 4: Now prepare the RHS. First simplify the term under the square root using \( y = x\sin x \). \[ x^2 - y^2 = x^2 - (x\sin x)^2 = x^2 - x^2\sin^2 x \] Factor out \( x^2 \). \[ x^2 - y^2 = x^2(1 - \sin^2 x) = x^2 \cos^2 x \]
- Step 5: Take the square root. Since the given conditions ensure the term is positive, \[ \sqrt{x^2 - y^2} = \sqrt{x^2 \cos^2 x} = x\cos x \] Here we use \( \sqrt{x^2\cos^2 x} = x\cos x \) under the stated conditions.
- Step 6: Substitute into the Right Hand Side (RHS), which is \( y + x\sqrt{x^2 - y^2} \). \[ y + x\sqrt{x^2 - y^2} = x\sin x + x(x\cos x) \] Simplify. \[ = x\sin x + x^2 \cos x \]
- Step 7: Compare both sides. \[ \text{LHS} = x\sin x + x^2\cos x \] \[ \text{RHS} = x\sin x + x^2\cos x \] Since LHS = RHS, the function satisfies the differential equation.
Final Answer
Since \( xy' = x\sin x + x^2\cos x \) equals \( y + x\sqrt{x^2 - y^2} = x\sin x + x^2\cos x \), the function \( y = x\sin x \) is a solution of the given differential equation.
Common Mistake
A common mistake is forgetting the product rule and writing \( y' = \cos x \) instead of \( y' = \sin x + x\cos x \). Another frequent error is mishandling the square root: students may incorrectly simplify \( \sqrt{x^2\cos^2 x} \) without noting that the given conditions make it equal to \( x\cos x \).