Solving an ODE with eulers formula.

Click For Summary

Discussion Overview

The discussion revolves around solving the ordinary differential equation (ODE) y'' + y' + 2y = sin(x) + cos(x) using Euler's formula. Participants explore the appropriateness of different approaches to finding particular solutions, including the use of complex exponentials and trigonometric functions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant proposes using y = Ae^{ix} as a solution and calculates A = 1/(1+i), suggesting that this approach works for the given ODE.
  • Another participant challenges this method, indicating that for the right-hand side of sin(x) + cos(x), a more appropriate form would be y = Ae^{ix} + Be^{-ix} or y = Ccos(x) + Dsin(x).
  • A question is raised about whether to take the real or imaginary part of the solution when substituting back into the equation.
  • A subsequent reply clarifies that both parts can be taken, but suggests that using Ccos(x) + Dsin(x) from the beginning may be more straightforward for real solutions.
  • One participant expresses a desire to explore the limits of Euler's formula and its applications.

Areas of Agreement / Disagreement

Participants express differing views on the appropriateness of using complex exponentials versus trigonometric functions for finding particular solutions. There is no consensus on the best approach, and the discussion remains unresolved regarding the optimal method for this ODE.

Contextual Notes

Participants note that while using complex exponentials may yield a solution, the choice of form for the particular solution may depend on the expected nature of the final answer (real vs. complex). There are also implications regarding the handling of complex coefficients in the context of real solutions.

cragar
Messages
2,546
Reaction score
3
If I have [itex]y''+y'+2y=sin(x)+cos(x)[/itex]
can I just say [itex]y=Ae^{ix}[/itex]
and then find y' and y'' and then plug them in and solve for A.
so I get that [itex]A= \frac{1}{1+i}[/itex]
then i multiply and divided by the complex conjugate.
then I back substitute in Eulers formula.
now since I have my original equation has both a real and an imaginary part.
when I multiply out A times Eulers formula, I will take both real and imaginary parts.
and I get that y=sin(x) and tested this and it works.
But is what i did with Eulers formula ok.
 
Physics news on Phys.org
hi cragar! :smile:
cragar said:
If I have [itex]y''+y'+2y=sin(x)+cos(x)[/itex]
can I just say [itex]y=Ae^{ix}[/itex]

not really :redface:

for a particular solution for an RHS of sinx + cosx, you should use Aeix + Be-ix

(or Ccosx + Dsinx)

in this case, you're lucky that B = 0 :biggrin:

(but don't do it again! :wink:)
 
if i substitute what you said. Do I take the real or imaginary part in the end. Or do I just take it all.
 
you take it all :smile:

but if you're expecting a real solution anyway, you might as well use Ccosx + Dsinx in the first place! :wink:

(technically, C and D are both complex, but they'll come out real)
 
thanks for your answers. I like to push the limits of Eulers formula. And see what it can do.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
1
Views
2K
Replies
4
Views
2K
  • · Replies 38 ·
2
Replies
38
Views
12K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K