Second order inhomogeneous differentiel equation.

  • Thread starter Thread starter Lindsayyyy
  • Start date Start date
  • Tags Tags
    Second order
Lindsayyyy
Messages
215
Reaction score
0
Hi everyone,

Homework Statement



I shall find the solution for the following differential equation:
y''(x)+2y'(x)+y(x)=x^{2}+3



Homework Equations


-



The Attempt at a Solution


At first solved the homogenous equation and found the general solution for the homogenous as the following:

y(x)=e^{-x}+xe^{-x}

Now I have to find an ansatz function I guess, but I don't know how to do this. I tried At³ but didn't work. Can someone help me?

Thanks in advance
 
Physics news on Phys.org
Try
y=ax^2+bx+c
 
Thanks, I guess that worked if I've done it correctly :smile:
 
It's easy enough to check. Just plug your solution into the LHS of the equation and see if you get the RHS when you simplify.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top