James Bennett
Posted on Monday, 10 March, 2003 - 02:19 pm:

Please show the working (and final answer) to the following 2 questions on this topic; I have got the wrong answers and would therefore like to compare MY working with your own CORRECT working, so that I can see where I went wrong...

Thanks very much!

1) Find the general solution of the differential equation: xy(dy/dx)=lnx

2) Find the particular solution of: ex (dy/dx)=y given that y=9 when x=0

  Thanks again.

Marcos
Posted on Monday, 10 March, 2003 - 02:38 pm:

Hi James...

For (1), we have:

y(dy/dx)=(lnx)/x

Integrating wrt x (and using the chain rule),

ydy=(lnx)/xdx

Now notice that we've got lnx and its derivative being multiplied on the RHS, and use the substitution u=lnx.

Thus,

ydy=udu (Can you see why?)

Thus,

y2 /2= u2 /2+C

ie. y2 /2=(lnx )2 /2+C



[If you're picky you can change it to the equivalent and neater form y2 = (ln x)2 + A, where A is an arbitrary constant]

You should now be able to do (2) yourself as it follows along similar lines. By all means ask if you get stuck or if you didn't understand any of my post...

Marcos

James Bennett
Posted on Monday, 10 March, 2003 - 06:55 pm:

Yes, think I understand but I STILL don't get the right answer for q.2!!
Please go through it and then I can check EXACTLY where I went wrong!
Marcos
Posted on Monday, 10 March, 2003 - 07:08 pm:

Okay, first thing: we need to ''separate the variables''...

So, in this case we need to get rid of the ex on the LHS and the y on the RHS.

ex (dy/dx)=y

So we get: y-1/2 dy/dx= e-x (Right?)

Integrating wrt x,

y-1/2 dy= e-x dx

That is,

2 y1/2 =- e-x +C

Can you finish it off now using the conditions you're given? (I get C=7)

Marcos

James Bennett
Posted on Monday, 10 March, 2003 - 07:49 pm:

Yes - I can do it - just a stupid little error by me along the way. LOL.

Thanks for your help.

One further question though - I'm a little confused as to why only 'lnx' is substituted for 'u' in the very first question (i.e. why is '(lnx)/x' not being substituted instead? - Please explain the reasoning!)
Mark Durkee
Posted on Monday, 10 March, 2003 - 08:46 pm:

If you substitute u=(lnx)/x then du/dx=(1-lnx)/ x2 Therefore the integral becomes u x2 /(1-lnx)du which is far more difficult to integrate than the original function.
James Bennett
Posted on Tuesday, 11 March, 2003 - 01:31 pm:

Still confused with above point - please elaborate!
Marcos
Posted on Tuesday, 11 March, 2003 - 02:00 pm:

James,

let's take a look at a simpler example (this can be done in a couple of ways but we'll do it using substitutions):

x e x2 dx

We can use the substitution u= x2

Thus dx/du=1/(du/dx)=1/(2x)

We can now rewrite our integral:

x e x2 dx=x× eu ×1/(2x)du (Make sure you understand this line)

= eu /2du

(You can then finish this off and substitute u= x2 back into the equation)

The important thing is that it is simpler to integrate eu /2du rather than x e x2 dx, that was the whole point of the substitution...

Now, in your example we had:

(lnx)/xdx

Say we substitute u=(lnx)/x.

Well, we need to figure out what dx/du is (as we are going to multiply by it when changing the integration variable)

Now, it's quitedifficult (I think impossible - someone may care to correct me) to express dx/du only in terms of u (which would be ideal as we're going to integrate wrt u) but we can do what we did in the previous example (ie. express it in terms of x and hopefully the terms in '' x'' will cancel).

Now, as Mark has already said,

dx/du=1/(du/dx)=1/[(1-lnx)/ x2 ]= x2 /(1-lnx)

Thus in our integral:

(lnx)/xdx=u× x2 /(1-lnx)du

This has definitely not simplified as we've got both u and x (which isn't a constant) to integrate wrt u and this is harder to integrate than the original function (lnx)/x, contrary to what we're trying to do...

That's why in this example it's easier to use u=lnx:

If you notice that 1/x is the derivative of lnx, you can immediately substitute u for lnx and du/dx for 1/x:

(lnx)/xdx=u×du/dxdx=udu



I hope things are clearer now. If you have any questions or don't agree with some point I've made please ask/say so...

Marcos

Minor note:
(1) wrt = with respect to
(2) a^b = ab
(3) a*b = a multiplied by b

James Bennett
Posted on Tuesday, 11 March, 2003 - 06:43 pm:

Thank you!
Marcos
Posted on Tuesday, 11 March, 2003 - 06:49 pm:

No problem