Variation of Parameters: Solving for the General
Solution
Continuing the solution process:
\[
\frac{\sin^2(t)}{\cos(t)} u_2' + u_2' \cos(t) = \frac{1}{\sin(t)}
\]
Factoring out \( u_2' \):
\[
u_2' (\sin^2(t) + \cos^2(t)) = \frac{\cos(t)}{\sin(t)}
\]
Since \( \sin^2(t) + \cos^2(t) = 1 \), we integrate to find \( u_2 \):
\[
u_2 = \int \frac{\cos(t)}{\sin(t)} \, dt = \ln |\sin(t)| + C_2
\]
From Earlier
Using the relation established previously for \( u_1' \):
\[
u_1' = -\frac{\sin(t)}{\cos(t)} u_2' = -\frac{\sin(t)}{\cos(t)} \frac{\cos(t)}{\sin(t)} = -1
\]
Integrating \( u_1' \):
\[
u_1 = -t + C_1
\]
General Solution
Combining the solutions into \( y = u_1 y_1 + u_2 y_2 \):
\[
\begin{aligned}
y &= u_1 y_1 + u_2 y_2 \\
&= (-t + C_1) \cos(t) + (\ln |\sin(t)| + C_2) \sin(t)
\end{aligned}
\]
\[
y = C_1 \cos(t) + C_2 \sin(t) - t \cos(t) + \sin(t) \ln |\sin(t)|
\]
Complementary solution:
\[ y_c = C_1 \cos(t) + C_2 \sin(t) \]
Particular solution:
\[ y_p = -t \cos(t) + \sin(t) \ln |\sin(t)| \]
due to \( f(t) = \csc(t) \)
Note on Terms: The solution consists of the complementary function \( y_c = C_1 \cos(t) + C_2
\sin(t) \) satisfying the homogeneous equation, plus the particular solution \( y_p = -t \cos(t) + \sin(t) \ln
|\sin(t)| \) resulting from the non-homogeneous driving term \( f(t) = \csc(t) \).