What is a bent pyramid?
A bent pyramid is a square pyramid whose faces change slope once, part of the way up. Geometrically it is a right square frustum with bottom edge a, top edge b (shorter than a) and height h₁, with a right square pyramid of base edge b and height h₂ standing on its top face. The lower faces are trapezoids, the upper faces triangles, and the total height is h₁ + h₂. The name comes from the pyramid of Sneferu at Dahshur in Egypt, whose faces rise steeply and then continue at a shallower angle. When both parts have the same face angle the solid is an ordinary square pyramid.
This calculator finds the volume, surface areas, heights, slant heights, edges and face angles either from the two edges and both heights, or from the base edge, the bend height and the two face angles.
How to use it
Choose what you know in What do you know? and enter the values. The length unit is a label only. Angles are entered and shown in degrees or radians. The page shows results rounded to at most 6 decimal places, and writes very large and very small values out in full.
Formulas
With \(d = (a - b)/2\) the horizontal step of a lower face:
$$s_1 = \sqrt{h_1^2 + d^2}, \qquad s_2 = \sqrt{h_2^2 + (b/2)^2}$$$$L = 2(a + b)\,s_1 + 2b\,s_2, \qquad S = a^2 + L, \qquad V = \frac{h_1}{3}\left(a^2 + ab + b^2\right) + \frac{b^2 h_2}{3}$$The lower face angle is \(\alpha_1 = \arctan(h_1/d)\), the upper face angle \(\alpha_2 = \arctan\big(h_2/(b/2)\big)\); the lateral edges are \(\sqrt{h_1^2 + 2d^2}\) below and \(\sqrt{h_2^2 + b^2/2}\) above. From the angles: \(b = a - 2h_1/\tan\alpha_1\) and \(h_2 = (b/2)\tan\alpha_2\).
Derivation
The solid is cut by the plane of the bend into a square frustum and a square pyramid. The frustum is a square pyramid of base a minus the similar pyramid of base b above it, which gives \(\tfrac{h_1}{3}(a^2 + ab + b^2)\); the top is a pyramid of base \(b^2\) and height h₂, one third of its prism. Adding them:
$$V = \frac{h_1}{3}\left(a^2 + ab + b^2\right) + \frac{b^2 h_2}{3}$$The bend square is inside the solid, so the surface is the base, the four trapezoids of height s₁ and the four triangles of height s₂.
Worked example
The default has a = 10, b = 6, h₁ = 4 and h₂ = 2.5. The volume is \(\tfrac{4}{3}(100 + 60 + 36) + \tfrac{36 \cdot 2.5}{3} = 261.333333 + 30 = 291.333333\). The slant heights are \(s_1 = \sqrt{16 + 4} \approx 4.472136\) and \(s_2 = \sqrt{6.25 + 9} \approx 3.905125\), so the lateral area is \(2 \cdot 16 \cdot 4.472136 + 12 \cdot 3.905125 \approx 189.969849\) and the total surface area about 289.969849. The faces rise at about 63.43° below the bend and 39.81° above it.
FAQ
What if the upper part is steeper than the lower part?
The calculator still computes the solid; it is then not convex, with an inward step at the bend. The pyramid at Dahshur has the shallower slope on top.
Why is my bend height refused?
At the given lower face angle the four lower faces meet at a point below the bend height, so there is no top part. Lower h₁ or make the lower angle steeper.
Does the unit change the numbers?
No. The unit only labels the results.
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Accuracy and input range
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
Enter each length from 0.000001 to 1,000,000,000, each area from 0.000000000001 to 1,000,000,000,000,000,000 and each volume from 0.000000000000000001 to 1,000,000,000,000,000,000,000,000,000. Anything outside is refused with a message naming the range.
References
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., 2018
J. W. Harris and H. Stocker, Handbook of Mathematics and Computational Science, 1998