Maths gurus, I'm a bit stuck!
I want to solve the differential equation:
dy/dx=sin(x) + y.tan(x)
Use the integrating factor method I rearrange in the required form of :
dy/dx + g(x)y = h(x) to give dy/dx - tan(x).y = sin(x)
The integrating factor p(x) = exp[Sg(x) dx] where g(x) = -tan(x)
(S represents integration !)
But the integral of tan(x) depends on whether x is negative or positive, and since -pi/2 < x < pi/2 I'm left in a bit of a pickle as to how to proceed! If I use the two integrals for the positive and negative values and integrate between limits things get a bit messy.
Any help would be much appreciated.
Michael
(The final answer for the initial condition y(0)= 1/2 :
y = sec x -1/2 cos x but it's the integrating factor I'm after to get there!)
I want to solve the differential equation:
dy/dx=sin(x) + y.tan(x)
Use the integrating factor method I rearrange in the required form of :
dy/dx + g(x)y = h(x) to give dy/dx - tan(x).y = sin(x)
The integrating factor p(x) = exp[Sg(x) dx] where g(x) = -tan(x)
(S represents integration !)
But the integral of tan(x) depends on whether x is negative or positive, and since -pi/2 < x < pi/2 I'm left in a bit of a pickle as to how to proceed! If I use the two integrals for the positive and negative values and integrate between limits things get a bit messy.
Any help would be much appreciated.
Michael
(The final answer for the initial condition y(0)= 1/2 :
y = sec x -1/2 cos x but it's the integrating factor I'm after to get there!)