Cylinders and traces
Imagine slicing a loaf of bread with a sharp knife. Each slice reveals a flat two dimensional shape, which we call a cross section. When we study a surface in three dimensional space, we can do the exact same thing by intersecting the surface with planes that run parallel to the coordinate axes. These intersections are called traces.
The trace of a surface in three dimensional space is the curve formed by the intersection of that surface with a plane, typically a coordinate plane like \(z = 0\), or a plane parallel to it like \(z = k\).
If a surface equation contains only two of the three variables, say \(x\) and \(y\), the missing variable can take any real value. This means the two dimensional curve in the \(xy\) plane is stretched straight along the missing \(z\) axis, creating a tube like shape called a cylinder.
A cylinder is a surface consisting of all lines parallel to a given line, called the axis, that pass through a given plane curve. In multivariable calculus, we frequently encounter cylinders whose generating curves live in the \(xy\), \(yz\), or \(xz\) planes.
For example, the equation \(x^2 + y^2 = 4\) in the \(xy\) plane is a circle of radius \(2\) centred at the origin. In three dimensional space, because \(z\) is completely missing and unrestricted, the equation describes a vertical circular cylinder where every horizontal trace at height \(z = k\) is an identical circle of radius \(2\).
Quadric surfaces
In single variable calculus, equations of degree two like \(y = x^2\) produce parabolas, and \(x^2 + y^2 = r^2\) produces circles. In multivariable calculus, the natural generalisation is an equation of degree two in three variables, which produces a family of curved shapes known as quadric surfaces.
A quadric surface is the graph of a second degree equation in the variables \(x\), \(y\), and \(z\), generally written in the form \(Ax^2 + By^2 + Cz^2 + Dxy + Eyz + Fxz + Gx + Hy + Iz + J = 0\). By rotating and translating our coordinate axes, we can always reduce this general expression to one of several standard forms.
The standard models are built out of ellipses and hyperbolas. An ellipsoid looks like a deformed sphere, stretching differently along each axis, given by the equation \(\frac{x^2}{a^2} + \frac{y^2}{b^2} + \frac{z^2}{c^2} = 1\). If we take traces of an ellipsoid, every single cross section is an ellipse.
Paraboloids come in two varieties. An elliptic paraboloid looks like a bowl or a satellite dish, described by \(z = \frac{x^2}{a^2} + \frac{y^2}{b^2}\). Its horizontal traces are ellipses, while its vertical traces are parabolas. A hyperbolic paraboloid looks like a saddle, given by \(z = \frac{y^2}{b^2} - \frac{x^2}{a^2}\). Along one vertical direction it curves upward, and along the perpendicular vertical direction it curves downward.
Hyperboloids come with either one sheet or two sheets. A hyperboloid of one sheet, given by \(\frac{x^2}{a^2} + \frac{y^2}{b^2} - \frac{z^2}{c^2} = 1\), curves inward like a hourglass. A hyperboloid of two sheets, given by \(\frac{z^2}{c^2} - \frac{x^2}{a^2} - \frac{y^2}{b^2} = 1\), consists of two separate bowl like pieces facing away from each other.
Finally, a cone is represented by the equation \(\frac{x^2}{a^2} + \frac{y^2}{b^2} = \frac{z^2}{c^2}\). Its horizontal traces are ellipses that grow larger as you move away from the origin.
Completing the square
Often, a surface equation is not given in its neat standard form. Linear terms in \(x\), \(y\), or \(z\) can shift the center of the surface away from the origin. To reveal the true geometry, we use the algebraic technique of completing the square for each variable independently.
When completing the square for an expression like \(x^2 + Bx\), we add and subtract \(\left(\frac{B}{2}\right)^2\) to create a perfect square trinomial of the form \((x + \frac{B}{2})^2 - \left(\frac{B}{2}\right)^2\). Do this for all relevant variables, then move any constant numbers to the opposite side of the equation.
Example 2.1: Identify surface
Identify the surface \(x^2 + y^2 + z^2 - 2x + 4y = 4\).
Solution.
Group the terms by variable: \((x^2 - 2x) + (y^2 + 4y) + z^2 = 4\).
Complete the square for \(x\): add \(1\) inside the first group and to the right side.
Complete the square for \(y\): add \(4\) inside the second group and to the right side.
Rewrite the grouped expressions: \((x - 1)^2 + (y + 2)^2 + z^2 = 4 + 1 + 4\).
Simplify the right side: \((x - 1)^2 + (y + 2)^2 + z^2 = 9\).
Recognise this as the standard equation of a sphere, \((x - x_0)^2 + (y - y_0)^2 + (z - z_0)^2 = R^2\).
a sphere with centre \((1, -2, 0)\) and radius \(3\)
Cylindrical coordinates
Cartesian coordinates describe a point by how far it moves along three mutually perpendicular straight lines. However, many physical problems possess rotational symmetry around an axis. For these situations, cylindrical coordinates are much more natural.
Cylindrical coordinates \((r, \theta, z)\) specify a point in three dimensional space using polar coordinates in the \(xy\) plane combined with the standard Cartesian height \(z\). The radial distance from the \(z\) axis is \(r \ge 0\), the angle from the positive \(x\) axis in the \(xy\) plane is \(0 \le \theta < 2\pi\), and the vertical height is \(z\).
The conversion formulas between Cartesian coordinates \((x, y, z)\) and cylindrical coordinates \((r, \theta, z)\) come directly from right angle trigonometry in the \(xy\) plane:
- \(x = r \cos \theta\)
- \(y = r \sin \theta\)
- \(z = z\)
- \(r^2 = x^2 + y^2\)
- \(\tan \theta = \frac{y}{x}\)
Example 2.2: Cone cylindrical
Write the cone \(z = \sqrt{x^2 + y^2}\) in cylindrical and in spherical coordinates.
Solution.
Start with the Cartesian equation of the cone: \(z = \sqrt{x^2 + y^2}\).
Recall the cylindrical conversion identity for the radial distance: \(r = \sqrt{x^2 + y^2}\).
Substitute \(r\) directly into the equation to find the cylindrical form.
\(z = r\) and \(\phi = \pi/4\)
Spherical coordinates
When a problem possesses complete symmetry about a single point, such as a point charge generating an electric field or a planet emitting gravity, cylindrical coordinates are not enough. We need spherical coordinates, which measure distance straight from the origin and angles sweeping down from a vertical axis.
Spherical coordinates \((\rho, \theta, \phi)\) locate a point by its direct distance from the origin and two angles. The radial distance is \(\rho \ge 0\). The azimuth angle \(\theta\) is the same angle used in cylindrical coordinates, measured in the \(xy\) plane from the positive \(x\) axis, where \(0 \le \theta < 2\pi\). The polar angle \(\phi\) is measured downward from the positive \(z\) axis, restricted to the interval \(0 \le \phi \le \pi\).
To convert from spherical coordinates to Cartesian coordinates, we project the point down to the \(xy\) plane. The distance from the origin to the point in space is \(\rho\), and the angle from the \(z\) axis is \(\phi\). This forms a right triangle where the vertical height is \(z = \rho \cos \phi\) and the distance in the \(xy\) plane is \(r = \rho \sin \phi\). Since \(x = r \cos \theta\) and \(y = r \sin \theta\), we substitute \(r\) to get the full transformation:
- \(x = \rho \sin \phi \cos \theta\)
- \(y = \rho \sin \phi \sin \theta\)
- \(z = \rho \cos \phi\)
- \(\rho^2 = x^2 + y^2 + z^2\)
Pay careful attention to the definitions of the angles. In mathematics, \(\theta\) is the angle in the horizontal plane and \(\phi\) is the angle measured from the vertical \(z\) axis. In physics literature, these two angle names are frequently swapped, which can easily lead to sign errors.
Example 2.3: Point spherical
Convert the point \((1, 1, \sqrt{2})\) to spherical coordinates \((\rho, \theta, \phi)\).
Solution.
Compute the radial distance \(\rho\): \(\rho = \sqrt{1^2 + 1^2 + (\sqrt{2})^2} = \sqrt{1 + 1 + 2} = \sqrt{4} = 2\).
Find the polar angle \(\phi\) using \(z = \rho \cos \phi\): \(\sqrt{2} = 2 \cos \phi\), so \(\cos \phi = \frac{\sqrt{2}}{2}\), which means \(\phi = \frac{\pi}{4}\).
Find the azimuth angle \(\theta\) using \(x\) and \(y\): \(\tan \theta = \frac{1}{1} = 1\), and since \(x = 1\) and \(y = 1\) are both positive, \(\theta = \frac{\pi}{4}\).
Combine these values into the spherical coordinate triple.
\((2, \pi/4, \pi/4)\)
Example 2.4: Cone spherical
Write the cone \(z = \sqrt{x^2 + y^2}\) in cylindrical and in spherical coordinates.
Solution.
We already found the cylindrical form is \(z = r\). Now convert to spherical coordinates.
Substitute the spherical formulas into the cone equation: \(\rho \cos \phi = \sqrt{(\rho \sin \phi \cos \theta)^2 + (\rho \sin \phi \sin \theta)^2}\).
Factor out the common terms under the square root: \(\rho \cos \phi = \sqrt{\rho^2 \sin^2 \phi (\cos^2 \theta + \sin^2 \theta)}\).
Use the Pythagorean trigonometric identity \(\cos^2 \theta + \sin^2 \theta = 1\): \(\rho \cos \phi = \sqrt{\rho^2 \sin^2 \phi}\).
Simplify the square root, noting that \(\rho \ge 0\) and \(\sin \phi \ge 0\) for \(0 \le \phi \le \pi\): \(\rho \cos \phi = \rho \sin \phi\).
Divide both sides by \(\rho\) (assuming \(\rho > 0\)): \(\cos \phi = \sin \phi\).
Divide both sides by \(\cos \phi\): \(\tan \phi = 1\).
Since \(0 \le \phi \le \pi\), the angle whose tangent is \(1\) is \(\phi = \frac{\pi}{4}\).
\(z = r\) and \(\phi = \pi/4\)
Practice
Practice 1: try it first
Identify the surface \(z = x^2 - y^2\).
Show the answer
a hyperbolic paraboloid (saddle)
Practice 2: try it first
Convert \((r, \theta, z) = (2, \pi/3, 1)\) to rectangular coordinates.
Show the answer
\((1, \sqrt{3}, 1)\)
Practice 3: try it first
Describe \(\rho = 4\cos\phi\) in rectangular coordinates.
Show the answer
\(x^2 + y^2 + (z-2)^2 = 4\), a sphere of radius \(2\)
Want a hint instead of an answer? Practise this chapter with the tutor.