In this section we need to take a look at the equation of a line in R 3 R 3 . As we saw in the previous section the equation y = m x + b y = m x + b does not describe a line in R 3 R 3 , instead it describes a plane. This doesn’t mean however that we can’t write down an equation for a line in 3-D space. We’re just going to need a new way of writing down the equation of a curve. So, before we get into the equations of lines we first need to briefly look at vector functions. We’re going to take a more in depth look at vector functions later. At this point all that we need to worry about is notational issues and how they can be used to give the equation of a curve. The best way to get an idea of what a vector function is and what its graph looks like is to look at an example. So, consider the following vector function. → r ( t ) = ⟨ t , 1 ⟩ r → ( t ) = ⟨ t , 1 ⟩ A vector function is a function that takes one or more variables, one in this case, and returns a vector. Note as we
In this section we will take a look at the first method that can be used to find a particular solution to a nonhomogeneous differential equation.
Notice that if we had had a cosine instead of a sine in the last example then our guess would have been the same. In fact, if both a sine and a cosine had shown up we will see that the same guess will also work.
Now that we’ve gone over the three basic kinds of functions that we can use undetermined coefficients on let’s summarize.
Notice that there are really only three kinds of functions given above. If you think about it the single cosine and single sine functions are really special cases of the case where both the sine and cosine are present. Also, we have not yet justified the guess for the case where both a sine and a cosine show up. We will justify this later.
This last example illustrated the general rule that we will follow when products involve an exponential. When a product involves an exponential we will first strip out the exponential and write down the guess for the portion of the function without the exponential, then we will go back and tack on the exponential without any leading coefficient.
One of the main advantages of this method is that it reduces the problem down to an algebra problem. The algebra can get messy on occasion, but for most of the problems it will not be terribly difficult. Another nice thing about this method is that the complementary solution will not be explicitly required, although as we will see knowledge of the complementary solution will be needed in some cases and so we’ll generally find that as well.
There are two disadvantages to this method. First, it will only work for a fairly small class of ’s. The class of ’s for which the method works, does include some of the more common functions, however, there are many functions out there for which undetermined coefficients simply won’t work. Second, it is generally only useful for constant coefficient differential equations.
The method is quite simple. All that we need to do is look at and make a guess as to the form of leaving the coefficient(s) undetermined (and hence the name of the method). Plug the guess into the differential equation and see if we can determine values of the coefficients. If we can determine values for the coefficients then we guessed correctly, if we can’t find values for the coefficients then we guessed incorrectly.
It’s usually easier to see this method in action rather than to try and describe it, so let’s jump into some examples.
Example 1 Determine a particular solution to
The point here is to find a particular solution, however the first thing that we’re going to do is find the complementary solution to this differential equation. Recall that the complementary solution comes from solving,
The characteristic equation for this differential equation and its roots are.
The complementary solution is then,
At this point the reason for doing this first will not be apparent, however we want you in the habit of finding it before we start the work to find a particular solution. Eventually, as we’ll see, having the complementary solution in hand will be helpful and so it’s best to be in the habit of finding it first prior to doing the work for undetermined coefficients.
Now, let’s proceed with finding a particular solution. As mentioned prior to the start of this example we need to make a guess as to the form of a particular solution to this differential equation. Since is an exponential and we know that exponentials never just appear or disappear in the differentiation process it seems that a likely form of the particular solution would be
Now, all that we need to do is do a couple of derivatives, plug this into the differential equation and see if we can determine what needs to be.
Plugging into the differential equation gives
So, in order for our guess to be a solution we will need to choose so that the coefficients of the exponentials on either side of the equal sign are the same. In other words we need to choose so that,
Okay, we found a value for the coefficient. This means that we guessed correctly. A particular solution to the differential equation is then,
The characteristic equation for this differential equation and its roots are.
The complementary solution is then,
At this point the reason for doing this first will not be apparent, however we want you in the habit of finding it before we start the work to find a particular solution. Eventually, as we’ll see, having the complementary solution in hand will be helpful and so it’s best to be in the habit of finding it first prior to doing the work for undetermined coefficients.
Now, let’s proceed with finding a particular solution. As mentioned prior to the start of this example we need to make a guess as to the form of a particular solution to this differential equation. Since is an exponential and we know that exponentials never just appear or disappear in the differentiation process it seems that a likely form of the particular solution would be
Now, all that we need to do is do a couple of derivatives, plug this into the differential equation and see if we can determine what needs to be.
Plugging into the differential equation gives
So, in order for our guess to be a solution we will need to choose so that the coefficients of the exponentials on either side of the equal sign are the same. In other words we need to choose so that,
Okay, we found a value for the coefficient. This means that we guessed correctly. A particular solution to the differential equation is then,
Before proceeding any further let’s again note that we started off the solution above by finding the complementary solution. This is not technically part the method of Undetermined Coefficients however, as we’ll eventually see, having this in hand before we make our guess for the particular solution can save us a lot of work and/or headache. Finding the complementary solution first is simply a good habit to have so we’ll try to get you in the habit over the course of the next few examples. At this point do not worry about why it is a good habit. We’ll eventually see why it is a good habit.
Now, back to the work at hand. Notice in the last example that we kept saying “a” particular solution, not “the” particular solution. This is because there are other possibilities out there for the particular solution we’ve just managed to find one of them. Any of them will work when it comes to writing down the general solution to the differential equation.
Speaking of which… This section is devoted to finding particular solutions and most of the examples will be finding only the particular solution. However, we should do at least one full blown IVP to make sure that we can say that we’ve done one.
Example 2 Solve the following IVP
We know that the general solution will be of the form,
and we already have both the complementary and particular solution from the first example so we don’t really need to do any extra work for this problem.
One of the more common mistakes in these problems is to find the complementary solution and then, because we’re probably in the habit of doing it, apply the initial conditions to the complementary solution to find the constants. This however, is incorrect. The complementary solution is only the solution to the homogeneous differential equation and we are after a solution to the nonhomogeneous differential equation and the initial conditions must satisfy that solution instead of the complementary solution.
So, we need the general solution to the nonhomogeneous differential equation. Taking the complementary solution and the particular solution that we found in the previous example we get the following for a general solution and its derivative.
Now, apply the initial conditions to these.
Solving this system gives and . The actual solution is then.
and we already have both the complementary and particular solution from the first example so we don’t really need to do any extra work for this problem.
One of the more common mistakes in these problems is to find the complementary solution and then, because we’re probably in the habit of doing it, apply the initial conditions to the complementary solution to find the constants. This however, is incorrect. The complementary solution is only the solution to the homogeneous differential equation and we are after a solution to the nonhomogeneous differential equation and the initial conditions must satisfy that solution instead of the complementary solution.
So, we need the general solution to the nonhomogeneous differential equation. Taking the complementary solution and the particular solution that we found in the previous example we get the following for a general solution and its derivative.
Now, apply the initial conditions to these.
Solving this system gives and . The actual solution is then.
This will be the only IVP in this section so don’t forget how these are done for nonhomogeneous differential equations!
Let’s take a look at another example that will give the second type of for which undetermined coefficients will work.
Example 3 Find a particular solution for the following differential equation.
Again, let’s note that we should probably find the complementary solution before we proceed onto the guess for a particular solution. However, because the homogeneous differential equation for this example is the same as that for the first example we won’t bother with that here.
Now, let’s take our experience from the first example and apply that here. The first example had an exponential function in the and our guess was an exponential. This differential equation has a sine so let’s try the following guess for the particular solution.
Differentiating and plugging into the differential equation gives,
Collecting like terms yields
We need to pick so that we get the same function on both sides of the equal sign. This means that the coefficients of the sines and cosines must be equal. Or,
Notice two things. First, since there is no cosine on the right hand side this means that the coefficient must be zero on that side. More importantly we have a serious problem here. In order for the cosine to drop out, as it must in order for the guess to satisfy the differential equation, we need to set , but if , the sine will also drop out and that can’t happen. Likewise, choosing to keep the sine around will also keep the cosine around.
What this means is that our initial guess was wrong. If we get multiple values of the same constant or are unable to find the value of a constant then we have guessed wrong.
One of the nicer aspects of this method is that when we guess wrong our work will often suggest a fix. In this case the problem was the cosine that cropped up. So, to counter this let’s add a cosine to our guess. Our new guess is
Plugging this into the differential equation and collecting like terms gives,
Now, set the coefficients equal
Solving this system gives us
We found constants and this time we guessed correctly. A particular solution to the differential equation is then,
Now, let’s take our experience from the first example and apply that here. The first example had an exponential function in the and our guess was an exponential. This differential equation has a sine so let’s try the following guess for the particular solution.
Differentiating and plugging into the differential equation gives,
Collecting like terms yields
We need to pick so that we get the same function on both sides of the equal sign. This means that the coefficients of the sines and cosines must be equal. Or,
Notice two things. First, since there is no cosine on the right hand side this means that the coefficient must be zero on that side. More importantly we have a serious problem here. In order for the cosine to drop out, as it must in order for the guess to satisfy the differential equation, we need to set , but if , the sine will also drop out and that can’t happen. Likewise, choosing to keep the sine around will also keep the cosine around.
What this means is that our initial guess was wrong. If we get multiple values of the same constant or are unable to find the value of a constant then we have guessed wrong.
One of the nicer aspects of this method is that when we guess wrong our work will often suggest a fix. In this case the problem was the cosine that cropped up. So, to counter this let’s add a cosine to our guess. Our new guess is
Plugging this into the differential equation and collecting like terms gives,
Now, set the coefficients equal
Solving this system gives us
We found constants and this time we guessed correctly. A particular solution to the differential equation is then,
Notice that if we had had a cosine instead of a sine in the last example then our guess would have been the same. In fact, if both a sine and a cosine had shown up we will see that the same guess will also work.
Let’s take a look at the third and final type of basic that we can have. There are other types of that we can have, but as we will see they will all come back to two types that we’ve already done as well as the next one.
Example 4 Find a particular solution for the following differential equation.
Once, again we will generally want the complementary solution in hand first, but again we’re working with the same homogeneous differential equation (you’ll eventually see why we keep working with the same homogeneous problem) so we’ll again just refer to the first example.
For this example, is a cubic polynomial. For this we will need the following guess for the particular solution.
Notice that even though doesn’t have a in it our guess will still need one! So, differentiate and plug into the differential equation.
Now, as we’ve done in the previous examples we will need the coefficients of the terms on both sides of the equal sign to be the same so set coefficients equal and solve.
Notice that in this case it was very easy to solve for the constants. The first equation gave . Then once we knew the second equation gave , etc. A particular solution for this differential equation is then
For this example, is a cubic polynomial. For this we will need the following guess for the particular solution.
Notice that even though doesn’t have a in it our guess will still need one! So, differentiate and plug into the differential equation.
Now, as we’ve done in the previous examples we will need the coefficients of the terms on both sides of the equal sign to be the same so set coefficients equal and solve.
Notice that in this case it was very easy to solve for the constants. The first equation gave . Then once we knew the second equation gave , etc. A particular solution for this differential equation is then
Now that we’ve gone over the three basic kinds of functions that we can use undetermined coefficients on let’s summarize.
guess | |
---|---|
degree polynomial |
Notice that there are really only three kinds of functions given above. If you think about it the single cosine and single sine functions are really special cases of the case where both the sine and cosine are present. Also, we have not yet justified the guess for the case where both a sine and a cosine show up. We will justify this later.
We now need move on to some more complicated functions. The more complicated functions arise by taking products and sums of the basic kinds of functions. Let’s first look at products.
Example 5 Find a particular solution for the following differential equation.
You’re probably getting tired of the opening comment, but again finding the complementary solution first really a good idea but again we’ve already done the work in the first example so we won’t do it again here. We promise that eventually you’ll see why we keep using the same homogeneous problem and why we say it’s a good idea to have the complementary solution in hand first. At this point all we’re trying to do is reinforce the habit of finding the complementary solution first.
Okay, let’s start off by writing down the guesses for the individual pieces of the function. The guess for the would be
while the guess for the exponential would be
Now, since we’ve got a product of two functions it seems like taking a product of the guesses for the individual pieces might work. Doing this would give
However, we will have problems with this. As we will see, when we plug our guess into the differential equation we will only get two equations out of this. The problem is that with this guess we’ve got three unknown constants. With only two equations we won’t be able to solve for all the constants.
This is easy to fix however. Let’s notice that we could do the following
If we multiply the through, we can see that the guess can be written in such a way that there are really only two constants. So, we will use the following for our guess.
Notice that this is nothing more than the guess for the with an exponential tacked on for good measure.
Now that we’ve got our guess, let’s differentiate, plug into the differential equation and collect like terms.
Note that when we’re collecting like terms we want the coefficient of each term to have only constants in it. Following this rule we will get two terms when we collect like terms. Now, set coefficients equal.
A particular solution for this differential equation is then
Okay, let’s start off by writing down the guesses for the individual pieces of the function. The guess for the would be
while the guess for the exponential would be
Now, since we’ve got a product of two functions it seems like taking a product of the guesses for the individual pieces might work. Doing this would give
However, we will have problems with this. As we will see, when we plug our guess into the differential equation we will only get two equations out of this. The problem is that with this guess we’ve got three unknown constants. With only two equations we won’t be able to solve for all the constants.
This is easy to fix however. Let’s notice that we could do the following
If we multiply the through, we can see that the guess can be written in such a way that there are really only two constants. So, we will use the following for our guess.
Notice that this is nothing more than the guess for the with an exponential tacked on for good measure.
Now that we’ve got our guess, let’s differentiate, plug into the differential equation and collect like terms.
Note that when we’re collecting like terms we want the coefficient of each term to have only constants in it. Following this rule we will get two terms when we collect like terms. Now, set coefficients equal.
A particular solution for this differential equation is then
This last example illustrated the general rule that we will follow when products involve an exponential. When a product involves an exponential we will first strip out the exponential and write down the guess for the portion of the function without the exponential, then we will go back and tack on the exponential without any leading coefficient.
Let’s take a look at some more products. In the interest of brevity we will just write down the guess for a particular solution and not go through all the details of finding the constants. Also, because we aren’t going to give an actual differential equation we can’t deal with finding the complementary solution first.
Comments
Post a Comment