This is separable after transformation of
This is the same as Kamke 76 (the problem before this), which we solved using half angle tan transformation, and the answer is
Since
Verification
ode:=diff(y(x),x)=cos(a*y(x)+b*x); my_sol:=(1/a)*(2*arctan( (a+b)/sqrt(b^2-a^2) * tan(1/2*sqrt(b^2-a^2)*(x+_C1)))-b*x); odetest(y(x)=my_sol,ode); 0