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 - Laplace Transforms: Step Functions - i

Before proceeding into solving differential equations we should take a look at one more function. Without Laplace transforms it would be much more difficult to solve differential equations that involve this function in 
g(t).

The function is the Heaviside function and is defined as,
uc(t)={0if t<c1if tc
Here is a graph of the Heaviside function.


Heaviside functions are often called step functions. Here is some alternate notation for Heaviside functions.
uc(t)=u(tc)=H(tc)
We can think of the Heaviside function as a switch that is off until t=c at which point it turns on and takes a value of 1. So, what if we want a switch that will turn on and takes some other value, say 4, or -7?
Heaviside functions can only take values of 0 or 1, but we can use them to get other kinds of switches. For instance, 4uc(t) is a switch that is off until t=c and then turns on and takes a value of 4. Likewise, 7uc(t) will be a switch that will take a value of -7 when it turns on.
Now, suppose that we want a switch that is on (with a value of 1) and then turns off at t=c. We can use Heaviside functions to represent this as well. The following function will exhibit this kind of behavior.
1uc(t)={10=1if t<c11=0if tc
Prior to t=c the Heaviside is off and so has a value of zero. The function as whole then for t<c has a value of 1. When we hit t=c the Heaviside function will turn on and the function will now take a value of 0.
We can also modify this so that it has values other than 1 when it is on. For instance,
33uc(t)
will be a switch that has a value of 3 until it turns off at t=c.
We can also use Heaviside functions to represent much more complicated switches.


Example 1 Write the following function (or switch) in terms of Heaviside functions.f(t)={4if t<625if 6t<816if 8t<3010if t30

There are three sudden shifts in this function and so (hopefully) it’s clear that we’re going to need three Heaviside functions here, one for each shift in the function. Here’s the function in terms of Heaviside functions.
f(t)=4+29u6(t)9u8(t)6u30(t)It’s fairly easy to verify this.
In the first interval, t<6 all three Heaviside functions are off and the function has the value
f(t)=4Notice that when we know that Heaviside functions are on or off we tend to not write them at all as we did in this case.
In the next interval, 6t<8 the first Heaviside function is now on while the remaining two are still off. So, in this case the function has the value.
f(t)=4+29=25In the third interval, 8t<30 the first two Heaviside functions are on while the last remains off. Here the function has the value.
f(t)=4+299=16In the last interval, t30 all three Heaviside function are one and the function has the value.
f(t)=4+2996=10So, the function has the correct value in all the intervals.


All of this is fine, but if we continue the idea of using Heaviside function to represent switches, we really need to acknowledge that most switches will not turn on and take constant values. Most switches will turn on and vary continually with the value of t.
So, let’s consider the following function.


We would like a switch that is off until t=c and then turns on and takes the values above. By this we mean that when t=c we want the switch to turn on and take the value of f(0) and when t = c + 4 we want the switch to turn on and take the value of f(4)etc. In other words, we want the switch to look like the following,




Notice that in order to take the values that we want the switch to take it needs to turn on and take the values of f(tc)! We can use Heaviside functions to help us represent this switch as well. Using Heaviside functions this switch can be written as
(1)g(t)=uc(t)f(tc)
Okay, we’ve talked a lot about Heaviside functions to this point, but we haven’t even touched on Laplace transforms yet. So, let’s start thinking about that. Let’s determine the Laplace transform of (1). This is actually easy enough to derive so let’s do that. Plugging (1) into the definition of the Laplace transform gives,
L{uc(t)f(tc)}=0estuc(t)f(tc)dt=cestf(tc)dt
Notice that we took advantage of the fact that the Heaviside function will be zero if t<c and 1 otherwise. This means that we can drop the Heaviside function and start the integral at c instead of 0. Now use the substitution u = t – c and the integral becomes,
L{uc(t)f(tc)}=0es(u+c)f(u)du=0esuecsf(u)du
The second exponential has no u’s in it and so it can be factored out of the integral. Note as well that in the substitution process the lower limit of integration went back to 0.
L{uc(t)f(tc)}=ecs0esuf(u)du
Now, the integral left is nothing more than the integral that we would need to compute if we were going to find the Laplace transform of f(t).Therefore, we get the following formula
(2)L{uc(t)f(tc)}=ecsF(s)
In order to use (2) the function f(t) must be shifted by c, the same value that is used in the Heaviside function. Also note that we only take the transform of f(t) and not f(t-c)! We can also turn this around to get a useful formula for inverse Laplace transforms.
(3)L1{ecsF(s)}=uc(t)f(tc)
We can use (2) to get the Laplace transform of a Heaviside function by itself. To do this we will consider the function in (2) to be f(t)=1. Doing this gives us
L{uc(t)}=L{uc(t)1}=ecsL{1}=1secs=ecss
Putting all of this together leads to the following two formulas.
(4)L{uc(t)}=ecssL1{ecss}=uc(t)
Let’s do some examples.


Example 2 Find the Laplace transform of each of the following.
  1. g(t)=10u12(t)+2(t6)3u6(t)(7e123t)u4(t)
  2. f(t)=t2u3(t)+cos(t)u5(t)
  3. h(t)={t4if t<5t4+3sin(t1012)if t5
  4. f(t)={tif t<68+(t6)2if t6

In all of these problems remember that the function MUST be in the form
uc(t)f(tc)before we start taking transforms. If it isn’t in that form we will have to put it into that form!

a) g(t)=10u12(t)+2(t6)3u6(t)(7e123t)u4(t) 

So, there are three terms in this function. The first is simply a Heaviside function and so we can use (4) on this term. The second and third terms however have functions with them and we need to identify the functions that are shifted for each of these. In the second term it appears that we are using the following function,
f(t)=2t3f(t6)=2(t6)3and this has been shifted by the correct amount.
The third term uses the following function,
f(t)=7e3tf(t4)=7e3(t4)=7e123twhich has also been shifted by the correct amount.
With these functions identified we can now take the transform of the function.
G(s)=10e12ss+e6s2(3!)s3+1(7s1s+3)e4s=10e12ss+12e6ss3+1(7s1s+3)e4s

b) f(t)=t2u3(t)+cos(t)u5(t) 
This part is going to cause some problems. There are two terms and neither has been shifted by the proper amount. The first term needs to be shifted by 3 and the second needs to be shifted by 5. So, since they haven’t been shifted, we will need to force the issue. We will need to add in the shifts, and then take them back out of course. Here they are.
f(t)=(t3+3)2u3(t)+cos(t5+5)u5(t)Now we still have some potential problems here. The first function is still not really shifted correctly, so we’ll need to use
(a+b)2=a2+2ab+b2to get this shifted correctly.
The second term can be dealt with in one of two ways. The first would be to use the formula
cos(a+b)=cos(a)cos(b)sin(a)sin(b)to break it up into cosines and sines with arguments of t-5 which will be shifted as we expect. There is an easier way to do this one however. From our table of Laplace transforms we have #16 and using that we can see that if
g(t)=cos(t+5)g(t5)=cos(t5+5)This will make our life a little easier so we’ll do it this way.
Now, breaking up the first term and leaving the second term alone gives us,
f(t)=((t3)2+6(t3)+9)u3(t)+cos(t5+5)u5(t)Okay, so it looks like the two functions that have been shifted here are
g(t)=t2+6t+9g(t)=cos(t+5)Taking the transform then gives,
F(s)=(2s3+6s2+9s)e3s+(scos(5)sin(5)s2+1)e5sIt’s messy, especially the second term, but there it is. Also, do not get excited about the cos(5) and sin(5). They are just numbers.

c) h(t)={t4if t<5t4+3sin(t1012)if t5  

This one isn’t as bad as it might look on the surface. The first thing that we need to do is write it in terms of Heaviside functions.
h(t)=t4+3u5(t)sin(t1012)=t4+3u5(t)sin(110(t5))Since the t4 is in both terms there isn’t anything to do when we add in the Heaviside function. The only thing that gets added in is the sine term. Notice as well that the sine has been shifted by the proper amount.
All we need to do now is to take the transform.
H(s)=4!s5+3(110)e5ss2+(110)2=24s5+310e5ss2+1100

d) f(t)={tif t<68+(t6)2if t6  

Again, the first thing that we need to do is write the function in terms of Heaviside functions.
f(t)=t+(8t+(t6)2)u6(t)We had to add in a “-8” in the second term since that appears in the second part and we also had to subtract a t in the second term since the t in the first portion is no longer there. This subtraction of the t adds a problem because the second function is no longer correctly shifted. This is easier to fix than the previous example however.
Here is the corrected function.
f(t)=t+(8(t6+6)+(t6)2)u6(t)=t+(8(t6)6+(t6)2)u6(t)=t+(14(t6)+(t6)2)u6(t)So, in the second term it looks like we are shifting
g(t)=t2t14The transform is then,
F(s)=1s2+(2s31s214s)e6s

Without the Heaviside function taking Laplace transforms is not a terribly difficult process provided we have our trusty table of transforms. However, with the advent of Heaviside functions, taking transforms can become a fairly messy process on occasion.

So, let’s do some inverse Laplace transforms to see how they are done.

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