Frequently we encounter equations in which we are solving for a function instead of a number. If such an equation involves an unknown function as well as its derivatives, it is called a differential equation. These equations have numerous applications in a variety of fields, including physics, engineering, chemistry, and biology. In this lecture, we will dipping our toes into the theory of ordinary differential equations, which means differential equations in which the unknown function(s) involves only one variable.
We can immediately solve some of the most basic equations, such as , where k is a constant, from our knowledge of the basic derivatives.
The easiest differential equations to solve, at least in theory, are those where we can manipulate the equation algebraically to get on one side and some expression only involving x and constants on the other side. Then, we can just integrate both sides to get y. Integrable equations may not be presented in this format right away; often times, some manipulation is required to reach an integrable format. Take a look at . We can manipulate this to get
and integrate to get
Let's check that this fits:
Most equations are not integrable. But sometimes, we're very lucky, and we find that we separate the dy and the dx from each other, and that we can arrange the equation such that only terms of y appear on one side, and only terms of x on the other. Let's do an example of this by solving .
We can rewrite this
and separate it as
Now it's a simple matter of integrating!
which is an implicit equation with explicit solution
where we change the arbitrary constant c.
Not all separable equations are this obviously separable; sometimes much manipulation is needed to get it into a separable form.
A first-order equation involves only and no higher order derivatives. We've already seen such an equation in our separable example, but that wasn't linear. Right now, we're going to solve all linear first order equations.
This is the simplest one, which we've already addressed. has the obvious solution . It isn't hard to check that all multiples of this solution are also solutions.
We begin by considering . Where ever , we can divide out by P to get , which will make our lives much easier. Points where are called singular points and require special treatment we won't address here. Fortunately, we've already solved all these equations, since they're separable:
where k is an arbitrary constant.
A second order equation is an equation which contains a term, but no higher derivatives. We will consider only linear equations for now: this means that the coefficients of the derivatives of y do not contain terms in y.
When we solved , we found that was a solution. Note that is a root of the equation . Therefore, it makes sense to suppose that solutions of the equation may be found with , where are roots of the equation . Let r represent a specific root (either the first or second), and observe:
as desired. Hence we have found two possible solutions. An interesting thing happens if we consider linear combinations of these two solutions:
Taking all the relevant derivatives, we have
and examining the behavior of u in the LHS of the differential equation
reveals u is also a solution.
What about when the discriminant is 0, that is, when ? In this case, lets drop the subscript and just call our root .
Obviously, will still be a solution, but is there a second solution, as there was before? The key insight needed to answer this question is that for a double root , not only is the characteristic polynomial , so is the derivative . Therefore, it makes sense to consider the derivative of the solution with respect to r as another possible solution. Let's check:
As before, any linear combination is also a solution.
It should come as no surprise by now to learn that given an equation , a general solution is given by , where the are roots of the polynomial . If two roots are equal, then are both solutions; if three roots are equal, then are all solutions; if four roots are equal, then are all solutions, and so on.