Skip to main content

Calculus III - 3-Dimensional Space: Equations of Lines

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

Differential Equations - First Order: Exact - i


The next type of first order differential equations that we’ll be looking at is exact differential equations. Before we get into the full details behind solving exact differential equations it’s probably best to work an example that will help to show us just what an exact differential equation is. It will also show some of the behind the scenes details that we usually don’t bother with in the solution process.

The vast majority of the following example will not be done in any of the remaining examples and the work that we will put into the remaining examples will not be shown in this example. The whole point behind this example is to show you just what an exact differential equation is, how we use this fact to arrive at a solution and why the process works as it does. The majority of the actual solution details will be shown in a later example.


Example 1 Solve the following differential equation.2xy9x2+(2y+x2+1)dydx=0

Let’s start off by supposing that somewhere out there in the world is a function Ψ(x,y) that we can find. For this example the function that we need is
Ψ(x,y)=y2+(x2+1)y3x3Do not worry at this point about where this function came from and how we found it. Finding the function, Ψ(x,y), that is needed for any particular differential equation is where the vast majority of the work for these problems lies. As stated earlier however, the point of this example is to show you why the solution process works rather than showing you the actual solution process. We will see how to find this function in the next example, so at this point do not worry about how to find it, simply accept that it can be found and that we’ve done that for this particular differential equation.
Now, take some partial derivatives of the function.
Ψx=2xy9x2Ψy=2y+x2+1Now, compare these partial derivatives to the differential equation and you’ll notice that with these we can now write the differential equation as.
(1)Ψx+Ψydydx=0Now, recall from your multi-variable calculus class (probably Calculus III), that (1) is nothing more than the following derivative (you’ll need the multi-variable chain rule for this…).
ddx(Ψ(x,y(x)))So, the differential equation can now be written as
ddx(Ψ(x,y(x)))=0Now, if the ordinary (not partial…) derivative of something is zero, that something must have been a constant to start with. In other words, we’ve got to have Ψ(x,y)=c. Or,
y2+(x2+1)y3x3=cThis then is an implicit solution for our differential equation! If we had an initial condition we could solve for c. We could also find an explicit solution if we wanted to, but we’ll hold off on that until the next example.

Okay, so what did we learn from the last example? Let’s look at things a little more generally. Suppose that we have the following differential equation.
(2)M(x,y)+N(x,y)dydx=0
Note that it’s important that it must be in this form! There must be an “= 0” on one side and the sign separating the two terms must be a “+”. Now, if there is a function somewhere out there in the world, Ψ(x,y), so that,
Ψx=M(x,y)and Ψy=N(x,y)
then we call the differential equation exact. In these cases we can write the differential equation as
(3)Ψx+Ψydydx=0
Then using the chain rule from your Multivariable Calculus class we can further reduce the differential equation to the following derivative,
ddx(Ψ(x,y(x)))=0
The (implicit) solution to an exact differential equation is then
(4)Ψ(x,y)=c
Well, it’s the solution provided we can find Ψ(x,y) anyway. Therefore, once we have the function we can always just jump straight to (4) to get an implicit solution to our differential equation.

Finding the function Ψ(x,y) is clearly the central task in determining if a differential equation is exact and in finding its solution. As we will see, finding Ψ(x,y) can be a somewhat lengthy process in which there is the chance of mistakes. Therefore, it would be nice if there was some simple test that we could use before even starting to see if a differential equation is exact or not. This will be especially useful if it turns out that the differential equation is not exact, since in this case Ψ(x,y) will not exist. It would be a waste of time to try and find a nonexistent function!

