Nonhomogeneous with constant coefficients equation

In summary: You're welcome! Always happy to help. Just remember, when solving for a particular solution, treat the non-homogenous terms as constants and solve for the coefficients. Good luck with your future problems!
  • #1
Nok1
18
0
y'' - 3y' + 2y = et + t2

r = 1, 2 -> yc = c1et+c2e2t

yp1 = Atet since Aet is a linear combination of our solution to yc.

yp2 = At2+Bt+C
y'p2 = 2At+B
y''p2 = 2A

via substitution we have

2A-3(2At+B)+2(At2+Bt+C) = t2

by isolating terms:

  • 2At2 = t2
    2A = 1 -> A = 1/2
  • -6At + 2Bt = 0
    2B=3 -> B = 3/2
  • 2A-3B+2C = 0
    1 - 9/2 + 2C = 0 -> C = -3.5/2


ygeneral= yc+yp1+yp2


Question 1: How do I determine the A for the Atet term? same way?
Question 2: Can anyone confirm that I am doing the problem correctly, or am on the right track at all?

Thanks
 
Physics news on Phys.org
  • #2
You're almost there, but you should solve for yp1 and yp2 as one function, not two.

You have a linear equation in y, so if you find yc which is the general solution of the homogenous equation, you only need to find one yp which is a solution to your non-homogenous equation. Then your general solution will be of the form yp + yc. Since you have a t2 and an et we would guess that yp has t2 and et terms in it. Looking at the equation, you realize that once you take the derivative of t2 you have some t terms that you need to cancel, so you should probably include a t in your yp guess. Similarly for a constant term. Also, et is in the homogenous solution, so you know that part will disappear. So you guess you need a tet instead. Thus your guess for yp will be

yp = Atet + Bt2 + Ct + D

This looks what you would have for yp1 + yp2 so you were doing this in a sideways fashion, but got a bit lost in the process. So exactly as you did for yp2 you plug your yp into your differential equation, and you collect terms. You'll get a coefficient times tet in terms of A,B,C and D that needs to be zero, a coefficient in front of et in terms of A,B,C,D that needs to be 1, a coefficient in front of t2 that needs to be 1, a coefficient in front of t that needs to be 0 and a constant coefficient that needs to be 0. Solve the system of equations (if more than one solution exists, just pick anyone since it doesn't make a difference)
 
  • #3
Office_Shredder said:
You're almost there, but you should solve for yp1 and yp2 as one function, not two.

It shouldn't matter in the end, as it should come out to be the same? I mean, yp=yp1+yp2 right? The reason I'm splitting it appart is because it's easier to solve for (for me at least) than when everything is combined. But yeah, y=yc+yp

So I guess the correct answer continue something like this:
Solving for yp1:
yp1=Atet
y'p1=Atet+Aet
y''p1=Atet+2Aet

  • Atet+2Aet-3(Atet+Aet)+2(Atet)=et (which is trivial to solve)
    Atet-3Atet+2Atet = 0
    0=0 heh.
  • 2Aet-3Aet=et
    -1A = 1 -> A = -1

So then using that,
yp=-tet+1/2t2+3/2t-3.5/2

Which means that the General solution is:
ygeneral=c1et+c2e2t-tet+1/2t2+3/2t-3.5/2
 
  • #4
It really doesn't matter whether you treat et+ t2 as a single function or as two separate functions.

You do the Atet exactly like the At2+ Bt+ C:

If y= Atet, then y'= Aet+ Atet and y"= 2Aet+ Atet. Putting those into the equation, y"- 3y'+ 2y= (2Aet+ Atet)- 3(Aet+ Atet)+ 2(Atet)= -3Aet. The terms involving a multiplication by t have canceled just as we would expect. -Aet= et so A= -1. y= -tet is a particular solution.
 
  • #5
HallsofIvy said:
It really doesn't matter whether you treat et+ t2 as a single function or as two separate functions.

You do the Atet exactly like the At2+ Bt+ C:

If y= Atet, then y'= Aet+ Atet and y"= 2Aet+ Atet. Putting those into the equation, y"- 3y'+ 2y= (2Aet+ Atet)- 3(Aet+ Atet)+ 2(Atet)= -3Aet. The terms involving a multiplication by t have canceled just as we would expect. -Aet= et so A= -1. y= -tet is a particular solution.

Thank you very much for your help :).
 

FAQ: Nonhomogeneous with constant coefficients equation

What is a "nonhomogeneous with constant coefficients equation"?

A "nonhomogeneous with constant coefficients equation" is a type of differential equation where the coefficients (numbers in front of variables) are not changing and the equation also includes a non-zero constant term. This type of equation is commonly used in physics and engineering to model systems with external forces or inputs.

How is a nonhomogeneous with constant coefficients equation different from a homogeneous equation?

A homogeneous equation has all zero constant terms, while a nonhomogeneous equation has at least one non-zero constant term. This means that the solutions to a nonhomogeneous equation will also include a particular solution in addition to the general solution, which is the case for homogeneous equations.

What are the methods for solving a nonhomogeneous with constant coefficients equation?

Some methods for solving this type of equation include the method of undetermined coefficients, variation of parameters, and Laplace transforms. The specific method used depends on the form of the equation and the given initial or boundary conditions.

Can a nonhomogeneous with constant coefficients equation have a unique solution?

Yes, a nonhomogeneous equation can have a unique solution if the initial or boundary conditions are specified. However, if these conditions are not given, the equation may have an infinite number of solutions.

How is a nonhomogeneous with constant coefficients equation applied in real-world situations?

This type of equation can be used to model various real-world phenomena, such as the motion of objects under external forces, electrical circuits with input signals, and chemical reactions with external influences. It can also be used to solve problems in economics, biology, and other fields where external factors play a role in the system's behavior.

Back
Top