Joshua G. answered 06/19/24
Biostatistics PhD Who Earned an A in Differential Equations Course
To solve the given differential equation, we must first solve the associated differential equation d2y/dx2+9y = 0. Since d2y/dx2+9y = 0 is a homogeneous linear equation with constant coefficients, we know that the associated auxiliary equation is m2 + 9 = 0. Since the auxiliary equation has m = ±3i as solutions, we know that yc = c1cos(3x) + c2sin(3x) is the general solution to d2y/dx2+9y = 0.
We must now use the method of variation of parameters to solve the given differential equation.The preceding work tells us that y1 = cos(3x), y2 = sin(3x), and f(x) = csc2(3x). Since dy1/dx = -3sin(3x) and dy2/dx = 3cos(3x), we also know that
W = | cos(3x) sin(3x) | = 3cos2(3x) + 3sin2(3x) = 3,
| -3sin(3x) 3cos(3x) |
W1 = | 0 sin(3x) | = 0 - csc2(3x)*sin(3x) = -(1/sin2(3x))*sin(3x) = -1/sin(3x) = -csc(3x),
| csc2(3x) 3cos(3x) |
W2 = | cos(3x) 0 | = cos(3x)*csc2(3x) + 3sin(3x)*0 = cos(3x)*(1/sin2(3x)) = cos(3x)/sin2(3x),
| -3sin(3x) csc2(3x) |
du1/dx = W1/W = -csc(3x)/3 = -(1/3)csc(3x),
and du2/dx = W2/W = (cos(3x)/sin2(3x))/3 = (1/3)(cos(3x)/sin2(3x)).
Integrating du1/dx with respect to x by using the substitution U = 3x and the general result ∫ csc(x) dx = ln|csc(x) - cot(x)| + C then gives us u1 = -(1/9)ln|csc(3x) - cot(3x)|.
Integrating du2/dx with respect to x by using the substitution U = sin(3x) then gives us u2 = -(1/9)csc(3x). Thus, a particular solution to the original differential equation is yp = -(1/9)ln|csc(3x) - cot(3x)|cos(3x) - (1/9)csc(3x)sin(3x) = -(1/9)ln|csc(3x) - cot(3x)|cos(3x) - 1/9. The general solution of the original differential equation is thus y = yc + yp = c1cos(3x) + c2sin(3x) - (1/9)ln|csc(3x) - cot(3x)|cos(3x) - 1/9.