A differential Equation -

In summary, the DE y'' + 3y' + 2y = sin(e^x) can be solved using the method of variation of parameters. The complementary solution is yc = c1e^{-2x} + c2e^{-x}, and the particular solution is yp = e^{-x}cos(e^x) - e^{-2x}sin(e^x). The general solution is y = c1e^{-2x} + c2e^{-x} - e^{-2x}sin(e^x).
  • #1
Sparky_
227
5

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:
Physics news on Phys.org
  • #2
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
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
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
Would it be in any way reasonable to try this with Laplace transforms?
 
  • #6
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
Sparky_ said:
[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
Rainbow Child said:
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
HallsofIvy said:
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
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
how about the part e^{2x}sin(e^x) , he still has to integrate this does he not?
 
  • #12
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:

1. What is a differential equation?

A differential equation is a mathematical equation that describes how a variable changes over time or space, based on its rate of change and other variables. It involves derivatives, which represent the rate of change of a variable.

2. What are the applications of differential equations?

Differential equations are used to model and study various real-world phenomena, such as population growth, fluid dynamics, electrical circuits, and more. They are essential in many scientific fields, including physics, engineering, economics, and biology.

3. How do you solve a differential equation?

There are various methods for solving differential equations, depending on the type and complexity of the equation. Some common techniques include separation of variables, integrating factors, and using power series.

4. What are the types of differential equations?

There are several types of differential equations, including ordinary differential equations (ODEs), partial differential equations (PDEs), and stochastic differential equations (SDEs). ODEs involve a single independent variable, while PDEs involve multiple independent variables.

5. Why are differential equations important?

Differential equations are crucial in understanding and predicting the behavior of dynamic systems in various fields. They allow us to model and analyze complex systems and make predictions about their future behavior. Additionally, many fundamental principles and laws in science can be described using differential equations.

Similar threads

  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
7
Views
491
  • Calculus and Beyond Homework Help
Replies
3
Views
811
  • Calculus and Beyond Homework Help
Replies
8
Views
753
  • Calculus and Beyond Homework Help
Replies
1
Views
692
  • Calculus and Beyond Homework Help
Replies
8
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
252
  • Calculus and Beyond Homework Help
Replies
17
Views
2K
  • Calculus and Beyond Homework Help
Replies
7
Views
692
  • Calculus and Beyond Homework Help
Replies
25
Views
312
Back
Top