Calculus/Curves and Surfaces in Space

From testwiki
Jump to navigation Jump to search

Template:Calculus/Top Nav For many practical applications you have to work with the mathematical descriptions of lines, planes, curves, and surfaces in 3-dimensional space. This requires some knowledge on vectors and the ability to construct 3-dimensional graphs without using calculators.

Lines in 3-dimensional space

Although the equation for lines is discussed in previous chapters (see Chapter Template:Calculus/map page), this chapter will explain more in detail about the properties and important aspects of lines, as well as the expansion into general curves in 3-dimensional space.

Review of parametric equations

Recall in Chapter Template:Calculus/map page, parametric equations use a different variable to express the relation between two variables. For example, look at the following equation of a circle:

x2+y2=1

If we express variables

x

and

y

with a new variable

t

, and we know that

cos2t+sin2t=1

, we can rewrite the original equation into:

x=cost


y=sint

The equation above is the parametric form of a circle with a radius of 1.

Now, let's talk about lines in 3-dimensional space.


Equations for lines in 3-dimensional space

A line in space is defined by two points in space, which I will call P1 and P2. Let 𝐫0 be the vector from the origin to P1, and 𝐫2 the vector from the origin to P2. Given these two points, every other point P on the line can be reached by

𝐫=𝐫0+𝐯t

where 𝐯 is the vector from P1 and P2:

𝐯=𝐫0𝐫2

Line in 3D Space.

To intuitively understand the equation of a line, imagine that there is a line going through the end point of the vector

𝐫0

and stretches in the direction of the vector

𝐯

. Just view it as a vector version of the point-slope form. For example, assume there is a line in 3-dimensional space with the equation:

𝐫=2,5,4+1,1,1t

We can graph the line by first finding the point

(2,5,4)

. Then, we stretch the line in the direction parallel with the vector

1,1,1

. The final graph is the graph of the line

𝐫=2,5,4+1,1,1t

. Sometimes the direction vector

𝐯

is unknown. However, it can be easily solved by finding another point on the line. In this case, the point

(5,8,7)

is on the line. By calculating the vector between the two points, we can find out that the direction vector is

3,3,3

. Thus, the equation for the line can be written as

𝐫=2,5,4+3,3,3t1

which is equivalent with the original equation

𝐫=2,5,4+1,1,1t

because if we let

t=3t1

, the original equation will turn into the equation above. Therefore, there are infinitely many ways to write an equation of a line in 3-dimensional space using the vector form. Now, there is a parametric form of expressing a line. Recall that there is another way to write down vectors:

a𝐒+b𝐣+c𝐀

. So, we can rewrite the original equation

𝐫=2,5,4+1,1,1t

into:

𝐫=2+t,5+t,4+t=(2+t)𝐒+(5+t)𝐣+(4+t)𝐀

Then, we assign the respective parts to the corresponding

x,y,z

axes

x=2+t

y=5+t

z=4+t

This is the parametric form of the equation for lines.


The final common way to notate lines is the symmetric equations, which is just another slight transformation from the parametric form:

x2=y5=z4

To summarize, there are basically three ways to write the equation for a line that passes through the point

(x0,y0,z0)

with the direction

a,b,c

.

Vector Equation Parametric Equations Symmetric Equations
𝐫=x0,y0,z0+a,b,ct
x=x0+at

y=y0+bt

z=z0+ct

xx0a=yy0b=zz0c

Relations between two lines

There are lines which intersect each other and those which do not. There can be parallel, perpendicular, and skew lines, which will be discussed in this part.

Intersection

Assume there are two lines with the equations:

L1:2,5,4+1,1,1t

or in parametric form

