One of the aims of MAM1000W isn’t just to teach you individual mathematical topics, but over time to allow you to see the links between these subjects. Sometimes we do this explicitly, and sometimes you should notice the connections yourself simply by seeing one topic pop up in the middle of another. As I’ve written before, so much of it is about noticing patterns.

Today in class I gave a differential equation which wouldn’t be solvable by any of the methods we have looked at.

This is second order linear but its coefficients are not constant. We don’t have any way in to solve this. We actually wanted to solve this with the initial conditions and .

Actually, that’s a lie. We didn’t want to solve it, but we wanted to get an approximation for the solution close to . This is like saying: OK, so we have a differential equation for population dynamics, or climate change, or the heating of an object, and we don’t worry too much about the very far future, but we want to know what it’s going to do in the short term. So what we really want is to find a function which is a good approximation for the solution close to .

We know a really good way of approximating functions, and that’s by a polynomial expression. So let’s say that we want our solution to be of the form:

We aren’t always guaranteed that we can do this, but we would be able to see pretty quickly if it’s not going to work. We’ve got a load of unknown constants and we are going to want to fix these such that approximately solves the differential equation and has the initial conditions that we are imposing.

We can actually start off with the initial conditions. If we want our to satisfy and , then we have:

and then we take the derivative of to get:

and so

which leaves us with:

ok, now let’s plug this into the differential equation and see what we get. Taking first and second derivatives we get:

So that looks like we’ve just taken something complicated and made it worse…however, we remember that and can be written also as polynomial approximations. Let’s expand each of them up to second order and see what we get. We could go further, but we won’t need to:

Now it looks even worse than before…but wait…let’s try and rearrange things a bit. Let’s take each of these terms, expand out the brackets and only keep terms up to . Remember that because we are trying to find the solution to this close to , the higher order terms get smaller and smaller. Expand to maximum we have:

ok, still a mess. Now let’s organise this so that we collect order by order in :

That’s much better. OK, so we want this to hold for any small . So each term needs to vanish on its own. This means that we must have:

$latex (2 a_2+6 a_3)=0$

$latex (a_2+3 a_3+12 a_4-1)=0$

In fact, solving each of these in turn we find that , but . Thus, an approximation for a solution of the differential equation which satisfies the initial conditions is:

.

We can see that we could go to higher and higher order if we wanted to get a more accurate solution. In fact, if we go up to 10th order then we end up with:

.

With this approximation, if we compare it with a very accurate numerical solution, we find that it matches very well up to around . With 20 terms we can get an accurate solution out to .

This shows that for this example, if you wanted to go to large values of , this isn’t a very good way to go, but we can at least get a good approximation for the solution close for small . To find the solution for all we need to develop some interesting numerical methods which you might discover later on in your mathematics courses.

Ntokozo KhumaloNovember 5, 2018 at 8:19 amIt’s very beautiful to see the power that mathematics give us. I like the fact that mathematics is tricky, that what makes it beautiful.