A second order non homo differential equation

In summary, the conversation is about finding the form of the solution for a non-homogeneous differential equation with specific initial conditions. The expert suggests trying a particular solution of the form Asinx + Bcosx + Cxsinx + Dxcosx and explains how this form is derived. They also mention that there is a pattern to determining the particular solution based on the terms in the forcing function.
  • #1
James889
192
1
Hi,

i have the following non-homo differential equation.

[tex]y^{\prime\prime}+4y = 2~cos~x + 3x~sin~x[/tex]

[tex]\begin{cases} y(0) = 1 \\
y^{\prime}(0) = 2 \end{cases}[/tex]

Since there is a 3x term in front of sin x.
What is the form of the solution for this problem?

if it hadn't been there it probably would have been [tex]Asin~x + Bcos~x[/tex]

//James
 
Physics news on Phys.org
  • #2
For your particular solution, try yp = Asinx + Bcosx + Cxsinx + Dxcosx. The Asinx + Bcosx that you were going to try would work if the right side had been just 2cosx.

Presumably you already know the solutions to the related homogeneous equation...
 
  • #3
Mark44 said:
For your particular solution, try yp = Asinx + Bcosx + Cxsinx + Dxcosx. The Asinx + Bcosx that you were going to try would work if the right side had been just 2cosx.

Presumably you already know the solutions to the related homogeneous equation...

Yes, the homo equation isn't a problem. Hm how did you know that the correct form was Asinx + Bcosx + Cxsinx + Dxcosx. ?
 
  • #4
It's kind of a long story, so I'll try to make it a little shorter.

Right side Particular soln
constant A
kx A + Bx
kx^2 A + Bx + Cx^2
etc.

m*sin x Asinx + Bcosx
n*cos x ditto
m*sinx + n*cosx ditto

m*xsin x Asinx + Bcosx + Cxsinx + Dxcosx
n*xcos x ditto
m*xsinx + n*xcosx ditto

m*x^2*sin x Asinx + Bcosx + Cxsinx + Dxcosx + Ex^2*sinx + Fx^2*cosx
n*x^2*cos x ditto
m*x^2*sinx + n*x^2*cosx ditto
etc.

e^x Ae^x
xe^x Ae^x + Bxe^x
x^2*e^x Ae^x + Bxe^x + Cx^2*e^x
etc.

All of the above assume that the particular solution is NOT also a solution of the homogeneous problem.

There are a few more, but this should get you started.
Mark
 
  • #5
Would the case be different if i were given a solution?
 
  • #6
James889 said:
Hm, how did you know that the correct form was Asinx + Bcosx + Cxsinx + Dxcosx?

Consider the form of the differential equation the forcing function would satisfy. The term [itex]\cos x[/itex] satisfies [itex]y''+y=(D^2+1)y=0[/itex], where [itex]D[/itex] is the differentiation operator. The [itex]x[/itex] in front of the [itex]\sin x[/itex] indicates you have a double root, which suggests that term is a solution to [itex](D^2+1)^2y=0[/itex] (which [itex]\cos x[/itex] is also a solution of). You can use this to convert the inhomogeneous equation

[tex](D^2+4)y=y''+4y=2\cos x+3x\sin x[/tex]

into a homogeneous one by applying [itex](D^2+1)^2[/itex] to both sides to get

[tex](D^2+1)^2(D^2+4)y = (D^2+1)^2(2\cos x+3x\sin x)[/tex]
[tex](D^2+1)^2(D^2+4)y = 0[/tex]

The general solution to this homogeneous equation is

[tex]y=A\sin x+B\cos x+Cx\sin x+Dx\cos x+E\sin 2x+F\cos 2x[/tex]

The last two terms are the ones you found when you solved the original homogeneous equation. The remaining terms are what you try as your particular solution.

In practice, there's a pattern to what kinds of terms appear in the particular solution based on the terms in the forcing function, so you can just write down what the solution should look like without going through this operator mess.
 

FAQ: A second order non homo differential equation

What is a second order non homo differential equation?

A second order non homo differential equation is a mathematical equation that involves a function, its derivatives, and independent variables. It is called "non homo" because the equation does not have a constant term and does not equal zero. This type of equation is commonly used in physics and engineering to model real-world problems.

How do you solve a second order non homo differential equation?

The general solution for a second order non homo differential equation can be found using techniques such as variation of parameters, undetermined coefficients, or Laplace transforms. The specific method used depends on the form of the equation and the initial conditions given.

What is the difference between a first and second order non homo differential equation?

The main difference between first and second order non homo differential equations is the number of derivatives present in the equation. A first order equation has only one derivative, while a second order equation has two derivatives. This means that the solution for a second order equation will have two constants, as opposed to one for a first order equation.

What are some applications of second order non homo differential equations?

Second order non homo differential equations are commonly used in physics and engineering to model systems with acceleration, such as the motion of a mass on a spring or a pendulum. They are also used in electrical circuits to describe the behavior of current and voltage over time.

How do second order non homo differential equations relate to real-life problems?

Second order non homo differential equations are used to model real-life problems because they can accurately describe systems with acceleration or change over time. By finding the solution to these equations, scientists and engineers can predict the behavior of a system and make informed decisions about how to control or optimize it.

Back
Top