# Linear differential equation

1. Oct 3, 2015

### masterchiefo

1. The problem statement, all variables and given/known data
equation (1) y' + (ylny)/x = xy

we set y(x)= eu(x)
Equation (1 ) proposed becomes an equation
1st order linear differential type : equation (2) u ' + p( x) u = q ( x)

a) Find the equation ( 2) using the change of variable proposed above.

2. Relevant equations

3. The attempt at a solution
equation (1) y' + (ylny)/x = xy
y' + (eu(x)ln eu(x))/x = x*eu(x)

y' + (eu(x)ln eu(x)) = x2*eu(x)

2. Oct 3, 2015

### andrewkirk

I think they want you to say what p(x) and q(x) are.

Your second line in section 3 is correct, but your 3rd is not. Go back to the second line and continue substituting $e^{u(x)}$ for $y$, by differentiating it wrt $x$ and replacing y' by that. Then do what's necessary to make that equation have the same form as (2).

3. Oct 3, 2015

### masterchiefo

eu(x)' + (eu(x))ln eu(x))/x = x*eu(x)
(eu(x))' + ((u(x))*eu(x))/x = x*eu(x)

Like that ?

Last edited: Oct 3, 2015
4. Oct 3, 2015

### andrewkirk

No. The division by x in the 2nd term on the LHS has disappeared. Why? If you want to multiply everything by x, you need to multiply all other terms by x.

Also, what do you mean by eu(x)'? What you have written is ambiguous. If you mean e[u(x)'] then that's incorrect. Alternatively, if you mean [eu(x)]' then that's correct, but you need to take the next step of performing the differentiation (wrt x).

5. Oct 3, 2015

### masterchiefo

I am not sure how to do the differentiation (wrt x).

and I fixed the mistake in my last reply, sorry.

6. Oct 3, 2015

### andrewkirk

The first term is $(e^{u(x)})'$ which means $\frac{d}{dx}e^{u(x)}$. To perform the differentiation, use the chain rule.

7. Oct 3, 2015

### masterchiefo

I need to use the chain rule only for (d/x)*eu(x)?

8. Oct 3, 2015

### andrewkirk

Where else would you use it? That's the only differentiation you need to do, because that's the only prime (') in the equation. Prime after a term means differentiate that term.

9. Oct 3, 2015

### masterchiefo

it gives me that
eu(x)*(d/x)*(u(x))

10. Oct 3, 2015

### masterchiefo

eu(x)*(d/x)*(u(x)) + ((u(x)*eu(x)))/x = x*eu(x)

(d/x)*(u(x)) + (((u(x)*eu(x)))/x )/eu(x)= (x*eu(x))/eu(x)

(d/x)*(u(x)) + u(x)*/x= x

P(x) = 1/x
Q(x)=x