L1:{x=2+ty=5+tz=4+t
L2:5,1,0+12,4,3s

or in parametric form

L2:{x=512sy=1+4sz=3s

To find out if they intersect or not, we just need to solve the system of equations

{2+t=512s5+t=1+4s4+t=3s

If the system of equations has only one solution, then the two lines intersect at one point. If the system of equations has infinitely many solutions, then the two lines are the same. If the system of equations does not have a solution, then the two lines do not intersect at all. In this case, there is a solution:

{t=2s=2

Thus the two lines intersect at point

(4,7,6)

. If we want to further know the angle between the two lines, we can apply the dot product formula. The angle between the two lines should be:

θ=arccos(𝐯𝟏𝐯𝟐𝐯𝟏𝐯𝟐)

Parallel

To spot two parallel lines in 3-dimensional space, we just need to look at the direction vector 𝐯. If the direction vectors of the two lines 𝐯𝟏,𝐯𝟐 have such relationship that 𝐯𝟐=k𝐯𝟏,kℝ, then the two lines are parallel with each other. For example, the two lines L1:2,5,4+1,1,1t and L2:5,1,0+3,3,3s are parallel with each other because 3,3,33=1,1,1.

Perpendicular

To have two lines perpendicular with each other, those two lines must intersect first. If they do intersect, recall the dot product of vectors. The dot product states that:

πšπ›=πšπ›cosθ

If two lines are perpendicular with each other,

θ=π2

, which results in

πšπ›=πšπ›cosπ2=0

.

So, if we continue this flow of thought, we can find that if we choose two vectors on each line, have a dot product between them, and the result is zero, then we can safely say that the two lines are perpendicular with each other. However, there is a more convenient way to simplify the process. Instead of finding two vectors on each line, we just need to apply the dot product on the two direction vectors because the direction vectors are calculated from points on the respective lines.

So if we have two lines:

L1:2,5,4+1,1,1t

and

L2:6,6,5+2,1,1s

They are perpendicular with each other because

{2+t=62s5+t=6+s4+t=5+s

has one and only solution:

{t=2s=1

, which means they intersect. And

1,1,12,1,1=0

Thus ending the proof.

Skew lines

Skew lines are lines that do not intersect and are not parallel with each other. For example, lines L1:2,5,4+1,1,1t and L2:5,1,0+3,3,3s are skew lines.

Distance between two skew lines

To solve this problem, we need to know more about planes in 3-dimensional space, which will be discussed below.

Planes in 3-dimensional space

Introduction

The same idea can be used to describe a plane in 3-dimensional space, which is uniquely defined by three points (which do not lie on a line) in space (P1,P2,P3). Let 𝐱i be the vectors from the origin to Pi. Then

𝐱=𝐱1+λ𝐚+μ𝐛

with:

𝐚=𝐱2𝐱1and𝐛=𝐱3𝐱1

Note that the starting point does not have to be 𝐱1, but can be any point in the plane. Similarly, the only requirement on the vectors 𝐚 and 𝐛 is that they have to be two non-collinear vectors in our plane.

Recall that in 2-dimensional vectors, if there are two vectors

𝐒,𝐣

, any vector on the Cartesian plane can be expressed in terms of the vectors

𝐒,𝐣

by

a𝐒+b𝐣(a,bℝ)

. Using the same method, we can deduce that

the

λ𝐚+μ𝐛

part tells us that the graph should be a plane, and the

𝐱𝐱1

part describes the "slope" and the axes intersections

However, there two other ways to express a plane in 3-dimensional space: the vector equation and the scalar equation.

Vector and scalar equations for planes

The vector equation for planes requires us to understand the power of the dot product. We already knew that when the dot product of two vectors is zero, the two vectors should be perpendicular with each other. Now, imagine a vector 𝐧 in 3-dimensional space. If we graph out all the vectors Δ𝐫 that are perpendicular with 𝐧, what will the result be?

The result should be a plane with a vector perpendicular with the plane. Thus, the vector equation for planes is simply

𝐧Δ𝐫=0

.

the vector

𝐧

is the normal vector, which is perpendicular with the plane

the vector

Δ𝐫=𝐫𝐫𝟎

is the variable vector where

𝐫=x,y,z

(unknown points on the plane) and

𝐫𝟎=x0,y0,z0

(a given point on the plane). This expressions simply means all the vectors on the plane.

Of course, the vector equation for planes can be rewritten as

𝐧(𝐫𝐫𝟎)=0

or

𝐧𝐫=𝐧𝐫𝟎

, depending on the writer.


To find out the scalar equation, we just need to calculate the dot product and do some simplifications. So, let's assume that

𝐧=a,b,c

,

𝐫=x,y,z

, and

𝐫𝟎=x0,y0,z0

According to the vector equation

𝐧(𝐫𝐫𝟎)=0

Thus, we have

a,b,cxx0,yy0,zz0=0

After some algebraic manipulations, we can get

ax+by+cz(ax0+by0+cz0)=0

Since the

ax0+by0+cz0

is a constant, we just let

ax0+by0+cz0=d

. As a result, the scalar equation for planes is

ax+by+cz+d=0

Note that the constants

a,b,c

are the same as the

𝐒,𝐣,𝐀

components of the normal vector. This property will be extremely useful when discussing the relations between two planes. Also,

d=𝐧𝐫𝟎

.

To summarize, there are three ways to notate a plane in 3-dimensional space, with the latter two more commonly used:

Expansion from the equation for lines Vector equation Scalar equation
𝐱=𝐱1+λ𝐚+μ𝐛 𝐧(𝐫𝐫𝟎)=0 ax+by+cz+d=0

Relations between two planes

Parallel

The normal vector is important because it determined the how the plane is shaped. So when we are discussing the relations between two planes, we are actually trying to find out the connections between the normal vectors of the two planes. In this case, assume there are two planes in the 3-dimensional space:

a1x+b1y+c1z+d1=0

and

a2x+b2y+c2z+d2=0

. The normal vectors for the planes should be:

𝐧𝟏=a1,b1,c1,𝐧𝟐=a2,b2,c2

Since normal vectors are perpendicular with their corresponding planes, if the normal vectors are parallel with each other, the respective planes should also be parallel with each other. Thus,

If

𝐧𝟏=k𝐧𝟐(kℝ)

, then

a1x+b1y+c1z+d1=0

and

a2x+b2y+c2z+d2=0

are parallel with each other.

Perpendicular

If the normal vectors are perpendicular with each other, the respective planes will be perpendicular. In other words, if 𝐧𝟏𝐧𝟐, then the planes are perpendicular with each other.

Intersection

To fully understand how to find the intersection between two lines, we should be familiar with the normal vector and its potential. If the two planes are not parallel and are not basically the same plane, then they must intersect with each other. The intersection should form a line. Imagine there are two planes

a1x+b1y+c1z+d1=0

and

a2x+b2y+c2z+d2=0

, and their respective normal vectors

𝐧𝟏k𝐧𝟐(kℝ)

(which means they are not parallel).

Because normal vectors are perfectly perpendicular to all vectors on the plane, the opposite is also true: all vectors on the plane are perpendicular to their respective normal vectors. This is why

𝐧(𝐫𝐫𝟎)=0

is the vector equation of the plane. Since the intersection of the two planes is a line, we can say that the direction vector

𝐯

should be on both planes.

Because

𝐯

is on both planes,

𝐯

should be perpendicular with both normal vectors

𝐯𝐧𝟏,𝐯𝐧𝟐

Recall that the cross product of two vectors will result in a new vector that is perpendicular with both the original vectors. We can calculate the cross product of

𝐧𝟏,𝐧𝟐

to create

𝐯

.

𝐧𝟏×𝐧𝟐=|𝐒𝐣𝐀a1b1c1a2b2c2|=(b1c2b2c1)𝐒(a1c2a2c1)𝐣+(a1b2a2b1)𝐀

So the direction vector for the line is

𝐯=𝐧𝟏×𝐧𝟐=b1c2b2c1,a1c2a2c1,a1b2a2b1

We still need to know a point on the line to finish the equation because

𝐫=𝐫0+𝐯t

. To find a point, simply let

z=0

and solve for

x,y

in the following system of equations

{a1x+b1y+d1=0a2x+b2y+d2=0{x=b1d2b2d1a1b2a2b1y=a1d2a2d1a2b1a1b2

Because the solution is too complicated to write down, we will let

x=b1d2b2d1a1b2a2b1=x0

and

y=a1d2a2d1a2b1a1b2=y0

. Thus, the point

(x0,y0,0)

is on both planes (recall that we let

z=0

) and

𝐏𝟎=x0,y0,0

.

Now, we know a point on the line

(x0,y0,0)

and the direction vector

𝐯=𝐧𝟏×𝐧𝟐=b1c2b2c1,a1c2a2c1,a1b2a2b1

, the intersection between the two planes is:

L:b1d2b2d1a1b2a2b1,a1d2a2d1a2b1a1b2,0+b1c2b2c1,a1c2a2c1,a1b2a2b1t

For those who prefer a cleaner expression:

L:x0,y0,0+b1c2b2c1,a1c2a2c1,a1b2a2b1t
L:𝐏𝟎+(𝐧𝟏×𝐧𝟐)t

And if we want to know the angle between the planes, similar to how we find out the angle between two lines, we apply the dot product:

θ=arccos(𝐧𝟏𝐧𝟐𝐧𝟏𝐧𝟐)

Distance between two parallel planes

The distance between two non-parallel planes is zero because they intersect. So, we should focus on the distance between parallel planes. Before we do that, it will be more convenient if we know the distance from a point to a plane.

Let the distance be

D

, the point be

P=(x1,y1,z1)

, the plane be

ax+by+cz+d=0

.

Knowing the equation for the plane can help us know the normal vector, since the normal vector is perpendicular to the plane, the exact direction we need.

𝐧=a,b,c

.

Now, we start solving. First, assume there is point

P0=(x0,y0,z0)

on the plane

ax+by+cz+d=0

. Then, we create a vector from

P0

to

P

:

P0P=x1x0,y1y0,z1z0

. We will also let the angle between vectors

P0P

and

𝐧

be

θ

. If we graph out what it looks like, we can easily understand how the distance is deduced.

D=|P0P cosθ|

(the absolute value is needed because the distance should always be larger than zero)

However, we do not know

θ

. We can calculate

θ

by applying the dot product. But, there is a simpler way:

Using some very interesting manipulation, we can get

D=|𝐧P0Pcosθ|𝐧

As we can see, the nominator is actually the other way of expressing the dot product of two vectors. So, we can stop worrying about not knowing the value of

θ

.

D=|𝐧  P0P|𝐧

We can now substitute those vectors with their coordinates. After some algebra, we get

D=|𝐧  P0P|𝐧=|ax1+by1+cz1(ax0+by0+cz0)|a2+b2+c2

Since

P0=(x0,y0,z0)

is on the plane,

ax0+by0+cz0=d

. We can further simplify the formula into

D=|ax1+by1+cz1+d|a2+b2+c2

, thus finishing our deduction.

There are other ways to write down the formula. For people who prefer simpler notations, the following formulae are also ways to express the distance:

D=|𝐧  P0P|𝐧

or

D=comp𝐧P0P

After we do some further "investigation" on the distance formula, we can find that only the equation of the plane and one point are needed to calculate the distance between them, which is very convenient because the fewer things we need to solve a problem, the more convenient the problem is. When we try to find the distance between two parallel planes, we just need one point on one plane and the equation for the other plane to solve.

Distance between two skew lines (continue)

Assume that lines L1,L2 are skew lines, we can calculate the distance by assuming that those lines belong in two parallel planes P1,P2 respectively. Then, the problem changes from solving the distance between two skew lines to solving the distance between two parallel planes.

We still need to know the normal vector of both planes. We can simply apply the cross product on the two direction vectors of both lines: 𝐧=𝐯𝟏×𝐯𝟐. 𝐧0 because 𝐯𝟏,𝐯𝟐 are not pointing towards the same direction. Now we can apply the newly deduced distance formula on the two skew lines.

Cylinders and quadric surfaces

This section of the chapter requires some understanding of conic sections (see Chapter Template:Calculus/map page).

Cylinders

An example of a parabolic cylinder in 3-dimensional space

A cylinder is a surface that consists of all lines that are parallel to a given line and pass through a given plane curve. There are several special cylinders such as the parabolic cylinder and the circular cylinder. For example, the image on the right is a parabolic cylinder. Parabolic cylinder typically has an equation of:

z=x2

etc.

If we want to move the cylinder around without rotating it, we can have the equation:

zk=(xh)2

, where

h,k

are constants.

It is just like the parabola we have discussed early in Chapter Template:Calculus/map page but with a new dimension. Circular cylinders, similar to how we derive the parabolic cylinder, looks just like a cylinder with a circle as its "base", with an equation of:

x2+y2=1

etc.

If we want to make the circular cylinder more "elliptic", just like how we derive the equation for an ellipse, the elliptic cylinder has an equation of:

x2a2+y2b2=1

, where

a,b

are constants.

It is just like an ellipse on the

xy

-plane but infinitely stretched in the

z

direction.

Quadric surfaces

Template:Calculus/Def It looks similar to the general equation for conic sections (Ax2+Bxy+Cy2+Dx+Ey+F=0), except it has one more variable z. After some translations and rotations, we can simplify the general equation into the standard equations: Template:Calculus/Def Of course, depending on the specific quadric surface, there are different forms of standard equations, which we will see in the following discussions.

Ellipsoid

An ellipsoid with an equation x2+y22+z23=1. See that if we intersect the ellipsoid with planes parallel to axis planes, the intersection will always be an ellipse.

Ellipsoids have the equation:

x2a2+y2b2+z2c2=1

It is difficult to sketch quadric surfaces because instead of two variables, there are three, making the process very complicated without the help of calculators. However, there is a way to make us easier to understand. We can analyze each plane to see what the shape looks like, and then combine what we analyzed from each plane to form a rather complete graph of the surface. Take this for example:

x2+y29+z24=1

Let us first examine the

xy

-plane. To examine the

xy

-plane, we need to imagine

z

as a constant. In this case, imagine that

z=k

, so

x2+y29=1k24

, where

2k2

.

We can see that in the

xy

-plane, the graph will be like an ellipse. We call that the horizontal trace in the plane

z=k

is an ellipse.

Let us furthermore analyze the vertical traces in the planes x=k,y=k.

An elliptic paraboloid with equation z=x2+y2. Note that the horizontal trace is an ellipse and both vertical traces are parabolas.
y29+z24=1k2x=k

, where

1k1

.


x2+z24=1k29y=k

, where

3k3

.

We can see that on both vertical traces in the planes

x=k,y=k

are ellipses. In other words, the graphs in both

xz

-plane and

yz

-plane look like ellipses. Since all traces are ellipses, the surface is an ellipsoid with vertices

(±1,0,0),(0,±3,0),(0,0,±2)

.

Elliptic paraboloid

Elliptic paraboloids have the equation:

zc=x2a2+y2b2
A hyperbolic paraboloid with equation z=x2y2

There are variations of the equation depending on which trace is an ellipse. For the equation above, the horizontal trace is an ellipse as seen in the image on the right.

Take

z=x2+y2

for example. the horizontal trace, which means

z=k

, is:

x2+y2=k

, where

k>0

.

For both vertical traces, we can see that those traces have the shape of a parabola.

z=x2+k2y=k


z=y2+k2x=k

The vertex for this elliptic paraboloid is

(0,0,0)

.

Hyperbolic paraboloid

Hyperbolic paraboloids have the equation:

zc=x2a2y2b2
An image of a cone. Note that vertical traces in the planes x=k and y=k are hyperbolas if k0 but are pairs of lines if k=0.

The respective traces are

x2a2y2b2=kcz=k

, where

x2a2y2b2=kc when k>0andy2b2x2a2=kc when k<0

. The horizontal trace is a hyperbola.


zc=x2a2k2b2y=k. The vertical trace is a parabola.


zc=k2a2y2b2x=k

. The vertical trace is a parabola.

Cone, hyperboloid of one sheet, and hyperboloid of two sheets

An image of a hyperboloid of one sheet.
An image of a hyperboloid of two sheets. Note that horizontal traces in z=k are ellipses if k>c or k<c.

Cones have the equation:

z2c2=x2a2+y2b2

Note that

x2a2+y2b2=0

when

z=0

.


Hyperboloids of one sheet have the equation:

x2a2+y2b2z2c2=1

Note that

x2a2+y2b2=1

when

z=0

.


Hyperboloids of two sheets have the equation:

x2a2y2b2+z2c2=1

Note that when

czc

, there is no real solution for

x,y

.


All of the three quadric surfaces have the same respective traces. The horizontal traces are all ellipses and the vertical traces are all hyperbolas.

Template:BookCat