Detailed Explanation
To verify that a function is a solution of a differential equation, we compute the required derivatives of the function and substitute them into the equation. If the left-hand side reduces to the right-hand side (here, 0), then the function is indeed a solution. Here the function \( y = c_1 e^{ax}\cos bx + c_2 e^{ax}\sin bx \) is differentiated twice using the product rule, since each term is a product of an exponential and a trigonometric function. Notice that both terms share the factor \( e^{ax} \), so we can pull it out to simplify the working.
Formula Used
Product rule: \( \frac{d}{dx}(uv) = u'v + uv' \). Also \( \frac{d}{dx}(e^{ax}) = a e^{ax} \), \( \frac{d}{dx}(\cos bx) = -b\sin bx \), \( \frac{d}{dx}(\sin bx) = b\cos bx \).
Solution
- Step 1: Write the given function in a compact form by taking \( e^{ax} \) common: \[ y = e^{ax}\left(c_1\cos bx + c_2\sin bx\right). \] Both terms contain \( e^{ax} \), so grouping them makes differentiation easier.
- Step 2: Differentiate once using the product rule with \( u = e^{ax} \) and \( v = c_1\cos bx + c_2\sin bx \). We get \[ \frac{dy}{dx} = a e^{ax}\left(c_1\cos bx + c_2\sin bx\right) + e^{ax}\left(-c_1 b\sin bx + c_2 b\cos bx\right). \]
- Step 3: Take \( e^{ax} \) common and simplify: \[ \frac{dy}{dx} = e^{ax}\left[(a c_1 + b c_2)\cos bx + (a c_2 - b c_1)\sin bx\right]. \] Also note that \( a y = a e^{ax}(c_1\cos bx + c_2\sin bx) \), so \[ \frac{dy}{dx} = a y + b e^{ax}\left(c_2\cos bx - c_1\sin bx\right). \]
- Step 4: Differentiate \( \frac{dy}{dx} \) again. Applying the product rule to \[ \frac{dy}{dx} = e^{ax}\left[(a c_1 + b c_2)\cos bx + (a c_2 - b c_1)\sin bx\right], \] we obtain \[ \frac{d^2y}{dx^2} = a e^{ax}\left[(a c_1 + b c_2)\cos bx + (a c_2 - b c_1)\sin bx\right] + e^{ax}\left[-b(a c_1 + b c_2)\sin bx + b(a c_2 - b c_1)\cos bx\right]. \]
- Step 5: Collect the coefficients of \( \cos bx \) and \( \sin bx \). The coefficient of \( \cos bx \) is \[ a(a c_1 + b c_2) + b(a c_2 - b c_1) = a^2 c_1 + 2ab c_2 - b^2 c_1. \] The coefficient of \( \sin bx \) is \[ a(a c_2 - b c_1) - b(a c_1 + b c_2) = a^2 c_2 - 2ab c_1 - b^2 c_2. \] So \[ \frac{d^2y}{dx^2} = e^{ax}\left[(a^2 c_1 + 2ab c_2 - b^2 c_1)\cos bx + (a^2 c_2 - 2ab c_1 - b^2 c_2)\sin bx\right]. \]
- Step 6: Substitute into the left-hand side \( \frac{d^2y}{dx^2} - 2a\frac{dy}{dx} + (a^2+b^2)y \). Compute the coefficient of \( e^{ax}\cos bx \): \[ (a^2 c_1 + 2ab c_2 - b^2 c_1) - 2a(a c_1 + b c_2) + (a^2+b^2)c_1. \] This simplifies to \[ a^2 c_1 + 2ab c_2 - b^2 c_1 - 2a^2 c_1 - 2ab c_2 + a^2 c_1 + b^2 c_1 = 0. \]
- Step 7: Similarly compute the coefficient of \( e^{ax}\sin bx \): \[ (a^2 c_2 - 2ab c_1 - b^2 c_2) - 2a(a c_2 - b c_1) + (a^2+b^2)c_2. \] This simplifies to \[ a^2 c_2 - 2ab c_1 - b^2 c_2 - 2a^2 c_2 + 2ab c_1 + a^2 c_2 + b^2 c_2 = 0. \] Since both coefficients vanish, the left-hand side equals \( 0 \).
Final Answer
Substituting the derivatives makes the left-hand side of the equation equal to \( 0 \). Hence \( y = c_1 e^{ax}\cos bx + c_2 e^{ax}\sin bx \) is a solution of \( \frac{d^2y}{dx^2} - 2a\frac{dy}{dx} + (a^2+b^2)y = 0 \).
Common Mistake
A common mistake is forgetting the product rule and differentiating only the trigonometric part while ignoring the derivative of \( e^{ax} \) (or vice versa). Each term is a product, so both factors must be differentiated, which introduces the mixed terms with coefficient \( ab \) that are essential for the verification to work out.