So, let's see if we can find a test for exact differential equations. Let's start with (2) and assume that the differential equation is in fact exact. Since its exact we know that somewhere out there is a function Ψ(x,y) that satisfies
Ψx=MΨy=N
Now, provided Ψ(x,y) is continuous and its first order derivatives are also continuous we know that
Ψxy=Ψyx
However, we also have the following.
Ψxy=(Ψx)y=(M)y=MyΨyx=(Ψy)x=(N)x=Nx
Therefore, if a differential equation is exact and Ψ(x,y) meets all of its continuity conditions we must have.
(5)My=Nx
Likewise, if (5) is not true there is no way for the differential equation to be exact.
Therefore, we will use (5) as a test for exact differential equations. If (5) is true we will assume that the differential equation is exact and that Ψ(x,y) meets all of its continuity conditions and proceed with finding it. Note that for all the examples here the continuity conditions will be met and so this won’t be an issue.

Okay, let’s go back and rework the first example. This time we will use the example to show how to find Ψ(x,y). We’ll also add in an initial condition to the problem.


Example 2 Solve the following IVP and find the interval of validity for the solution.2xy9x2+(2y+x2+1)dydx=0,y(0)=3

First identify M and N and check that the differential equation is exact.
M=2xy9x2My=2xN=2y+x2+1Nx=2xSo, the differential equation is exact according to the test. However, we already knew that as we have given you Ψ(x,y). It’s not a bad thing to verify it however and to run through the test at least once however.
Now, how do we actually find Ψ(x,y)? Well recall that
Ψx=MΨy=NWe can use either of these to get a start on finding Ψ(x,y) by integrating as follows.
Ψ=MdxORΨ=NdyHowever, we will need to be careful as this won’t give us the exact function that we need. Often it doesn’t matter which one you choose to work with while in other problems one will be significantly easier than the other. In this case it doesn’t matter which one we use as either will be just as easy.
So, we’ll use the first one.
Ψ(x,y)=2xy9x2dx=x2y3x3+h(y)Note that in this case the “constant” of integration is not really a constant at all, but instead it will be a function of the remaining variable(s), y in this case.
Recall that in integration we are asking what function we differentiated to get the function we are integrating. Since we are working with two variables here and talking about partial differentiation with respect to x, this means that any term that contained only constants or y’s would have differentiated away to zero, therefore we need to acknowledge that fact by adding on a function of y instead of the standard c.
Okay, we’ve got most of Ψ(x,y) we just need to determine h(y) and we’ll be done. This is actually easy to do. We used Ψx=M to find most of Ψ(x,y) so we’ll use Ψy=N to find h(y). Differentiate our Ψ(x,y) with respect to y and set this equal to N (since they must be equal after all). Don’t forget to “differentiate” h(y)! Doing this gives,
Ψy=x2+h(y)=2y+x2+1=NFrom this we can see that
h(y)=2y+1Note that at this stage h(y) must be only a function of y and so if there are any x’s in the equation at this stage we have made a mistake somewhere and it’s time to go look for it.
We can now find h(y) by integrating.
h(y)=2y+1dy=y2+y+kYou’ll note that we included the constant of integration, k, here. It will turn out however that this will end up getting absorbed into another constant so we can drop it in general.
So, we can now write down Ψ(x,y).
Ψ(x,y)=x2y3x3+y2+y+k=y2+(x2+1)y3x3+kWith the exception of the k this is identical to the function that we used in the first example. We can now go straight to the implicit solution using (4).
y2+(x2+1)y3x3+k=cWe’ll now take care of the k. Since both k and c are unknown constants all we need to do is subtract one from both sides and combine and we still have an unknown constant.
y2+(x2+1)y3x3=cky2+(x2+1)y3x3=cTherefore, we’ll not include the k in anymore problems.
This is where we left off in the first example. Let’s now apply the initial condition to find c.
(3)2+(0+1)(3)3(0)3=cc=6The implicit solution is then.
y2+(x2+1)y3x36=0Now, as we saw in the separable differential equation section, this is quadratic in y and so we can solve for y(x) by using the quadratic formula.
y(x)=(x2+1)±(x2+1)24(1)(3x36)2(1)=(x2+1)±x4+12x3+2x2+252Now, reapply the initial condition to figure out which of the two signs in the ± that we need.
3=y(0)=1±252=1±52=3,2So, it looks like the “-” is the one that we need. The explicit solution is then.
y(x)=(x2+1)x4+12x3+2x2+252Now, for the interval of validity. It looks like we might well have problems with square roots of negative numbers. So, we need to solve
x4+12x3+2x2+25=0
Upon solving this equation is zero at x = –11.81557624 and x = –1.396911133. Note that you’ll need to use some form of computational aid in solving this equation. Here is a graph of the polynomial under the radical.
So, it looks like there are two intervals where the polynomial will be positive.
<x11.815576241.396911133x<However, recall that intervals of validity need to be continuous intervals and contain the value of x that is used in the initial condition. Therefore, the interval of validity must be.
1.396911133x<Here is a quick graph of the solution.

