MHB Second order inhomogeneous differential equation

Vishak95
Messages
19
Reaction score
0
Hi MHB. I'm having yet another doubt regarding differential equations. Can someone please help me out? Thanks.

Consider the following differential equation:

$${y}''+{y}'= x^{2}$$

I have found the homogeneous solution to be:

$$y_{H}=c_{1} + c_{2}e^{-x}$$

But when finding the particular solution, using reduction of order, I end up getting:

$$y_{P}=\frac{x^{3}}{3} + \frac{cx^{2}}{2} + dx + e$$

By substituting the results for $${y}''$$ and $${y}'$$ back into the original equation, I am able to obtain $$c = -2$$ and $$d = 2$$. But what do I do about $$e$$?
 
Physics news on Phys.org
Vishak said:
Hi MHB. I'm having yet another doubt regarding differential equations. Can someone please help me out? Thanks.

Consider the following differential equation:

$${y}''+{y}'= x^{2}$$

I have found the homogeneous solution to be:

$$y_{H}=c_{1} + c_{2}e^{-x}$$

But when finding the particular solution, using reduction of order, I end up getting:

$$y_{P}=\frac{x^{3}}{3} + \frac{cx^{2}}{2} + dx + e$$

By substituting the results for $${y}''$$ and $${y}'$$ back into the original equation, I am able to obtain $$c = -2$$ and $$d = 2$$. But what do I do about $$e$$?

You are actually using the method of undetermined coefficients, not reduction of order, to find the particular solution. Because the right had side is quadratic, you want to assume the following form for your particular solution:

$$y_p(x)=Ax^2+Bx+C$$

But...since you already have a constant in your homogeneous solution, you need to multiply by a natural number power of $x$ so that no term in your particular solution is a solution to the homogeneous equation, hence you want:

$$y_p(x)=x\left(Ax^2+Bx+C \right)=Ax^3+Bx^2+Cx$$

As an alternate approach to solving this ODE, you could consider the substitution:

$$v=y'$$

and you would obtain a linear first order ODE in $v$.
 
Back
Top