Sub topic 14
Inscribed Solids: Spheres in Cubes and Cylinders in Boxes
What you need first
This chapter assumes you already know the volume and surface area of a rectangular solid, cube, cylinder, and sphere. You should also know the space diagonal formula √(l² + w² + h²) and the Pythagorean theorem. Inscribed-solid questions are rare on the GRE, but when they appear they combine these pieces. The skill is turning a picture of touching solids into one or two equations.
What "inscribed" means
A solid is inscribed in another when it sits inside and touches the outer solid's boundary at certain points or along certain curves. Then the outer solid is circumscribed about the inner one. The GRE often says "a sphere is inscribed in a cube" or "a cylinder just fits inside a box". Both mean the same thing: some length of the inner solid equals some length of the outer solid.
The method has three steps:
- Find where the solids touch.
- Write the length that links them, such as "sphere diameter equals cube edge".
- Use that link to express both volumes in one variable.
Four standard configurations
| Configuration | Link between the solids | Key relationship |
|---|---|---|
| Sphere inscribed in a cube of edge s | The sphere touches the center of each face | Diameter = s, so r = s/2 |
| Cube inscribed in a sphere of radius R | The cube's 8 vertices lie on the sphere | Space diagonal s√3 = 2R |
| Cylinder inscribed in a cube of edge s | The base circle touches the four side faces, and the cylinder spans top to bottom | Diameter = s, height = s |
| Rectangular box inscribed in a cylinder | The 8 vertices lie on the cylinder's top and bottom circles | Diagonal of the box's base = 2r, box height = cylinder height |
A fifth case also appears: a sphere inscribed in a cylinder. The sphere touches the curved side and both bases, so the cylinder's diameter and height both equal the sphere's diameter, giving h = 2r.
Sphere inscribed in a cube
Suppose a sphere touches all six faces of a cube with edge s. Slice through the center parallel to a face. You see a circle inside a square, touching all four sides. So the diameter equals s, and r = s/2.
The sphere's volume is (4/3)π(s/2)³ = πs³/6. The cube's volume is s³. The ratio of sphere volume to cube volume is therefore π/6, about 0.524, no matter how large the cube is. The sphere fills a little over half of the cube.
import math
s = 6 # cube edge
r = s / 2 # sphere radius = half the edge
sphere_volume = (4 / 3) * math.pi * r**3
cube_volume = s**3
print(sphere_volume / math.pi) # 36.0, so the sphere's volume is 36π
print(cube_volume) # 216
print(sphere_volume / cube_volume) # 0.5235987755982988, which is π/6Cube inscribed in a sphere
Now reverse it. The cube's eight vertices lie on the sphere. The sphere's center is the cube's center, and the longest segment through that center is the cube's space diagonal. That diagonal is a diameter of the sphere.
For a cube of edge s, the space diagonal is √(s² + s² + s²) = s√3. So 2R = s√3, which gives s = 2R/√3.
Take R = 5. Then s = 10/√3 and the cube's volume is s³ = 1000/(3√3), about 192.45. The sphere's volume is (4/3)π(125), about 523.6.
import math
R = 5 # sphere radius
s = 2 * R / math.sqrt(3) # cube edge from s*sqrt(3) = 2R
cube_volume = s**3
sphere_volume = (4 / 3) * math.pi * R**3
print(round(s, 4)) # 5.7735
print(round(cube_volume, 2)) # 192.45
print(round(sphere_volume, 2)) # 523.6Cylinder inscribed in a box
A cylinder fits snugly in a rectangular box when its circular base fits inside the box's rectangular base and its height equals the box's height.
If the box base is square with side a, the circle touches all four sides, so the diameter is a and r = a/2. Looking down at the cylinder, you see a circle inside a square.
If the box base is not square, the circle can only be as wide as the shorter side. A cylinder cannot touch all four sides of a 6 by 8 rectangle. Read the question carefully for which sides are touched.
For the square case with side a and height h, the cylinder's volume is π(a/2)²h = πa²h/4. The box's volume is a²h. The ratio is π/4, about 0.785, independent of height. A cylinder inscribed in a cube (h = a) has this same ratio.
import math
a, h = 6, 10 # box with a 6 by 6 base and height 10
r = a / 2
cylinder_volume = math.pi * r**2 * h # 90π
box_volume = a * a * h # 360
print(cylinder_volume / math.pi) # 90.0
print(cylinder_volume / box_volume) # 0.7853981633974483, which is π/4Box inscribed in a cylinder
Here the box is inside the cylinder, with its eight vertices on the two circular bases. The box's height equals the cylinder's height. Each rectangular face of the box's base has its corners on the circle, so the base's diagonal is a diameter of the circle.
This is a two-dimensional Pythagorean problem, not the three-dimensional one. For a base of l by w, the diameter is 2r = √(l² + w²).
Take a 6 by 8 by 10 box with the 10 as its height. The base diagonal is √(36 + 64) = 10, so r = 5. The cylinder has volume π(25)(10) = 250π, about 785.4. The box has volume 480.
import math
l, w, h = 6, 8, 10 # box; h is also the cylinder's height
base_diagonal = math.sqrt(l**2 + w**2) # equals the cylinder's diameter
r = base_diagonal / 2
cylinder_volume = math.pi * r**2 * h
print(base_diagonal) # 10.0
print(r) # 5.0
print(cylinder_volume / math.pi) # 250.0
print(l * w * h) # 480Sphere inscribed in a cylinder
If a sphere touches the sides and both bases of a cylinder, the cylinder has radius r and height 2r. Then:
- Sphere volume: (4/3)πr³.
- Cylinder volume: πr²(2r) = 2πr³.
- Ratio of sphere to cylinder: (4/3)/2 = 2/3.
The sphere's surface area is 4πr². The cylinder's total surface area is 2πr² + 2πr(2r) = 6πr². The ratio is again 2/3. Both ratios come out to 2/3, which Archimedes proved and which is a handy fact to recognize.
Common errors
- Using radius where the link needs diameter. "Sphere inscribed in a cube of edge 10" gives r = 5, not r = 10.
- Using the wrong diagonal. A cube inside a sphere needs the space diagonal. A box inside a cylinder needs the base diagonal only.
- Assuming a cylinder touches all four sides of a non-square base. It touches only as many sides as the circle's diameter allows.
- Forgetting that ratios can drop out. For a sphere in a cube, the ratio π/6 holds for every edge length. If a Quantitative Comparison asks which of two inscribed fractions is larger, you may not need any dimensions at all.
- Rounding π early. Keep π symbolic until the last step, as with the 36π above.
Working through a GRE-style problem
A cylinder of radius 3 and height 6 is inscribed in a cube, and a sphere is inscribed in the same cube. Which has the greater volume?
The cylinder's diameter is 6, so the cube's edge is 6. The cylinder's height equals the edge, which matches. The sphere in the cube has diameter 6, so r = 3.
- Cylinder volume: π(9)(6) = 54π.
- Sphere volume: (4/3)π(27) = 36π.
The cylinder is larger. The same answer follows from ratios: π/4 of the cube versus π/6 of the cube, and 1/4 > 1/6.
Exercise
A sphere is inscribed in a cube whose surface area is 150. What is the volume of the sphere? Leave the answer in terms of π.
Show answer
The cube's surface area is 6s² = 150, so s² = 25 and s = 5. The sphere's diameter equals the edge, so r = 5/2. The volume is (4/3)π(5/2)³ = (4/3)π(125/8) = 125π/6.
Exercise
A rectangular box with a 5 by 12 base and a height of 20 is inscribed in a right circular cylinder, so that all eight vertices of the box lie on the cylinder's bases. What is the volume of the cylinder in terms of π?
Show answer
The base diagonal is √(25 + 144) = 13, so the cylinder's diameter is 13 and r = 13/2. The cylinder's height is 20. The volume is π(13/2)²(20) = π(169/4)(20) = 845π.
Exercise
A cube with edge 4 is inscribed in a sphere. What is the sphere's radius?
Show answer
The cube's space diagonal is 4√3, and it equals the sphere's diameter. So the radius is half of that: 2√3, about 3.46.