That was a long example, but mostly because of the initial explanation of how to find Ψ(x,y). The remaining examples will not be as long.


Example 3 Find the solution and interval of validity for the following IVP.2xy2+4=2(3x2y)yy(1)=8

Here, we first need to put the differential equation into proper form before proceeding. Recall that it needs to be “= 0” and the sign separating the two terms must be a plus!
2xy2+42(3x2y)y=02xy2+4+2(x2y3)y=0So, we have the following
M=2xy2+4My=4xyN=2x2y6Nx=4xyand so the differential equation is exact. We can either integrate M with respect to x or integrate N with respect to y. In this case either would be just as easy so we’ll integrate N this time so we can say that we’ve got an example of both down here.
Ψ(x,y)=2x2y6dy=x2y26y+h(x)This time, as opposed to the previous example, our “constant” of integration must be a function of x since we integrated with respect to y. Now differentiate with respect to x and compare this to M.
Ψx=2xy2+h(x)=2xy2+4=MSo, it looks like
h(x)=4h(x)=4xAgain, we’ll drop the constant of integration that technically should be present in h(x) since it will just get absorbed into the constant we pick up in the next step. Also note that, h(x) should only involve x’s at this point. If there are any y’s left at this point a mistake has been made so go back and look for it.
Writing everything down gives us the following for Ψ(x,y).
Ψ(x,y)=x2y26y+4xSo, the implicit solution to the differential equation is
x2y26y+4x=cApplying the initial condition gives,
64484=cc=12The solution is then
x2y26y+4x12=0Using the quadratic formula gives us
y(x)=6±364x2(4x12)2x2=6±36+48x216x32x2=6±29+12x24x32x2=3±9+12x24x3x2Reapplying the initial condition shows that this time we need the “+” (we’ll leave those details to you to check). Therefore, the explicit solution is
y(x)=3+9+12x24x3x2Now let’s find the interval of validity. We’ll need to avoid x = 0 so we don’t get division by zero. We’ll also have to watch out for square roots of negative numbers so solve the following equation.
4x3+12x2+9=0The only real solution here is ­x=3.217361577. Below is a graph of the polynomial.
So, it looks like the polynomial will be positive, and hence okay under the square root on
<x<3.217361577Now, this interval can’t be the interval of validity because it contains x=0 and we need to avoid that point. Therefore, this interval actually breaks up into two different possible intervals of validity.
<x<00<x<3.217361577The first one contains x=1, the x value from the initial condition. Therefore, the interval of validity for this problem is <x<0.
Here is a graph of the solution.

Comments

Popular posts from this blog

Digital Signal Processing - Basic Continuous Time Signals

