Ordinary differential equations (ODE)Suppose a differential equation can be written in the form which we can write more simply by letting y = f(x): As long as h(y) ≠ 0, we can rearrange terms to obtain: so that the two variables x and y have been separated. Alternative notationSome who dislike Leibniz's notation may prefer to write this as but that fails to make it quite as obvious why this is called "separation of variables". Integrating both sides of the equation with respect to x, we have or equivalently, because of the substitution rule for integrals. If one can evaluate the two integrals, one can find a solution to the differential equation. Observe that this process effectively allows us to treat the derivative (Note that we do not need to use two constants of integration, in equation (2) as in because a single constant C = C2 − C1 is equivalent.) Example (I)The ordinary differential equation may be written as If we let g(x) = 1 and h(y) = y(1 − y), we can write the differential equation in the form of equation (1) above. Thus, the differential equation is separable. As shown above, we can treat dy and dx as separate values, so that both sides of the equation may be multiplied by dx. Subsequently dividing both sides by y(1 − y), we have At this point we have separated the variables x and y from each other, since x appears only on the right side of the equation and y only on the left. Integrating both sides, we get which, via partial fractions, becomes and then
where C is the constant of integration. A bit of algebra gives a solution for y: One may check our solution by taking the derivative with respect to x of the function we found, where B is an arbitrary constant. The result should be equal to our original problem. (One must be careful with the absolute values when solving the equation above. It turns out that the different signs of the absolute value contribute the positive and negative values for B, respectively. And the B = 0 case is contributed by the case that y = 1, as discussed below.) Note that since we divided by y and (1 − y) we must check to see whether the solutions y(x) = 0 and y(x) = 1 solve the differential equation (in this case they are both solutions). See also: singular solutions. Example (II)Population growth is often modeled by the differential equation where P is the population with respect to time t, k is the rate of growth, and K is the carrying capacity of the environment. Separation of variables may be used to solve this differential equation. To evaluate the integral on the left side, we simplify the complex fraction: Then, we decompose the fraction into partial fractions: Thus we have
Therefore, the solution to the logistic equation is To find A, let t = 0 and Noting that e0 = 1, and solving for A we get Partial differential equationsGiven a partial differential equation of a function of n variables, it is sometimes useful to guess a solution of the form or which turns the partial differential equation (PDE) into a set of ODEs. Usually, each independent variable creates a separation constant that cannot be determined only from the equation itself. When such a technique works, it is called a separable partial differential equation. Example (I)Suppose F is a function of x, y, and z, and we are trying to solve the following PDE: We shall guess that the solution has the form Plugging equation (2) into (1), we have Observe that X′(x) is a function of x only, Y′(y) is a function of y only, and Z′(z) is a function of z only. In order for equation (1) to hold for all x, y, and z, each of the terms in (3) must be constant, otherwise each term would introduce variables which could not be canceled by the other two terms. Thus, where the constants c1, c2, c3 satisfy Equation (4) is actually a set of three ODEs. In this case they are trivial and can be solved by simple integration, giving: where the integration constant c4 is determined by initial conditions. Example (II)Consider the differential equation First, we seek solutions of the form (Note that, generally, the solution will be an infinite linear combination of functions of this form.) Substituting, Divide throughout by X(x) and then by Y(y) Now X′′(x)/X(x) is a function of x only, and (Y′′(y)+λY(y))/Y(y) is a function of y only, and so on for their sum to be equal to zero for all x and y, they must both be constant. Thus, where k is the separation constant. This splits up into ordinary differential equations and which we can solve accordingly. If the equation as posed originally was a boundary value problem, one would use the given boundary values. See that article for an example which uses boundary values. References
External links
| |