Solution for 2nd ODE Question 2d2ydx2 + 4 dydx+ 7y = e^−x cos x

  • Thread starter song90
  • Start date
  • Tags
    Ode
In summary, the conversation is about solving the equation 2d2ydx2 + 4 dydx+ 7y = e^−x cos x and finding the particular solution (yp) using undetermined coefficients. The suggested particular solution is yp = e-x(Acos x + Bsin x), where A and B are constants. However, there was some confusion about whether to include a "x" term in the particular solution if it has a common factor with the complementary solution (yc). In the end, it was clarified that the particular solution should not have an "x" term if it does not have a common factor with yc.
  • #1
song90
6
0
2d2ydx2 + 4 dydx+ 7y = e^−x cos x

i solved the equation for yc. but couldn't solve for yp as i dint know what kind of undetermined method to put for yp, particular integral.
 
Physics news on Phys.org
  • #2
song90 said:
2d2ydx2 + 4 dydx+ 7y = e^−x cos x

i solved the equation for yc. but couldn't solve for yp as i dint know what kind of undetermined method to put for yp, particular integral.
Your equation would be more readable as
2y'' + 4y' + 7y = e-xcos x

For your particular solution, try yp = e-x(Acos x + Bsin x).
 
  • #3
Try e^-x (A*cos x + B*sin x)
 
  • #4
Mark44 said:
Your equation would be more readable as
2y'' + 4y' + 7y = e-xcos x

For your particular solution, try yp = e-x(Acos x + Bsin x).


do e-x there put a constant?
let say p=Ce-x(Acos x + Bsin x)
 
  • #5
hi song90! :smile:

you can absorb the C into the other two constants

ie Ce-x(Acos x + Bsin x) = e-x(ACcos x + BCsin x),

so just rename AC A and BC B :wink:
 
  • #6
sorry, i am new to this forum...
yp = Ce-x(Acos x + Bsin x). insert a constant at e-x since it is one of the members of undetermined coefficient?

2y'' + 4y' + 7y = e-xcos x <this is the original question and the answer for yp is 1/3(e-xcos x). Still i could not manage to get the ans for yp. Looking for help..
 
  • #7
thanks for immediate reply. i was trying to solve the equations but i still couldn't get the answer for yp which is 1/3(e-xcos x). Wondering where the mistakes i had made
 
  • #8
song90 said:
sorry, i am new to this forum...
yp = Ce-x(Acos x + Bsin x). insert a constant at e-x since it is one of the members of undetermined coefficient?

i'm not following you :confused:

(and anyway, it makes no difference, as i said before)
2y'' + 4y' + 7y = e-xcos x <this is the original question and the answer for yp is 1/3(e-xcos x). Still i could not manage to get the ans for yp. Looking for help..

that's A = 1/3, B = 0, why couldn't you get it?

show us what you've tried :smile:
 
  • #9
okay looked back on my workings i found that i had timed a "x" in the yp equation,
yp=(e-x(ACcos x + BCsin x))x. i was thinking yp had common with yc as
yc=e-x(Asin√(5/2)+Bcos√(5/2))
 
  • #10
sorry, I've no idea what you're doing :confused:

put y = e-x(Acos x + Bsin x)

into 2y'' + 4y' + 7y = e-xcos x

to find A and B
 
  • #11
i was told by lecturer (maybe i misunderstanding what she said). If yp has the common with yc, yp=(equation)x. something like this... I have no idea about this lor.

anyways thanks a lot for your help.
 
  • #12
song90 said:
i was told by lecturer (maybe i misunderstanding what she said). If yp has the common with yc, yp=(equation)x. something like this...

i think she meant that if e-x or cosx was a solution for yc (in this case, it isn't),

then you would need to use xe-x(Acosx + Bsinx) instead of just e-x(Acosx + Bsinx) :smile:
 
  • #13
tiny-tim said:
i think she meant that if e-x or cosx was a solution for yc (in this case, it isn't),

then you would need to use xe-x(Acosx + Bsinx) instead of just e-x(Acosx + Bsinx) :smile:
Yes, I think the OP was trying to say this.
 

FAQ: Solution for 2nd ODE Question 2d2ydx2 + 4 dydx+ 7y = e^−x cos x

What is the general solution to the given second order differential equation?

The general solution to this second order differential equation is y(x) = c1e-xcosx + c2e-xsinx + e-x(Acosx + Bsinx), where c1 and c2 are arbitrary constants and A and B are determined by the initial conditions.

How do you solve for the particular solution of this second order ODE?

To solve for the particular solution, you would first find the complementary solution by setting the right side of the equation equal to zero. Then, using the method of undetermined coefficients, you would guess a particular solution for the non-homogeneous part of the equation and substitute it into the original equation to find the values of the constants. Finally, you would add the complementary solution and the particular solution to get the complete solution.

Can this differential equation be solved using separation of variables?

No, this second order differential equation cannot be solved using separation of variables because it is a non-homogeneous equation, meaning the right side is not equal to zero.

How do you determine the initial conditions for this second order ODE?

The initial conditions can be determined by either given values in the problem or by taking the derivatives of the equation and setting them equal to the values at a specific point. For example, if the equation is y'' + 4y' + 7y = 0 and the initial conditions are y(0) = 0 and y'(0) = 1, then you can substitute those values into the derivatives to solve for the constants in the general solution.

Can you use a computer program to solve this second order ODE?

Yes, you can use a computer program such as MATLAB or Python to solve this second order ODE. These programs have built-in functions or libraries that can numerically solve differential equations and provide a plot of the solution. However, it is important to understand the concepts and methods used to solve the equation by hand before using a computer program.

Similar threads

Replies
8
Views
2K
Replies
4
Views
2K
Replies
52
Views
3K
Replies
9
Views
2K
Back
Top