Question ODE non-homogeneous Linear

  • Thread starter Thread starter Another
  • Start date Start date
  • Tags Tags
    Linear Ode
Click For Summary
SUMMARY

The discussion centers on solving the non-homogeneous linear ordinary differential equation (ODE) given by (D² + 4D + 5)y = 2e^(-2x)cos(x). The original poster incorrectly identifies the particular integral as y_p = e^(-2x)sin(x), while the correct solution is x e^(-2x)sin(x). The conversation highlights the importance of checking solutions against the ODE and suggests using Laplace transforms or the method of undetermined coefficients for accurate results.

PREREQUISITES
  • Understanding of ordinary differential equations (ODEs)
  • Familiarity with operational calculus and Laplace transforms
  • Knowledge of the method of undetermined coefficients
  • Basic skills in integrating functions involving exponential and trigonometric terms
NEXT STEPS
  • Study the method of undetermined coefficients in detail
  • Learn about Laplace transforms and their application in solving ODEs
  • Practice solving non-homogeneous linear ODEs with varying right-hand side functions
  • Review the properties of homogeneous solutions and their role in finding particular solutions
USEFUL FOR

Students and professionals in mathematics, engineering, and physics who are working with differential equations, particularly those looking to enhance their problem-solving techniques for non-homogeneous linear ODEs.

Another
Messages
104
Reaction score
5
Mod note: Member warned that the homework template is NOT optional
find yp (particular integral)

(D2 + 4D + 5) y = 2 e-2xcos(x)

((D+2)(D+2)+1) y = 2 e-2xcos(x)

yp = [1/((D+2)2 + 1)] ⋅ 2e-2xcos(x)

yp = e(-3)x ∫ ∫ e-(-3)x⋅2e-2xcos(x)dxdx

yp = e(-3)x ∫ ∫ e3x ⋅ 2e-2xcos(x)dxdx

yp = e(-3)x ∫ (exsin(x)+excos(x))dx

yp = e(-3)x[-½ excos(x) + ½exsin(x) + ½exsin(x) + ½excos(x)]

yp = e(-3)x ⋅ ex sin(x)

yp = e(-2)x sin(x) ; this is my answer

But correct answer is x e(-2)x sin(x)

Why are there variables x ?
 
Last edited by a moderator:
Physics news on Phys.org
Did you try inserting your solution into the ODE to check if it solves it or not?

Did you try to insert the given solution into the ODE to check if it solves it or not?
 
Another said:
find yp (particular integral)

(D2 + 4D + 5) y = 2 e-2xcos(x)

((D+2)(D+2)+1) y = 2 e-2xcos(x)

yp = [1/((D+2)2 + 1)] ⋅ 2e-2xcos(x)

yp = e(-3)x ∫ ∫ e-(-3)x⋅2e-2xcos(x)dxdx

yp = e(-3)x ∫ ∫ e3x ⋅ 2e-2xcos(x)dxdx

yp = e(-3)x ∫ (exsin(x)+excos(x))dx

yp = e(-3)x[-½ excos(x) + ½exsin(x) + ½exsin(x) + ½excos(x)]

yp = e(-3)x ⋅ ex sin(x)

yp = e(-2)x sin(x) ; this is my answer

But correct answer is x e(-2)x sin(x)

Why are there variables x ?

You have not found a particular solution; you have found one of the two homogeneous solutions (that is, solutions which solve the DE with 0 on the right).

In general, I am extremely suspicious of your approach, because I do not trust expressions like ##[(D+2)^2+1]^{-1} f(x)##. You seem to be attempting to use Heaviside's Operational Calculus, but without sticking to the rules.

It would be better to use either
(1) Laplace transforms --- basically, a modern version of Heavisides's operational methods; or
(2) The method of undetermined coefficients.
Personally, I prefer (1), and it leads to exactly the particular solution ##x e^{-2x} \sin x## that somebody has told you is correct.

I am not sure how to answer your question about "why the x?". All I can say is that the two homogenous solutions ##y_1(x) = e^{-2x} \cos x## and ##y_2(x) = e^{-2x} \sin x## do not work, so trying something like ##c_1(x) y_1(x) + c_2(x) y_2(x)## is the obvious next step. If you look to make ##c_1(x)## and ##c_2(x)## as simple as possible, you would try linear functions ##c_i(x) = a_i + b_i x##, and then try to determine the ##a_i## and ##b_i##. That is more-or-less method (2) that I mentioned above. See, eg., https://en.wikipedia.org/wiki/Method_of_undetermined_coefficients .
 
Last edited by a moderator:

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
1
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K