Multivariable CalculusVectors and the Geometry of Space1 of 5
Vectors and the Geometry of Space · 1
Three-Dimensional Coordinates
To describe points and shapes in space, we add a third axis for height to our flat xy-graph.
1
Plotting Points in 3D
Suppose we want to plot the point (2,3,4) in three dimensions. On a flat page, a floating dot by itself could be far back and low down or close and high up, so we lay the xy-graph on the floor and trace the path along the floor before going up.
Plotting Points in 3D
Text solution:
Walk along x and y to find the spot on the floor. Starting at the corner of the room (0,0,0), go 2 steps forward along the x-axis and 3 steps right parallel to the y-axis while keeping the height at 0.
(0,0,0)⟶(2,3,0)
Move straight up by z from that floor spot. From (2,3,0), rise 4 units straight up to reach the point in the air.
(2,3,0)⟶(2,3,4)
Drawing the floor point (2,3,0) first locks in how far forward and right the point sits, so its height of 4 is clear.
2
Planes, Lines and Octants
Once we can locate a single point by fixing all three coordinates, we want to see what shape an equation builds when it only fixes one or two coordinates and leaves the others out.
Planes, Lines and Octants
An equation in 3D only restricts the coordinates it mentions:
One fixed coordinate gives a plane. Setting z=3 locks the height at 3 while leaving x and y free to take any value, forming a flat horizontal plane. In the same way, locking one coordinate at 0 gives the floor and walls of the room:
Two fixed coordinates give a line. Requiring both x=2 and y=3 keeps you at the floor spot (2,3,0) and leaves only z free to move up and down, forming a vertical line.
Three coordinate planes divide space into eight octants. Extending the floor and both walls in all directions splits 3D space into four rooms above the floor and four below it; the main room where all three coordinates are positive is the first octant:
first octantx>0,y>0,z>0
Fixing x gives a plane parallel to the back wall, fixing y gives a plane parallel to the left wall, and fixing both gives the vertical line where those two planes meet.
Fixing one coordinate gives a flat plane parallel to a wall, and fixing both floor coordinates keeps the point on the vertical line where those two planes meet.
3
Distance and Midpoint in 3D
Now suppose we have two points in the room, A(1,−2,4) and B(3,2,1), and we want to find the straight-line distance between them through the air as well as the midpoint halfway between them. Instead of memorizing a new rule, we can find the diagonal distance across the floor first and use it as the base of a vertical right triangle.
Distance and Midpoint in 3D
Wherever a point sits in the room, its vertical height segment meets the floor diagonal at a 90∘ angle, so the 3D distance squared is always the floor diagonal squared plus the height squared.
No matter where a point sits in the room, its height meets the floor diagonal at a right angle, so the 3D distance squared is always the floor diagonal squared plus the height squared.
Applying the Pythagorean theorem across the floor and then straight up gives the 3D distance formula:
d=(x2−x1)2+(y2−y1)2+(z2−z1)2
In practice, plugging negative coordinates into x2−x1 makes it easy to make sign mistakes. Because every change gets squared anyway, it is much safer to just count how many steps each coordinate travels from one point to the other.
Text solution:
Count the steps in each coordinate. Walk from A(1,−2,4) to B(3,2,1) and record how far x,y, and z each change.
change in x=2,change in y=4,change in z=3
Square the steps, add them up, and take the square root. Combine the three coordinate steps in the 3D Pythagorean theorem.
d=22+42+32=4+16+9=29
Average each pair of coordinates for the midpoint. The halfway point between A and B sits at the average of their x-, y-, and z-values.
midpoint=(21+3,2−2+2,24+1)=(2,0,2.5)
So A and B are 29 units apart through the air, and (2,0,2.5) is the exact halfway point between them.
4
The Equation of a Sphere
A sphere is made of all the points (x,y,z) at a fixed distance from a center. To write the equation of the sphere with center (1,2,3) and radius 5, we set the 3D distance from (1,2,3) to (x,y,z) equal to 5.
The Equation of a Sphere
Text solution:
Set the 3D distance from the center equal to the radius. Write the distance from (1,2,3) to (x,y,z) and set it equal to 5.
(x−1)2+(y−2)2+(z−3)2=5
Square both sides to remove the square root. Squaring removes the square root and puts the sphere equation in its standard form.
zero at x=1(x−1)2+zero at y=2(y−2)2+zero at z=3(z−3)2=radius225
So a sphere equation is just the 3D distance formula with both sides squared: the values that make each squared term zero give the center (1,2,3), and the square root of the right side gives the radius 25=5. Watch the signs inside the parentheses: if a term is (y+4)2, the value that makes it zero is y=−4.
5
Completing the Square and Slicing a Sphere
When someone multiplies out a sphere's parentheses and collects the numbers on the right, we get an expanded equation like
x2+y2+z2−6x+4y−2z=11
where you can't immediately see the center and radius. We want to put this equation back into squared form to find the center and radius, and then find the curve formed where a flat plane slices through the sphere.
Since multiplying out (x−3)2 doubles −3 to make −6x and squares −3 to add 9 at the end, we reverse it by taking half of the middle number and adding its square to both sides:
half of −6 is −3(x−3)2=x2−6x+(−3)29
Completing the Square and Slicing a Sphere
x2+y2+z2−6x+4y−2z=11
center=?,radius=?
Text solution:
Group by coordinate, take half of each middle number, and add its square to both sides. For x2−6x,y2+4y, and z2−2z, take half of −6,4, and −2 to get −3,2, and −1, and add their squares (9,4, and 1) to both sides.
(x2−6x+9)+(y2+4y+4)+(z2−2z+1)=11+9+4+1
Rewrite each group as a squared term. Factor each three-term group and add the numbers on the right side to find the center and radius.
(x−3)2+(y+2)2+(z−1)2=25
This is a sphere centered at (3,−2,1) with radius 25=5.
Substitute z=0 to slice the sphere with the floor. Points on both the sphere and the floor have z=0, so plug z=0 into the sphere equation and subtract 1 from both sides.
Two squared numbers can never add up to −56, which tells us the plane z=10 misses the sphere completely. Centered at height 1 with radius 5, the sphere only reaches up to z=6.
As a horizontal plane cuts the sphere at different heights, the circular slice is widest at the center (z=1), shrinks to a point at the top (z=6) and bottom (z=−4), and disappears when the plane moves past the sphere and makes the right side negative.
At each height, the number on the right side of the slice's equation sets the circle's radius, and turns negative once the plane moves past the sphere.
6
Inequalities and Solid Regions in 3D
Equations with an equals sign only give thin surfaces like a flat plane or a hollow sphere. To describe a solid 3D region, like a solid ball, a rectangular box, or a hollowed-out shell, we replace = with inequalities (<,>,≤,≥), where each inequality cuts away part of space.
Inequalities and Solid Regions in 3D
0≤x≤2,0≤y≤3,0≤z≤4
1≤x2+y2+z2≤4,z≥0
Putting bounds on x,y, and z builds flat-sided blocks, while putting bounds on the distance squared from a center builds curved solids:
Planes and slabs:z≥3 keeps everything at or above height 3, while 1≤z≤3 keeps points in the horizontal slab between z=1 and z=3. Bounding all three coordinates with 0≤x≤2,0≤y≤3, and 0≤z≤4 forms a solid rectangular box.
Balls and shells:(x−1)2+(y−2)2+(z−3)2≤25 fills in the inside of the sphere to make a solid ball of radius 5, while <25 is the same solid ball without its outer surface.
Now let's write out the steps for two curved-region problems: first describing 1≤x2+y2+z2≤4 with z≥0, and then turning a description in the first octant into inequalities.
Text solution (describing 1≤x2+y2+z2≤4 and z≥0):
Read the upper bound on the distance squared from the origin. Because x2+y2+z2 is the distance squared from (0,0,0), the right half of the inequality keeps all points inside or on a sphere of radius 2.
x2+y2+z2≤22=4(solid ball of radius 2)
Use the lower bound to hollow out the middle. Requiring the distance squared to be at least 1 removes the points closer than distance 1 from the origin.
12≤x2+y2+z2≤22(thick spherical shell between radii 1 and 2)
Apply the height condition z≥0. Keeping only heights at or above the floor slices off the bottom half, leaving the upper half of the thick spherical shell sitting on the floor z=0.
Text solution (writing inequalities for the region in the first octant below z=6 and outside the sphere of radius 2 at the origin):
Write the first-octant conditions. Staying in the main room (including its walls and floor) requires all three coordinates to be zero or positive.
x≥0,y≥0,z≥0
Combine the ceiling z=6 with the floor condition. Lying below the plane z=6 without touching it means z<6, which combines with z≥0 into a single height inequality.
0≤z<6
Require the distance from the origin to be greater than the sphere's radius. To lie outside the sphere x2+y2+z2=22 without touching it, the distance squared from (0,0,0) must be greater than 4.
x2+y2+z2>4
Together, x≥0,y≥0,0≤z<6, and x2+y2+z2>4 describe the solid region in the first octant below height 6 with a ball of radius 2 removed from the corner.
Raising the inner bound in inner2≤x2+y2+z2≤4 (with z≥0) from 0 to 4 hollows out the solid half-ball from the inside, turning it into a thick shell and then a thin surface when both bounds meet at 4.
Raising the lower bound hollows out a solid ball from the center, turning it into a thick shell and then a thin hollow sphere as the inner boundary reaches the outer surface.
Summary
Everything here comes down to two questions: which coordinates are locked in place, and how far is a point from a center?
When an equation sets coordinates to fixed numbers, count which coordinates are missing to see what can still move freely. Fixing all three coordinates gives a single point like (2,3,4), which you always plot by walking out to its floor spot (2,3,0) first. Leaving one coordinate out gives a line along that free direction (so x=2,y=3 is a vertical line because z is free), and leaving two coordinates out gives a flat plane parallel to the two free axes (so z=0 is the floor, y=0 is the left wall, and x=0 is the back wall, which together divide space into eight octants, with x>0,y>0,z>0 in the first octant).
When working with two points like A(1,−2,4) and B(3,2,1), separate how far apart they are from where their halfway point sits: for distance, just count the coordinate steps (2,4, and 3) and combine them in the 3D Pythagorean theorem d=22+42+32=29 rather than plugging negatives into (x2−x1)2, whereas for the midpoint you average the coordinates themselves to get (21+3,2−2+2,24+1)=(2,0,2.5).
Keeping the distance from a center (1,2,3) fixed at 5 and squaring both sides gives the sphere equation (x−1)2+(y−2)2+(z−3)2=25. When the equation is already factored into squared parentheses, don't multiply it out: read the center (1,2,3) straight from the values that make each square zero and take 25=5 for the radius. Only complete the square when unfactored terms like x2−6x appear, taking half of the −6 and adding (−3)2=9 to both sides. To slice a sphere with a plane like z=0, plug z=0 directly into the sphere equation: a positive number on the right gives a circle of radius number, zero gives a single point, and a negative number means the plane misses the sphere. Finally, replacing = with inequalities turns thin surfaces into solid regions: putting x,y, and z between numbers cuts out slabs and boxes, while replacing =r2 with ≤r2 or >r2 keeps the points inside or outside the sphere.
7
Practice
1
Write the equation of the plane passing through (4,−3,5) that is parallel to the xz-plane, and write the pair of equations that describes the vertical line passing through (4,−3,5).
Along a plane parallel to the xz-plane, x and z can take any value. Which single coordinate stays locked? Along a vertical line, which single coordinate is free to change?
Lock the coordinate missing from the xz-planeThe xz-plane is the left wall y=0, so a plane parallel to it keeps y fixed at the point's y-coordinate while x and z can take any value. (A common mistake is seeing the letters x and z in "xz-plane" and writing x=4,z=5, which fixes two coordinates and gives a horizontal line instead of a plane.)
y=−3
Lock both floor coordinates for the vertical lineA vertical line goes straight up and down from the floor spot (4,−3,0), so z must stay free while both x and y are fixed. (Don't write z=5 thinking "vertical means z". Locking z=5 fixes the height and creates a horizontal plane instead of a vertical line.)
Plane: y=−3Vertical line: x=4,y=−3
2
Find the straight-line distance and the midpoint between the points A(−2,5,1) and B(4,1,−2).
Watch out for dropping negative signs and taking 4−2=2 steps for x and 2−1=1 step for z, which leads to the wrong distance 22+42+12=21; crossing zero from −2 to 4 is 6 steps, and from 1 to −2 is 3 steps.
How many steps does each coordinate travel from A to B (crossing zero where needed)? Then what is the average of each pair of coordinates?
Count the coordinate steps from A(−2,5,1) to B(4,1,−2)Walk from −2 to 4 on x, from 5 to 1 on y, and from 1 to −2 on z. (Watch out for dropping negative signs and taking 4−2=2 steps for x and 2−1=1 step for z, which leads to the wrong distance 22+42+12=21; crossing zero from −2 to 4 is 6 steps, and from 1 to −2 is 3 steps.)
change in x=6,change in y=4,change in z=3
Square the steps and add them under the square root
d=62+42+32=36+16+9=61
Average the coordinates for the midpointAdd each pair of coordinates and divide by 2 (subtracting the coordinates instead of adding them is a common mistake that gives (−3,2,1.5)).
midpoint=(2−2+4,25+1,21+(−2))=(1,3,−0.5)
Distance: 61,Midpoint: (1,3,−0.5)
3
Write the equation of the sphere centered at (−2,4,3) that just touches the floor (the xy-plane).
How far is the center (−2,4,3) straight down to the floor z=0? That vertical distance is the sphere's radius.
Find the radius from the center's height above the floorThe center (−2,4,3) sits 3 units above the floor z=0, so a sphere that just touches the floor has radius 3. (Don't find the distance from (−2,4,3) to the origin (−2)2+42+32=29 and put 29 on the right side. The sphere touches the floor z=0, not the corner (0,0,0).)
radius=3,radius2=9
Write the squared distance from (−2,4,3) equal to radius2Set each parenthesis so it becomes zero at (−2,4,3) and put 32=9 on the right side (forgetting to flip the signs and to square the radius gives the wrong equation (x−2)2+(y+4)2+(z+3)2=3).
(x+2)2+(y−4)2+(z−3)2=9
4
Find the center and radius of the sphere x2+y2+z2+8x−2y−6z=−10.
Find the values that make each parenthesis zero and take the square root of the right side (don't copy the signs inside the parentheses to get (4,−1,−3) or forget the square root and write the radius as 16).
Group the x,y, and z terms: what number completes each square on the left, and what do you get when you add those same three numbers to −10 on the right?
Group by coordinate, take half of each middle number, and add its square to both sidesHalf of 8,−2, and −6 are 4,−1, and −3, so add their squares 16,1, and 9 to both sides. (The most common mistake is completing the squares on the left while forgetting to add 16+1+9=26 to the right side, leaving −10 on the right.)
(x2+8x+16)+(y2−2y+1)+(z2−6z+9)=−10+16+1+9
Factor each square and find the center and radiusFind the values that make each parenthesis zero and take the square root of the right side (don't copy the signs inside the parentheses to get (4,−1,−3) or forget the square root and write the radius as 16).
(x+4)2+(y−1)2+(z−3)2=16
Center: (−4,1,3),Radius: 4
5
The sphere (x−2)2+(y+1)2+(z−4)2=9 is sliced by the plane y=1 and by the floor z=0. Describe the intersection with each plane, giving the center and radius if it is a circle.
Be careful not to just drop the y term when slicing and leave =9 with radius 3, or to keep the sphere's y=−1 in the circle's center instead of the plane's y=1.
Plug y=1 into the sphere equation and move the resulting number to the right side; then start over and plug z=0 into the sphere equation.
Substitute y=1 to find the slice on the plane y=1Plug y=1 into the sphere equation and subtract (1+1)2=4 from both sides. (Be careful not to just drop the y term when slicing and leave =9 with radius 3, or to keep the sphere's y=−1 in the circle's center instead of the plane's y=1.)
Substitute z=0 to test the floor slicePlug z=0 into the sphere equation and subtract (0−4)2=16 from both sides. (A common mistake is seeing z=0 and crossing out (z−4)2 completely to get (x−2)2+(y+1)2=9 with radius 3, instead of calculating (0−4)2=16.)
The plane y=1 slices the sphere in a circle with equation (x−2)2+(z−4)2=5,y=1, centered at (2,1,4) with radius 5. The floor z=0 misses the sphere completely because plugging in z=0 gives (x−2)2+(y+1)2=−7, which has no real solutions.
6
Describe in words the 3D region defined by (x−1)2+(y−2)2+(z−3)2<9 and z≤3.
Where does the horizontal plane z=3 pass through a sphere centered at (1,2,3), and which boundary uses < versus ≤?
Locate the ball and its centerThe inequality (x−1)2+(y−2)2+(z−3)2<9 describes the inside of the ball of radius 9=3 centered at (1,2,3), without its curved outer surface because the inequality is <9 rather than ≤9.
Cut the ball with the height condition z≤3Because the sphere's center (1,2,3) itself sits at height z=3, the plane z=3 slices straight through the middle of the sphere, and z≤3 keeps the bottom half along with the flat circular top face at z=3. (Don't treat the sphere as if it were centered at the origin where z=3 would only touch the top, and don't swap < and ≤ to include the curved surface while leaving out the flat top.) The lower half of the solid ball of radius 3 centered at (1,2,3), including its flat circular top face at height z=3 but without its curved outer surface.
7
Write inequalities to describe the solid region in the first octant that lies between the planes z=1 and z=3, outside the sphere of radius 2 centered at the origin, and inside or on the sphere of radius 5 centered at the origin (including the coordinate planes and the planes z=1 and z=3).
Watch out for forgetting to square the radii and writing 2<x2+y2+z2≤5, or using ≤ on the inner sphere when "outside" leaves out the surface at radius 2.
Write the conditions for x and y to be zero or positive, the height range for z, and a single combined inequality putting the distance squared x2+y2+z2 between the two radii squared.
Keep x,y, and z in the first octant between heights 1 and 3Being in the first octant with the coordinate planes included means x≥0 and y≥0, while staying between the planes z=1 and z=3 narrows the height condition from z≥0 to 1≤z≤3.
x≥0,y≥0,1≤z≤3
Bound the distance squared between the two spheresLying outside the sphere of radius 2 without touching it means x2+y2+z2>22=4, and lying inside or on the sphere of radius 5 means x2+y2+z2≤52=25. (Watch out for forgetting to square the radii and writing 2<x2+y2+z2≤5, or using ≤ on the inner sphere when "outside" leaves out the surface at radius 2.)