Solving a simple second order PDE, do I need the Fourier?

Click For Summary

Homework Help Overview

The problem involves solving a second order ordinary differential equation (ODE) given by y'' + 2y' + 5y = 10cos(t). The original poster seeks to find both the general solution and the steady-state solution, referencing a general form of the equation and considering the use of Fourier series.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • The original poster attempts to find the general solution using the characteristic equation and proposes a particular solution in the form of y_p = A sin(t) + B cos(t). They express concern about possibly making mistakes and whether a more complex method should be followed.
  • Some participants suggest that simpler methods may suffice for certain exercises, while others point out potential errors in the original poster's calculations, specifically regarding the signs in the equations.
  • There is a mention of confusion regarding the distinction between the general solution and the particular solution, indicating a need for clarification.

Discussion Status

The discussion is ongoing, with participants providing feedback on the original poster's approach and calculations. Some guidance has been offered regarding the correction of errors, and there is an acknowledgment of the complexity involved in applying the Fourier method. Multiple interpretations of the problem are being explored, particularly concerning the nature of the equation as an ODE rather than a PDE.

Contextual Notes

Participants note that the problem is presented in a text focused on PDEs, despite being an ODE, which may influence the approach to solving it. There is also a reference to homework constraints that may dictate the methods used.

Emspak
Messages
240
Reaction score
1
Solving a "simple" second order PDE, do I need the Fourier?

Homework Statement



The problem as given:

y'' + 2y' + 5y = 10\cos t

We want to find the general solution and the steady-state solution. We're using \mu y'' + c y' + k y = F(t) as our general form.

OK, so I first want the general solution to the 2nd order DE. That should be easy: the characteristic equation is \lambda^2 + 2\lambda + 5 and it has imaginary roots at -1 \pm \sqrt{-4} which is -1\pm 2i.

So the general solution should be y=C_1e^{-t} \cos 2t + C_2e^{-t}\sin 2t

The steady state solution is given by the Fourier series y_p(t) = \alpha_0 + \sum_{n=0}^\infty \left( \alpha_n\cos \frac{n\pi}{p} t + \beta_n \sin \frac {n\pi}{p}t\right)

But we needn't be that complicated, it seems to me, since could try looking for solutions in the form of y_p = A \sin t + B \cos t.

We differentiate and we get y_p' = A \cos t - B \sin t and y_p'' = -A \sin t - B \cos t.

Substitute in y_p to the original equation. We get -A \sin t - B \cos t + 2(A \cos t - B \sin t)+ 5(A \sin t + B \cos t) = 10 \cos t

And simplifying we have

(4A - 2B) \sin t - (4B+ 2A) \cos t = 10 \cos t

And that leaves us with (4A - 2B) = 0 and (-4B - 2A) = 10. Solving for both we get B = -2 and A =-1.

So the steady state solution is

y=C_1e^{-t} \cos 2t + C_2e^{-t}\sin 2t - \sin t - 2 \cos tNow here's the part where everyone tells me I messed this up :-) I just feel I have done something way off here. But it seems ok... I just wonder if I should have been following through on the whole theorem in the text that says how to solve equations like this, which is much more complex but presumably would yield the same answer.

Anyhow, thanks for bearing with me.
 
Last edited:
Physics news on Phys.org
It's what I would have done.
[edit: I'd have probably made some algebra errors too :) ]

Though sometimes you are provided with exercises which can be done a simple way, then asked to do it the complicated way, in order to give you practice at doing it the complicated way... for when you have a harder problem.
 
Last edited:
  • Like
Likes   Reactions: 1 person
Emspak said:
But we needn't be that complicated, it seems to me, since could try looking for solutions in the form of y_p = A \sin t + B \cos t.

We differentiate and we get y_p' = A \cos t - B \sin t and y_p'' = -A \sin t - B \cos t.

Substitute in y_p to the original equation. We get -A \sin t - B \cos t + 2(A \cos t - B \sin t)+ 5(A \sin t + B \cos t) = 10 \cos t

And simplifying we have

(4A - 2B) \sin t - (4B+ 2A) \cos t = 10 \cos t

You made a mistake. It should be

(4A - 2B) \sin t + (4B+ 2A) \cos t = 10 \cos t


Emspak said:
So the steady state solution is

y=C_1e^{-t} \cos 2t + C_2e^{-t}\sin 2t - \sin t - 2 \cos t

That is the general solution if you correct your mistakes with the signs.
The steady-state solution (particular solution) is yp = sint+2cost. The general solution is the sum of the general solution of the homogeneous equation and the particular solution yp.

ehild
 
  • Like
Likes   Reactions: 1 person
@Simon Bridge -- yeah when I tried going through the whole process with the "complicated" method -- essentially following through this set of formulas --

$$\alpha_n = \frac{A_n a_n - B_nb_n}{A_n^2+B_n^2},\ A_n = k-\mu\left(\frac{n\pi}{p}\right)^2, \beta_n = \frac{A_n b_n + B_na_n}{A_n^2+B_n^2},\ A_n = k-\mu\left(\frac{n\pi}{p}\right)^2$$

and when i went through the whole routine to get the other Fourier coefficients I got a solution in terms of sin and cos but it was kind'a messy.

@echild -- thanks - I keep getting confused between which solution is which. Stupid of me.
 
Also, contrary to the title of this thread, you have an ODE, not a PDE.
 
well, it's in a PDE text :-) Asmar as it happens.
 

Similar threads

Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
8
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
1
Views
2K