The general solution of the differential equation $\frac{dy}{dx} + (\sec x \csc x)y = \cos^2 x$ is
Show Hint
To solve a linear differential equation $\frac{dy}{dx}+P(x)y=Q(x)$, first calculate the integrating factor $I(x) = e^{\int P(x)dx}$. The general solution is then given by the formula $y \cdot I(x) = \int Q(x) \cdot I(x) dx + C$.