suspenc3 said:
Im confused concerning linear diff eqns. I can solve some of them but I don't understand something in the following form.
Say dy/dx=x+y
what is P(x) going to be?
Not only for this, but a general explanation would help.
Thanks.
You have to understand that just saying "P(x)" doesn't tell us what you are looking for. There is no standard understanding of P(x)- except that perhaps it is some polynomial in x. Because you give a linear, first order, differential equation, y'- y= x, here are some ways I might interpret it:
1) P(x) is the "characteristic polynomial".
If we try a solution of the form y(x)= e
rx, to the "homogeneous part" of the equation, y'- y= 0, then y'(x)= re
rx so y'- y= re
rx- e
rx= 0. Since e
rx is never 0, we can divide the equation by it and get the "characteristic equation" r- 1= 0 which must be satisfied by r in order that e
rx be a solution to the equation. The "characteristic polynomial" then is P(r)= r-1 or P(x)= x-1. That has the advantage that it
is a polynomial as implied by the notation "P(x)" although it is strange that you should write it as a function of x, the independent variable in the differential equation.
1) P(x) is the "integrating factor".
Every first order differential equation has an integrating factor although the may be impossible to find. For a linear first order differential equation, it is particularly easy to find- there is a simple formula. I will, instead of using the formula, work it out from the definition.
We can write the differential equation as y'- y= x. An "integrating factor" for the equation is a function (not necessarily a polynomial) P(x) such that multiplying the equation by P(x) makes the left side a single derivative. That is, so that P(x)y'- P(x)y= d(P(x)y)/dx. Using the chain rule to expand the right side of that, we must have P(x)y'- P(x)y= P(x)y'+ P'(x)y. We can subtract P(x)y' from both sides and divide through by y. That gives P'(x)= -P(x) which is satisfied by P(x)= e
-x. That is, multiplying the equation y'- y= x by e
-x we have
e
-xy'- e
-xy= (e
-xy)'= xe
-x. We can integrate the left side immediately to get e
-xy and integrate the right side by parts.
3. P(x) is simply the "non-homogeneous" part of the differential equation.
Writing y'= x+ y as y'- y= x, so that everything involving y is is on the left side and all terms
not involving y are on the right, the "homogenous part" of the equation is y' -y and the "non-homogenous" part is P(x)= x (in general this is not necessarily a polynomial).
Unless you give us more information about what you mean by "P(x)", we can't be sure which, if any, of these is meant.