Detailed Explanation
To verify that a given function is a solution of a differential equation, we do NOT solve the equation. Instead, we take the given function, find all the derivatives that appear in the differential equation, and substitute them into the equation. If the left-hand side reduces exactly to the right-hand side (here, to 0), then the function is indeed a solution. Here the function is \( y = x\sin 3x \), which is a product of two functions, so we use the product rule to differentiate it. Since the equation involves \( \frac{d^2y}{dx^2} \), we must differentiate twice.
Formula Used
Product rule: \( \frac{d}{dx}(uv) = u\frac{dv}{dx} + v\frac{du}{dx} \). Also \( \frac{d}{dx}(\sin 3x) = 3\cos 3x \) and \( \frac{d}{dx}(\cos 3x) = -3\sin 3x \).
Solution
- Step 1: Write down the given function that we must verify: \[ y = x\sin 3x \] We will differentiate this twice and then substitute into the differential equation \( \frac{d^2y}{dx^2} + 9y - 6\cos 3x = 0 \).
- Step 2: Find the first derivative using the product rule with \( u = x \) and \( v = \sin 3x \). \[ \frac{dy}{dx} = x \cdot \frac{d}{dx}(\sin 3x) + \sin 3x \cdot \frac{d}{dx}(x) \] Since \( \frac{d}{dx}(\sin 3x) = 3\cos 3x \), we get \[ \frac{dy}{dx} = 3x\cos 3x + \sin 3x \]
- Step 3: Differentiate again to get the second derivative. Differentiate \( 3x\cos 3x \) by the product rule and differentiate \( \sin 3x \) directly. \[ \frac{d}{dx}(3x\cos 3x) = 3\cos 3x + 3x(-3\sin 3x) = 3\cos 3x - 9x\sin 3x \] Also \[ \frac{d}{dx}(\sin 3x) = 3\cos 3x \] Adding these gives \[ \frac{d^2y}{dx^2} = 3\cos 3x - 9x\sin 3x + 3\cos 3x = 6\cos 3x - 9x\sin 3x \]
- Step 4: Substitute \( \frac{d^2y}{dx^2} \) and \( y = x\sin 3x \) into the left-hand side of the differential equation. \[ \frac{d^2y}{dx^2} + 9y - 6\cos 3x \] becomes \[ (6\cos 3x - 9x\sin 3x) + 9(x\sin 3x) - 6\cos 3x \]
- Step 5: Simplify by cancelling like terms. The \( 6\cos 3x \) and \( -6\cos 3x \) cancel, and \( -9x\sin 3x + 9x\sin 3x = 0 \). \[ 6\cos 3x - 9x\sin 3x + 9x\sin 3x - 6\cos 3x = 0 \] The left-hand side equals the right-hand side, which is 0.
Final Answer
Since substituting \( y = x\sin 3x \) and its second derivative gives \( \frac{d^2y}{dx^2} + 9y - 6\cos 3x = 0 \), the given function is verified to be a solution of the differential equation.
Common Mistake
A common mistake is forgetting to apply the product rule when differentiating \( x\sin 3x \), or dropping the chain-rule factor of 3 (writing \( \frac{d}{dx}(\sin 3x) = \cos 3x \) instead of \( 3\cos 3x \)). This leads to a wrong second derivative and the equation will not simplify to 0.