To test a system, generally, standard or basic signals are used. These signals are the basic building blocks for many complex signals. Hence, they play a very important role in the study of signals and systems. Unit Impulse or Delta Function A signal, which satisfies the condition,   δ ( t ) = lim ϵ → ∞ x ( t ) δ ( t ) = lim ϵ → ∞ x ( t )   is known as unit impulse signal. This signal tends to infinity when t = 0 and tends to zero when t ≠ 0 such that the area under its curve is always equals to one. The delta function has zero amplitude everywhere except at t = 0. Properties of Unit Impulse Signal δ(t) is an even signal. δ(t) is an example of neither energy nor power (NENP) signal. Area of unit impulse signal can be written as; A = ∫ ∞ − ∞ δ ( t ) d t = ∫ ∞ − ∞ lim ϵ → 0 x ( t ) d t = lim ϵ → 0 ∫ ∞ − ∞ [ x ( t ) d t ] = 1 Weight or strength of the signal can be written as; y ( t ) = A δ ( t ) y ( t ) = A δ ( t ) Area of the weighted impulse signal can

Differential Equations - First Order: Bernoulli

In this section we are going to take a look at differential equations in the form, y ′ + p ( x ) y = q ( x ) y n y ′ + p ( x ) y = q ( x ) y n where  p ( x ) p ( x )  and  q ( x ) q ( x )  are continuous functions on the interval we’re working on and  n n  is a real number. Differential equations in this form are called  Bernoulli Equations . First notice that if  n = 0 n = 0  or  n = 1 n = 1  then the equation is linear and we already know how to solve it in these cases. Therefore, in this section we’re going to be looking at solutions for values of  n n  other than these two. In order to solve these we’ll first divide the differential equation by  y n y n  to get, y − n y ′ + p ( x ) y 1 − n = q ( x ) y − n y ′ + p ( x ) y 1 − n = q ( x ) We are now going to use the substitution  v = y 1 − n v = y 1 − n  to convert this into a differential equation in terms of  v v . As we’ll see this will lead to a differential equation that we can solve. We are going to have to be c

Differential Equations - Systems: Solutions

Now that we’ve got some of the basics out of the way for systems of differential equations it’s time to start thinking about how to solve a system of differential equations. We will start with the homogeneous system written in matrix form, → x ′ = A → x (1) (1) x → ′ = A x → where,  A A  is an  n × n n × n  matrix and  → x x →  is a vector whose components are the unknown functions in the system. Now, if we start with  n = 1 n = 1 then the system reduces to a fairly simple linear (or separable) first order differential equation. x ′ = a x x ′ = a x and this has the following solution, x ( t ) = c e a t x ( t ) = c e a t So, let’s use this as a guide and for a general  n n  let’s see if → x ( t ) = → η e r t (2) (2) x → ( t ) = η → e r t will be a solution. Note that the only real difference here is that we let the constant in front of the exponential be a vector. All we need to do then is plug this into the differential equation and see what we get. First notice that

Calculus III - 3-Dimensional Space: Equations of Lines

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

Digital Signal Processing - Miscellaneous Signals

There are other signals, which are a result of operation performed on them. Some common type of signals are discussed below. Conjugate Signals Signals, which satisfies the condition  x ( t ) = x ∗ ( − t ) are called conjugate signals. Let  x ( t ) = a ( t ) + j b ( t ) So,  x ( − t ) = a ( − t ) + j b ( − t ) And  x ∗ ( − t ) = a ( − t ) − j b ( − t ) By Condition,  x ( t ) = x ∗ ( − t ) If we compare both the derived equations 1 and 2, we can see that the real part is even, whereas the imaginary part is odd. This is the condition for a signal to be a conjugate type. Conjugate Anti-Symmetric Signals Signals, which satisfy the condition  x ( t ) = − x ∗ ( − t ) are called conjugate anti-symmetric signal Let  x ( t ) = a ( t ) + j b ( t ) So  x ( − t ) = a ( − t ) + j b ( − t ) And  x ∗ ( − t ) = a ( − t ) − j b ( − t ) − x ∗ ( − t ) = − a ( − t ) + j b ( − t ) By Condition  x ( t ) = − x ∗ ( − t ) Now, again compare, both the equations just as w

Differential Equations - First Order: Modeling - i

