Differential Equations/Separable 1
From Wikibooks, the open-content textbooks collection
Contents |
[edit] What are Separable Variables?
A differential equation with separated variables is an kind of exact equation
Pdx + Qdy = 0
Where P=P(x) is a function of x alone, and Q=Q(y) is a function of y alone.
The its integral is simply

An equation where you can factor out both P and Q into separate functions of x and y
P1(x)P2(y)dx + Q1(x)Q2(y)dy = 0
is called separable because the equation can become an equation with separated variables.

However, attention must be paid to this process of division. The cases when Q1(x) = 0 and P2(y) = 0 will be additional possible integral solutions that will not be found through the integral because of this division.
[edit] Trivial cases
There are two special cases of a separable equation that make the solution almost trivial. These are the cases where either
or
where k is a constant. In either case, the equation changes from being in terms of 3 variables and reduces down to 2. When we can throw out one of the two variables, the solution can be achieved by a simple integral.
[edit] No y term: g(y)=k
If g(y)=k, we can treat k as part of f(x), and turn g(y) into 1. Now, we're left with
-
.
This is now basic calculus - take the integral of both sides. The general solution is
where C is a constant.
Let's take a look at a few examples.
[edit] Example 1
- Here, we have a derivative equaling a function of x. The original function is the antiderivative of this, that is, we have to integrate to find it. Now we integrate both sides of the equation, w.r.t.x (with regard to 'x'):
- This is the general solution. A function that solves a differential equation is said to satisfy it, so
- satisfies the differential equation
-
-
.
-
[edit] Example 2
- This works the same as before - integrate both sides w.r.t.x (with regard to 'x').
- This is the pwet solution.
[edit] No x term: f(x)=k
The other special case, where
-
- f(x) = k,
is similar. The only difference is how we make it into an integrable form. Our equation is
Since we need to get all the y's on one side and x's on the others, we use a clever trick of our notation. The notation we are currently using, involving dy and dx in fractional form was invented by Leibniz, one of the founders of integral calculus. He designed it so that the notation to some extent explained the calculations. Now, by themselves, dy and dx are actually linear functions - dy is a linear function of dx, defined by the relation dy=y'dx. Through this definition, we can see that the derivative y' is the same as the quotient
. Therefore, using this definition of differentials, this gives us
What this represents is that dx varies directly with dy. Through this relation, we can clearly see that that on both sides, there is only a function of one variable, so we can integrate it in respect to x. This is essentially due to the chain rule, where the dy is there to "allow" us to integrate in respect to y whereas we are really integrating in respect to x. So we write
We now have two integrals, each with respect to the functions contained in them. The solution is of the form
You can now try to solve for y. It is possible that the LHS is not integrable, and in that case, we leave it in as clean a form as possible. Another important concept emerges here. After solving the integral on the LHS, there will be another constant of integration, D. Since both C and D are arbitrary numbers, we can collapse them both into one. Therefore, only one constant of integration is needed, and this is generally called C.
By multiplying by one thing, say a and dividing by another, say b, we can also write that as multiplying by
. This is called the integrating factor, or factor of integration.
[edit] Example 3
- Where k is a constant. We perform our notational 'backflip', and we obtain:
- Integrate both sides to get
- Now we need to solve for y
- Since eC is a constant itself, we can just call it C.
- This is the general solution, and serves to illustrate that the component defining the particular solution is not always added on, but can also be multiplied in. This result is a very important equation in both physics and biology, as I'll discuss in the examples section below.
[edit] Example 4
- Here we multiply through by y, and multiply through by dx. The rest of the math works as before.
In this case, its more convenient to solve for y2 than y. If we take the square root to solve for y, we change the equation (since the square root of a number is always positive, we would lose half of each solution curve). In these cases its just fine to leave it in its current form.
You may have noticed that the right hand side of the equation, before solving for y, is the same for both examples. When f(x)=k, the right hand side will always be kx+C where k is whatever constant is in the problem. It only changes when f(x) is not constant.
[edit] General Separable Variable Equations
In the most general case, neither f(x) or g(x) is a constant. In this case, we use the same method as before (although the variables might have to be separated first). The only difference is that the right hand side is a non-trivial integral, so we have to actually do work to figure out both sides. This can produce some untidy solutions, and DEs are known for this. This untidiness often means that we might want to check our result at the end.
[edit] Homogeneous Ordinary Differential Equations
A function P is homogeneous of order α if aαP(x,y) = P(ax,ay). A homogeneous ordinary differential equation is an equation of the form P(x,y)dx+Q(x,y)dy=0 where P and Q are homogeneous of the same order.
The first usage of the following method for solving homogeneous ordinary differential equations was by Leibniz in 1691. Using the substitution y=vx or x=vy, we can make turn the equation into a separable equation.
Now we need to find v':
Plug back into the original equation
- Solve for v(x), then plug into the equation of v to get y
Again, don't memorize the equation. Remember the general method, and apply it.
[edit] Example 2
Let's use
. Solve for y'(x,v,v')
Now plug into the original equation
Solve for v
Plug into the definition of v to get y.
We leave it in y2 form, since solving for y would lose information.
[edit] Example 3
Lets use
again. Solve for y'(x,v,v')
Now plug into the original equation
- sin(v)dv = dx
Solve for v:
Use the definition of v to solve for y.
[edit] Checking Solutions
How do we check our solutions? Simply plug them in. Let's say we have a solution y(x). We can easily find its derivative. If we just plug in for y and y', the two sides of the equation should be equal. If they aren't, we made a mistake. If our equation isn't in an easily differentiable a form, we will need to take the derivative of both sides, and then solve for y' before plugging in. Due to the chain rule, this generally isn't too bad - the derivatives almost always end up in the form

Its just a matter of factoring out the y' and dividing by the other factors to solve for it.
For the following solutions, we'll check all our work to prove the answers.
[edit] Example 5
- Dividing by y3 and multiplying by dx gives
- Like I said - an untidy solution. Now to check the answer. First, let's take the derivative of the LHS of the solution.
- Now for the RHS:
- so, equating,
- Now, solve that for
:
- Finally, plug into the original equation and see if it checks.
- Multiply both sides by
to show that
- hence
- This turns out to be right (the two sides equal each other), so the solution is correct. Solving this problem was probably easier than checking it, but at least you know you can do it if you need to be sure you're right.
[edit] Example 6
- We multiply by
:
- Now to check our working. Solve for
:
- Now plug in
This confirms our solution.
[edit] Example 7
- This doesn't look separable at first glance. A little factoring can be applied though:
- This is separable with an integration factor of

- Now to check our answer. First, solve for
:
- Now plug in and see if they match
- Once again, our solution is confirmed.
[edit] An equation that is a function of a quotient of linear expressions
Given the equation
,
We can make the substitution x=x'+h and y=y'+k where h and k satisfy the system of linear equations:
a1h + b1k + c1 = 0
a2h + b2k + c2 = 0
Which turns it into a homogeneous equation of degree 0:

[edit] Problems with Boundary Conditions
Solving an initial value problem is fairly easy. Solve for y as we did above. Then once you have the equation, plug in b for y and a for x. Then, solve for the constant.
[edit] Example 8
- As we saw in example 3, the general solution to this is y=Cekx. Let's plug in our boundary conditions:
- This is the particular solution.
Proceed to the next part of the lesson: Examples























































































