If the given differential equation is
[tex]\cos^2(x) \sin(x) \dfrac{dy}{dx} + \cos^3(x) y = 1[/tex]
then multiply both sides by [tex]\frac1{\cos^2(x)}[/tex] :
[tex]\sin(x) \dfrac{dy}{dx} + \cos(x) y = \sec^2(x)[/tex]
The left side is the derivative of a product,
[tex]\dfrac{d}{dx}\left[\sin(x)y\right] = \sec^2(x)[/tex]
Integrate both sides with respect to [tex]x[/tex], recalling that [tex]\frac{d}{dx}\tan(x) = \sec^2(x)[/tex] :
[tex]\displaystyle \int \frac{d}{dx}\left[\sin(x)y\right] \, dx = \int \sec^2(x) \, dx[/tex]
[tex]\sin(x) y = \tan(x) + C[/tex]
Solve for [tex]y[/tex] :
[tex]\boxed{y = \sec(x) + C \csc(x)}
which follows from [tex]\tan(x)=\frac{\sin(x)}{\cos(x)}[/tex].