# Linear ODE BV problem

1. Feb 29, 2012

### mistereko

1. The problem statement, all variables and given/known data
I nearly have this problem solved

x2d2y/dx2 + 3x*dy/dx + 5y = 8x

y(1) = 2, y(exp(pi/4)) = 2sinh(pi/4)

I've found the general solution, but I'm not sure how to get the answer with the boundary values

2. Relevant equations

3. The attempt at a solution

My general solution is y(t) = C1 e-t cos(2t) + c2 e-t sin(-2t) + 2t

2. Feb 29, 2012

### mistereko

I understand how to use BV's it just I'm getting weird answers

3. Feb 29, 2012

### mistereko

C1 - C2 = 6
C1 - C2 = 2sinh(pi/4) - 8epi/4

4. Feb 29, 2012

### Dick

It looks like you did a change of dependent variable like x=e^t to get a solution like that, right? And I'm not sure I agree with the ' + 2t' part. The initial conditions they are giving you are initial conditions for x, not for t. What values of t correspond to x=1 and x=exp(pi/4)?

5. Feb 29, 2012

### mistereko

Yes, I used e^t. I'll try and work out new boundary values. I think you're right about the 2t part. Thanks

6. Feb 29, 2012

### mistereko

t = 0 and t = pi/4.

7. Feb 29, 2012

### Dick

Sure, now if you correct the '+ 2t' part to the correct expression you actually should be able to work out nice values for C1 and C2. Remember what the definition of sinh is.

8. Apr 10, 2012

### mistereko

My general solution is y(t) = C1 e-t cos(2t) + c2 e-t sin(-2t) + e^t, but I don't know how to chnage the boundary values from x to t. Having a slow moment.

9. Apr 10, 2012

### mistereko

can anyone verify that the final solution is y(t) = (cos(pi/2) + 2 + exp(pi/2)) e-t sin(2t) + e-t cos(2t) + e^t please?

10. Apr 10, 2012

### Dick

Show how you got that.

11. Apr 10, 2012

### mistereko

2 = c1*e^0*sin(0) + c2*e^0*cos(0) + e^0

that works out nicely to
C2 = 1

For C1 it's a bit messier. I let 2Sinh(pi/4) = (e^(pi/2) -1)/ e^(pi/4)

Therefore

(e^(pi/2) -1)/ e^(pi/4) = C1*exp(-pi/4)*sin(pi/2) + exp(-pi/4)*cos(pi/2) + exp(-pi/4)
multiplied by exp(pi/4)

and found c1 to be Cos(pi/2) + 2 -exp(-pi/2)

12. Apr 10, 2012

### mistereko

No need, I just realised a huge mistake I made and figure it out. Thanks anyway :)

13. Apr 10, 2012

### Dick

I'm taking it on trust you've got the right general solution there. But if so, shouldn't the last term be exp(pi/4) instead of exp(-pi/4)?

14. Apr 10, 2012

### mistereko

15. Apr 10, 2012

### mistereko

Final solution is e^(-pi/4)*e^(-t)sin(2t) +e^(-t)cos2t + e^t

16. Apr 10, 2012

### Dick

Apparently it has been a long night. I just get C1=1 and C2=(-1), though you have been switching C1 and C2 around. And it might be good to express your final answer in terms of x rather than t.

17. Apr 11, 2012

### mistereko

Just looked at it with fresh eyes.

y(x) = 1/x * cos(2ln(x)) - 1/x * sin(2ln(x)) + x

18. Apr 11, 2012

### Dick

Looks ok. You can always try substituting into the original ODE if you've got any doubts.

19. Apr 11, 2012

### mistereko

Brilliant, thanks again.