Two First Order Differential Equations


By Louise on Monday, August 06, 2001 - 11:29 am:

Could someone please go through the following for me
1. Solve the boundary value problem

((dy/dx)y4 )/(sin(5x))=2(y5 +3)
where y(pi )=0


2. Find the general solution of the differential equation;

dy/dx+(3/x)y=(e-3x )/x2

Thanks Louise


By Dan Goodman on Monday, August 06, 2001 - 03:42 pm:
For the first one you can do separation of variables. Multiply both sides by sin(5x)dx/( y5 +3) and put integral signs in to get:

y4 /( y5 +3)dy=2sin(5x)dx

Now just do the integrals (remembering to put the constant in) and substitute x=π y=0 to find the value of the constant. The right hand integral hsould be easy enough, for the left hand integral you need to know that y'/y.dx=log(y)+C. Let me know if you still have problems.

In general, if you can get all of the y variables on one side of the equals sign, and all of the x variables on the other side, then this is the method you should use.

For the second one, there is a standard equation for the solution. To solve y'+p(x)y=q(x), where p and q are any functions of x, you have to notice that (y. ep(x)dx )'=y' ep(x)dx +p(x)y ep(x)dx =q(x) ep(x)dx . Integrating both sides of that equation and dividing by ep(x)dx you get:

y(x)=(q(x) ep(x)dx dx+C)/ ep(x)dx where C is any arbitrary constant.

To solve your question, just use p(x)=3/x and q(x)= e-3x / x2 .


By Louise on Tuesday, August 07, 2001 - 03:06 pm:

So;

y4 /( y5 +3)dy=3/5log y5 +c??

and,

2sin(5x)dx=10cos(5x)+c then you say substitute x=π and y=0 but log0???
I do not understand this bit...

And the second question although i'm familiar with the integrating factor technique i just can't seem to manipulate it could anyone go through it step by step?

Thanks Louise x


By David Loeffler on Tuesday, August 07, 2001 - 05:36 pm:

The first integral is in fact 1/5 log(y5 +3) +c, and the second integral is -2/5 cos(5x) + c.
But be careful; they are not the same c's! You in fact only need to put in a constant on one integral (it doesn't matter which) - do you see why?


By Dan Goodman on Tuesday, August 07, 2001 - 08:40 pm:
As David says, you should get something like log( y5 +3)=-2cos(5x)+C. So when you substitute y=0 x=π you get log(3) rather than log(0). Hope that clears that problem up.

On the second one, it's just an exercise in integration. So, first of all you need to work out 3/xdx=3log(x) (we don't need a constant here). So e3/xdx = e3log(x) = x3 . Using the formula I gave, we have that y(x)=( e-3x / x2 . x3 dx+C)/ x3 . So we need to work out x. e-3x dx. Have you done integration by parts? Integration by parts gives you the formula u.v'.dx=uv-u'.v.dx where u and v are functions of x. In this case, we set u=x and v'= e-3x because we know that if v'= e-3x then v=-1/3. e-3x , and u'=1. So x. e-3x dx=-1/3.x. e-3x -1.-1/3. e-3x dx=(1/3)(x e-3x + e-3x dx)=(1/3)(x e-3x -(1/3) e-3x )=(1/9)(3x-1) e-3x . So we have that y=((1/9)(3x-1) e-3x +C)/ x3 .

I hope I got that right.