[_linear]
Book solution method
Riccati ODE, Generalized ODE
Mathematica ✓
cpu = 0.064027 (sec), leaf count = 28
Maple ✓
cpu = 0.271 (sec), leaf count = 29
DSolve[y'[x] == Sin[x]*(2*Sec[x]^2 - y[x]),y[x],x]
Mathematica raw output
{{y[x] -> E^Cos[x]*C[1] + 2*E^Cos[x]*ExpIntegralEi[-Cos[x]] + 2*Sec[x]}}
Maple raw input
dsolve(diff(y(x),x) = sin(x)*(2*sec(x)^2-y(x)), y(x),'implicit')
Maple raw output
y(x) = (Int(4*sin(x)/(cos(2*x)+1)*exp(-cos(x)),x)+_C1)*exp(cos(x))