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: 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 without them the problems would be very difficult and beyond the scope of this discussion (and the course in most cases to be honest).
So, let’s get started.


Mixing Problems


In these problems we will start with a substance that is dissolved in a liquid. Liquid will be entering and leaving a holding tank. The liquid entering the tank may or may not contain more of the substance dissolved in it. Liquid leaving the tank will of course contain the substance dissolved in it. If Q(t) gives the amount of the substance dissolved in the liquid in the tank at any time t we want to develop a differential equation that, when solved, will give us an expression for Q(t). Note as well that in many situations we can think of air as a liquid for the purposes of these kinds of discussions and so we don’t actually need to have an actual liquid but could instead use air as the “liquid”.
The main assumption that we’ll be using here is that the concentration of the substance in the liquid is uniform throughout the tank. Clearly this will not be the case, but if we allow the concentration to vary depending on the location in the tank the problem becomes very difficult and will involve partial differential equations, which is not the focus of this course.
The main “equation” that we’ll be using to model this situation is :
Rate of
change of
Q(t)
=Rate at
which Q(t)
enters the
tank
Rate at
which Q(t)
exits the
tank
where,
Rate of change of Q(t) : Q(t)=dQdt=Q(t)
Rate at which Q(t) enters the tank : (flow rate of liquid entering) x
(concentration of substance in liquid entering)
Rate at which Q(t) exits the tank : (flow rate of liquid exiting) x
(concentration of substance in liquid exiting)
Let’s take a look at the first problem.


Example 1 A 1500 gallon tank initially contains 600 gallons of water with 5 lbs of salt dissolved in it. Water enters the tank at a rate of 9 gal/hr and the water entering the tank has a salt concentration of 15(1+cos(t)) lbs/gal. If a well mixed solution leaves the tank at a rate of 6 gal/hr, how much salt is in the tank when it overflows?<

First off, let’s address the “well mixed solution” bit. This is the assumption that was mentioned earlier. We are going to assume that the instant the water enters the tank it somehow instantly disperses evenly throughout the tank to give a uniform concentration of salt in the tank at every point. Again, this will clearly not be the case in reality, but it will allow us to do the problem.
Now, to set up the IVP that we’ll need to solve to get Q(t) we’ll need the flow rate of the water entering (we’ve got that), the concentration of the salt in the water entering (we’ve got that), the flow rate of the water leaving (we’ve got that) and the concentration of the salt in the water exiting (we don’t have this yet).
So, we first need to determine the concentration of the salt in the water exiting the tank. Since we are assuming a uniform concentration of salt in the tank the concentration at any point in the tank and hence in the water exiting is given by,
Concentration=Amount of salt in the tank at any time, tVolume of water in the tank at any time, tThe amount at any time t is easy it’s just Q(t). The volume is also pretty easy. We start with 600 gallons and every hour 9 gallons enters and 6 gallons leave. So, if we use t in hours, every hour 3 gallons enters the tank, or at any time t there is 600 + 3t gallons of water in the tank.
So, the IVP for this situation is,
Q(t)=(9)(15(1+cos(t)))(6)(Q(t)600+3t)Q(0)=5Q(t)=95(1+cos(t))2Q(t)200+tQ(0)=5This is a linear differential equation and it isn’t too difficult to solve (hopefully). We will show most of the details but leave the description of the solution process out. If you need a refresher on solving linear first order differential equations go back and take a look at that section.
Q(t)+2Q(t)200+t=95(1+cos(t))μ(t)=e2200+tdt=e2ln(200+t)=(200+t)2((200+t)2Q(t))dt=95(200+t)2(1+cos(t))dt
(200+t)2Q(t)=95(13(200+t)3+(200+t)2sin(t)+2(200+t)cos(t)2sin(t))+cQ(t)=95(13(200+t)+sin(t)+2cos(t)200+t2sin(t)(200+t)2)+c(200+t)2So, here’s the general solution. Now, apply the initial condition to get the value of the constant, c.
5=Q(0)=95(13(200)+2200)+c(200)2c=4600720So, the amount of salt in the tank at any time t is.
Q(t)=95(13(200+t)+sin(t)+2cos(t)200+t2sin(t)(200+t)2)4600720(200+t)2Now, the tank will overflow at t = 300 hrs. The amount of salt in the tank at that time is.
Q(300)=279.797 lbsHere’s a graph of the salt in the tank before it overflows.
Note that the whole graph should have small oscillations in it as you can see in the range from 200 to 250. The scale of the oscillations however was small enough that the program used to generate the image had trouble showing all of them.
The work was a little messy with that one, but they will often be that way so don’t get excited about it. This first example also assumed that nothing would change throughout the life of the process. That, of course, will usually not be the case. Let’s take a look at an example where something changes in the process.


