A differential Equation -

  • Thread starter Sparky_
  • Start date
  • #1
223
4

Homework Statement



y'' + 3y' + 2y = sin(e^x)

Homework Equations





The Attempt at a Solution



[tex] y'' + 3y' + 2y = sin(e^x) [/tex]

[tex] m^2 + 3m + 2 = 0[/tex]

[tex] m1 = -2 ; m2 = -1[/tex]

[tex] yc = c1e^{-2x} c2 e^{-x}[/tex]

[tex] y1 = e^{-2x}[/tex]

[tex] y1' = -2e^{-2x}[/tex]

[tex] y2 = e^{-x}[/tex]

[tex] y2' = -e^{-x}[/tex]

The W Matrix works out to
[tex] W = e^{-3x}[/tex]

[tex] u1' = -e^{x}sin(e^x)[/tex]

[tex] u1 = sin(e^x)[/tex]

[tex] u2' = e^{2x}sin(e^x)[/tex]

[tex] u2 = -e^xcos(e^x) + sin(e^x)[/tex]

(This is the integration by parts solution in an earlier posting:
https://www.physicsforums.com/showthread.php?t=207521

my solution:

[tex] y = c1e^{-2x} + c2e^{-x} + e^{-2x}sin(e^x) + e^{-x}[-e^xcos(e^x) + sin(e^x)][/tex]

The book's solution:
[tex] y = c1e^{-2x} + c2e^{-x} - e^{-2x}sin(e^x) [/tex]

(I'm not in school but this is a problem out of a book - I'm trying to brush up)

Thanks for the help
-Sparky
 
Last edited:

Answers and Replies

  • #2
mda
117
0
It has been a while since I solved DEs analytically, but you should definitely check that your solution does in fact solve the DE (I don't think it does). Also I think the c1c2 term should be a sum, not a product.
 
  • #3
288
0
Aw man, I tried to solve it with the method of undetermined coefficient and spent way too much time before realizing that doesn't work since the RHS isn't the right form. As solving it by your method is a vague memory now, I was like "well at least I can tell him he got the complementary solution wrong!"

but you corrected it!

I'm sure you've done the usual, like check to make sure your third term isn't miracously minus two times the second term
 
  • #4
223
4
I have looked around for terms to cancel and I don't see it but I admit - It could be there, I've gotten the tunnel vision thing after working this back and forth.

I'm hoping for some insight here.

Yes I did correct my error with the first 2 terms - my fault - it was on my paper correctly.
 
  • #5
288
0
Would it be in any way reasonable to try this with Laplace transforms?
 
  • #6
223
4
Part of the reason for this exercise is I'm working back up to Laplace transforms -

I'm working my way back through the book - it's almost become a hobby (pretty sick - right?)

I've used them quite a bit when in school and a little out. (I got my BSEE in 1993 and a Master's in 2003)

I now want to solve this problem with the method of variation of parameters - just because.

I've worked several other problems successfully with this method. - This problem is now bugging me -

I can tell from the answer I'm close

Help?
 
  • #7
[tex] u1' = -e^{x}sin(e^x)[/tex]

[tex] u1 = sin(e^x)[/tex]

You have misalculated the integral. There is the right calculation

[tex]I=-\int e^x\,\sin(e^x)\,d\,x, \quad t=e^x,\,d\,x=\frac{d\,t}{t}[/tex]

so

[tex]I=-\int t\,\sin(t)\,\frac{d\,t}{t}=-\int \sin(t)\,d\,t=\cos(t)+C\Rightarrow I=\cos(e^x)+C[/tex]
 
  • #8
HallsofIvy
Science Advisor
Homework Helper
41,847
966
You have misalculated the integral. There is the right calculation

[tex]I=-\int e^x\,\sin(e^x)\,d\,x, \quad t=e^x,\,d\,x=\frac{d\,t}{t}[/tex]

so

[tex]I=-\int t\,\sin(t)\,\frac{d\,t}{t}=-\int \sin(t)\,d\,t=\cos(t)+C\Rightarrow I=\cos(e^x)+C[/tex]
Very good and completely correct. But why not just t= ex[/su] so dt= ex dx since you have a ex in the integral already? I would consider that slightly simpler though it may be just prsonal taste.
 
  • #9
Very good and completely correct. But why not just t= ex[/su] so dt= ex dx since you have a ex in the integral already? I would consider that slightly simpler though it may be just prsonal taste.


Just trying to be analytic! :smile:

After all, my personal taste would be

[tex]I=-\int e^x\,\sin(e^x)\,d\,x=-\int \sin(e^x)\,d\,e^x=\cos(e^x)+C [/tex]

:approve:
 
  • #10
223
4
Well, That's embarassing.

During lunch I will check my paper - I hope I typed it in wrong and it is correct on my paper.

I suspect I didn't and I have egg on my face.

Thank you so much!!

I will pick the problem up with this correction.

Thanks again
-Sparky_
 
  • #11
2
0
how about the part e^{2x}sin(e^x) , he still has to integrate this does he not?
 
  • #12
223
4
Thank you all for the help,

I am embarrassed to say that I did have

[tex] u1' = -e^{x}sin(e^x)[/tex]
[tex] u1 = sin(e^x)[/tex]

on my paper. Fixing this error, pointed me to one more careless error.

For completion here is the solution (in case anybody wants it):

I've noticed some threads have a "solved" tag - is that after a problem is complete? If so, does this one get a "solved"?

[tex] y'' + 3y' + 2y = sin(e^x) [/tex]

[tex] m^2 + 3m + 2 = 0[/tex]
[tex] m1 = -2 ; m2 = -1[/tex]
[tex] yc = c1e^{-2x} c2 e^{-x}[/tex]
[tex] y1 = e^{-2x}[/tex]
[tex] y1' = -2e^{-2x}[/tex]
[tex] y2 = e^{-x}[/tex]
[tex] y2' = -e^{-x}[/tex]

[tex] W = e^{-3x}[/tex] (The W Matrix - )
[tex] u1' = -\frac{y2f(x)} {W}[/tex]
[tex] u1' = -e^{2x}sin(e^x)[/tex]
[tex] u1 = -\int{ e^{2x}sin(e^x)} dx[/tex] (integration by parts)

[tex] u1 = e^xcos(e^x) - sin(e^x)[/tex]

[tex] u2' = e^{x}sin(e^x)[/tex]
[tex] u2 = -cos(e^x)[/tex]
[tex] y = c1e^{-2x} + c2e^{-x} + e^{-x}cos(e^x) - e^{-2x}sin(e^x) - e^{-x}cos(e^x)[/tex]
[tex] y = c1e^{-2x} + c2e^{-x} - e^{-2x}sin(e^x)[/tex]
 
Last edited:

Related Threads on A differential Equation -

  • Last Post
Replies
2
Views
511
  • Last Post
Replies
2
Views
8K
  • Last Post
Replies
3
Views
792
Replies
5
Views
684
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
1
Views
871
  • Last Post
Replies
6
Views
2K
  • Last Post
Replies
1
Views
872
  • Last Post
Replies
3
Views
801
  • Last Post
Replies
3
Views
1K
Top