how do you find the solution to

(dy/dx)+ycos(x)=6cos(x)
when the initial conditions y(0)=8?

all i can get is y(x)=e^sin(x) + 7

again, this is a first order linear diff equation, see the practical steps in the link below (get the form, then the integrating factor, and evaluate.