Example 2 A 1000 gallon holding tank that catches runoff from some chemical process initially has 800 gallons of water with 2 ounces of pollution dissolved in it. Polluted water flows into the tank at a rate of 3 gal/hr and contains 5 ounces/gal of pollution in it. A well mixed solution leaves the tank at 3 gal/hr as well. When the amount of pollution in the holding tank reaches 500 ounces the inflow of polluted water is cut off and fresh water will enter the tank at a decreased rate of 2 gal/hr while the outflow is increased to 4 gal/hr. Determine the amount of pollution in the tank at any time t.

Okay, so clearly the pollution in the tank will increase as time passes. If the amount of pollution ever reaches the maximum allowed there will be a change in the situation. This will necessitate a change in the differential equation describing the process as well. In other words, we’ll need two IVP’s for this problem. One will describe the initial situation when polluted runoff is entering the tank and one for after the maximum allowed pollution is reached and fresh water is entering the tank.
Here are the two IVP’s for this problem.
Q1(t)=(3)(5)(3)(Q1(t)800)Q1(0)=20ttmQ2(t)=(2)(0)(4)(Q2(t)8002(ttm))Q2(tm)=500tmtteThe first one is fairly straight forward and will be valid until the maximum amount of pollution is reached. We’ll call that time tm. Also, the volume in the tank remains constant during this time so we don’t need to do anything fancy with that this time in the second term as we did in the previous example.
We’ll need a little explanation for the second one. First notice that we don’t “start over” at t=0. We start this one at tm, the time at which the new process starts. Next, fresh water is flowing into the tank and so the concentration of pollution in the incoming water is zero. This will drop out the first term, and that’s okay so don’t worry about that.
Now, notice that the volume at any time looks a little funny. During this time frame we are losing two gallons of water every hour of the process so we need the “-2” in there to account for that. However, we can’t just use t as we did in the previous example. When this new process starts up there needs to be 800 gallons of water in the tank and if we just use t there we won’t have the required 800 gallons that we need in the equation. So, to make sure that we have the proper volume we need to put in the difference in times. In this way once we are one hour into the new process (i.e ttm=1) we will have 798 gallons in the tank as required.
Finally, the second process can’t continue forever as eventually the tank will empty. This is denoted in the time restrictions as te. We can also note that te=tm+400 since the tank will empty 400 hours after this new process starts up. Well, it will end provided something doesn’t come along and start changing the situation again.
Okay, now that we’ve got all the explanations taken care of here’s the simplified version of the IVP’s that we’ll be solving.
Q1(t)=153Q1(t)800Q1(0)=20ttmQ2(t)=2Q2(t)400(ttm)Q2(tm)=500tmtteThe first IVP is a fairly simple linear differential equation so we’ll leave the details of the solution to you to check. Upon solving you get.
Q1(t)=40003998e3t800Now, we need to find tm. This isn’t too bad all we need to do is determine when the amount of pollution reaches 500. So, we need to solve.
Q1(t)=40003998e3t800=500tm=35.4750So, the second process will pick up at 35.475 hours. For completeness sake here is the IVP with this information inserted.
Q2(t)=2Q2(t)435.475tQ2(35.475)=50035.475t435.475This differential equation is both linear and separable and again isn’t terribly difficult to solve so I’ll leave the details to you again to check that we should get.
Q2(t)=(435.476t)2320So, a solution that encompasses the complete running time of the process is
Q(t)={40003998e3t8000t35.475(435.476t)232035.475t435.4758Here is a graph of the amount of pollution in the tank at any time t.
As you can surely see, these problems can get quite complicated if you want them to. Take the last example. A more realistic situation would be that once the pollution dropped below some predetermined point the polluted runoff would, in all likelihood, be allowed to flow back in and then the whole process would repeat itself. So, realistically, there should be at least one more IVP in the process.
Let’s move on to another type of problem now.

Population

These are somewhat easier than the mixing problems although, in some ways, they are very similar to mixing problems. So, if P(t) represents a population in a given region at any time t the basic equation that we’ll use is identical to the one that we used for mixing. Namely,
Rate of
change of
P(t)
=Rate at
which P(t)
enters the
region
-Rate at
which P(t)
exits the
region
Here the rate of change of P(t) is still the derivative. What’s different this time is the rate at which the population enters and exits the region. For population problems all the ways for a population to enter the region are included in the entering rate. Birth rate and migration into the region are examples of terms that would go into the rate at which the population enters the region. Likewise, all the ways for a population to leave an area will be included in the exiting rate. Therefore, things like death rate, migration out and predation are examples of terms that would go into the rate at which the population exits the area.
Here’s an example.


Example 3 A population of insects in a region will grow at a rate that is proportional to their current population. In the absence of any outside factors the population will triple in two weeks time. On any given day there is a net migration into the area of 15 insects and 16 are eaten by the local bird population and 7 die of natural causes. If there are initially 100 insects in the area will the population survive? If not, when do they die out?

Let’s start out by looking at the birth rate. We are told that the insects will be born at a rate that is proportional to the current population. This means that the birth rate can be written as
rPwhere r is a positive constant that will need to be determined. Now, let’s take everything into account and get the IVP for this problem.
P=(rP+15)(16+7)P(0)=100P=rP8P(0)=100Note that in the first line we used parenthesis to note which terms went into which part of the differential equation. Also note that we don’t make use of the fact that the population will triple in two weeks time in the absence of outside factors here. In the absence of outside factors means that the ONLY thing that we can consider is birth rate. Nothing else can enter into the picture and clearly we have other influences in the differential equation.
So, just how does this tripling come into play? Well, we should also note that without knowing r we will have a difficult time solving the IVP completely. We will use the fact that the population triples in two weeks time to help us find r. In the absence of outside factors the differential equation would become.
P=rPP(0)=100P(14)=300Note that since we used days as the time frame in the actual IVP I needed to convert the two weeks to 14 days. We could have just as easily converted the original IVP to weeks as the time frame, in which case there would have been a net change of –56 per week instead of the –8 per day that we are currently using in the original differential equation.
Okay back to the differential equation that ignores all the outside factors. This differential equation is separable and linear (either can be used) and is a simple differential equation to solve. We’ll leave the detail to you to get the general solution.
P(t)=certApplying the initial condition gives c = 100. Now apply the second condition.
300=P(14)=100e14r300=100e14rWe need to solve this for r. First divide both sides by 100, then take the natural log of both sides.
3=e14rln3=lne14rln3=14rr=ln314We made use of the fact that lneg(x)=g(x) here to simplify the problem. Now, that we have r we can go back and solve the original differential equation. We’ll rewrite it a little for the solution process.
Pln314P=8P(0)=100This is a fairly simple linear differential equation, but that coefficient of P always get people bent out of shape, so we’ll go through at least some of the details here.
μ(t)=eln314dt=eln314tNow, don’t get excited about the integrating factor here. It’s just like e2t only this time the constant is a little more complicated than just a 2, but it is a constant! Now, solve the differential equation.
(Peln314t)dt=8eln314tdtPeln314t=8(14ln3)eln314t+cP(t)=112ln3+celn314tAgain, do not get excited about doing the right hand integral, it’s just like integrating e2t! Applying the initial condition gives the following.
P(t)=112ln3+(100112ln3)eln314t=112ln31.94679eln314tNow, the exponential has a positive exponent and so will go to plus infinity as t increases. Its coefficient, however, is negative and so the whole population will go negative eventually. Clearly, population can’t be negative, but in order for the population to go negative it must pass through zero. In other words, eventually all the insects must die. So, they don’t survive, and we can solve the following to determine when they die out.
0=112ln31.94679eln314tt=50.4415daysSo, the insects will survive for around 7.2 weeks. Here is a graph of the population during the time in which they survive.

As with the mixing problems, we could make the population problems more complicated by changing the circumstances at some point in time. For instance, if at some point in time the local bird population saw a decrease due to disease they wouldn’t eat as much after that point and a second differential equation to govern the time after this point.
Let’s now take a look at the final type of problem that we’ll be modeling in this section.

Falling Object


This will not be the first time that we’ve looked into falling bodies. If you recall, we looked at one of these when we were looking at Direction Fields. In that section we saw that the basic equation that we’ll use is Newton’s Second Law of Motion.
mv=F(t,v)
The two forces that we’ll be looking at here are gravity and air resistance. The main issue with these problems is to correctly define conventions and then remember to keep those conventions. By this we mean define which direction will be termed the positive direction and then make sure that all your forces match that convention. This is especially important for air resistance as this is usually dependent on the velocity and so the “sign” of the velocity can and does affect the “sign” of the air resistance force.
Let’s take a look at an example.

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 - 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