$$\cos x\frac{dy}{dx}+y\sin x=\frac{\cos x}{e^x}$$
I have tried methods such as Integral multiplier , exact differential.The Integral of the solution part is difficult. $\displaystyle \int \sec x \frac{dx}{e^x}$
Can I solve it with another solution method?
Hint: Multiply both sides of ODE by $\sec^{2}(x)$, so you obtain a exact equation and if considerer the ODE as a linear equation, so you can take $\mu(x)=\sec(x)$ as integrate factor.