We now move into one of the main applications of differential equations both in this class and in general. Modeling is the process of writing a differential equation to describe a physical situation. Almost all of the differential equations that you will use in your job (for the engineers out there in the audience) are there because somebody, at some time, modeled a situation to come up with the differential equation that you are using. This section is not intended to completely teach you how to go about modeling all physical situations. A whole course could be devoted to the subject of modeling and still not cover everything! This section is designed to introduce you to the process of modeling and show you what is involved in modeling. We will look at three different situations in this section : Mixing Problems, Population Problems, and Falling Objects. In all of these situations we will be forced to make assumptions that do not accurately depict reality in most cases, but wi

Differential Equations - Basic Concepts: Definitions

Differential Equation The first definition that we should cover should be that of  differential equation . A differential equation is any equation which contains derivatives, either ordinary derivatives or partial derivatives. There is one differential equation that everybody probably knows, that is Newton’s Second Law of Motion. If an object of mass  m m  is moving with acceleration  a a  and being acted on with force  F F  then Newton’s Second Law tells us. F = m a (1) (1) F = m a To see that this is in fact a differential equation we need to rewrite it a little. First, remember that we can rewrite the acceleration,  a a , in one of two ways. a = d v d t OR a = d 2 u d t 2 (2) (2) a = d v d t OR a = d 2 u d t 2 Where  v v  is the velocity of the object and  u u  is the position function of the object at any time  t t . We should also remember at this point that the force,  F F  may also be a function of time, velocity, and/or position. So, with all these things in

Differential Equations - Partial: Summary of Separation of Variables

Throughout this chapter we’ve been talking about and solving partial differential equations using the method of separation of variables. However, the one thing that we’ve not really done is completely work an example from start to finish showing each and every step. Each partial differential equation that we solved made use somewhere of the fact that we’d done at least part of the problem in another section and so it makes some sense to have a quick summary of the method here. Also note that each of the partial differential equations only involved two variables. The method can often be extended out to more than two variables, but the work in those problems can be quite involved and so we didn’t cover any of that here. So with all of that out of the way here is a quick summary of the method of separation of variables for partial differential equations in two variables. Verify that the partial differential equation is linear and homogeneous. Verify that the boundary condi

Differential Equations - Systems: Repeated Eigenvalues - i

This is the final case that we need to take a look at. In this section we are going to look at solutions to the system, → x ′ = A → x x → ′ = A x → where the eigenvalues are repeated eigenvalues. Since we are going to be working with systems in which  A A  is a  2 × 2 2 × 2  matrix we will make that assumption from the start. So, the system will have a double eigenvalue,  λ λ . This presents us with a problem. We want two linearly independent solutions so that we can form a general solution. However, with a double eigenvalue we will have only one, → x 1 = → η e λ t x → 1 = η → e λ t So, we need to come up with a second solution. Recall that when we looked at the double root case with the second order differential equations we ran into a similar problem. In that section we simply added a  t t  to the solution and were able to get a second solution. Let’s see if the same thing will work in this case as well. We’ll see if → x = t e λ t → η x → = t e λ t η → will also be a

Differential Equations - First Order: Modeling - ii

Example 4  A 50 kg object is shot from a cannon straight up with an initial velocity of 10m/s off a bridge that is 100 meters above the ground. If air resistance is given by 5 v v  determine the velocity of the mass when it hits the ground. First, notice that when we say straight up, we really mean straight up, but in such a way that it will miss the bridge on the way back down. Here is a sketch of the situation. Notice the conventions that we set up for this problem. Since the vast majority of the motion will be in the downward direction we decided to assume that everything acting in the downward direction should be positive. Note that we also defined the “zero position” as the bridge, which makes the ground have a “position” of 100. Okay, if you think about it we actually have two situations here. The initial phase in which the mass is rising in the air and the second phase when the mass is on its way down. We will need to examine both situations and set up an IVP for