2509: Useful Geometry Formulas

Explain xkcd: It's 'cause you're dumb.
Revision as of 13:05, 31 August 2021 by 162.158.159.55 (talk) (Explanation: Without the θ-angle it does look like a standard cuboid with right-angles in all corners, drawn as an oblique axonometric projection, but this must mean that it is only so in the special case of θ=90°.)
Jump to: navigation, search
Useful Geometry Formulas
Geometry textbooks always try to trick you by adding decorative stripes and dotted lines.
Title text: Geometry textbooks always try to trick you by adding decorative stripes and dotted lines.

Explanation

Ambox notice.png This explanation may be incomplete or incorrect: Created by a DECEITFUL TEXTBOOK ILLUSTRATOR. Explain the formulas for each of the areas, and also the correct formula for the 3D object they seems to represent. Do NOT delete this tag too soon.
If you can address this issue, please edit the page! Thanks.

This comic showcases area formulae for four two-dimensional geometric shapes which each have extra dotted and/or solid lines making them look like illustrations for 3-dimensional objects - the first, a simple equation for a circle, the second an equation for a triangle with an elliptical base, the third an equation for a rectangle with an elliptical base and top, and the fourth a hexagon consisting of two opposing right angled corners and two parallel diagonal lines connecting their sides. In each case, only the outlines of each shape have any practical meaning.

Such illustrations are commonly found in geometry textbooks, which need to depict three-dimensional figures on a two-dimensional page. They use slanted lines to indicate edges receding into the distance, and dashed lines to indicate an edge occluded by nearer parts of the solid. The joke is that the formulae given here are for the area of each two-dimensional shape as drawn, not for the surface area or volume of the illustrated 3D object (as would be shown in the geometry textbook). And that the textbooks just add the "decorative" stripes and dotted lines within a 2D shape to trick the reader, as stated in the title text.

The illustrations depict the following plane or solid figures, depending on the interpretation.

Top left. A circle (illustrating a sphere) with radius r. The equation for the area of a circle is A = πr2 as is given below the figure. The surface area of a sphere is 4πr2 , which is what we would have expected from the figure. The volume of a sphere is 4/3 πr3.

Top right. An isosceles triangle of height h combined with a semi-ellipse with semiaxes a and b (illustrating a right elliptic cone). The area of the triangle is bh, and the area of the semi-ellipse is π/2 ab. he equation for this area is A = 1/2 πab + bh as is given below the figure. However, if this was in a text book then a=b even if drawn like this, thus the cone has a circular base, in the 3D drawing. Such a "normal" cone has an area A = πb^2 + πbl. (a=b). That cones volume would be πr^2*h/3. Taking the 3D drawing literal with a≠b then the lateral surface area of a right elliptic cone is
2a√(b2 + h2) ∫01 √(a²h²(t²-1) - b²(a²+h²t²)/a²(t²-1)(b²+h²)) dt. The volume is π/3 abh.

Bottom left. A rectangle of width d and height h between two semi-ellipses of semi-minor axis r (illustrating a right elliptic cylinder). The area of the rectangle is dh and the area of the two half-ellipses equals the area of one full ellipse, π/2 dr. The equation for this area is A = d(πr/2 + h) as is given below the figure. For a 3D representation the cylinder has circular base so d = 2r, (not elliptical as indicated in the 2D drawing). Such a cylinder has a surface area of 2πr^2 + πdh. The volume of such a cylinder is πr^2h. Taking the 3D drawing literal with d≠2r then the lateral surface area of the right elliptic cylinder is 4h ∫01 √(1 - t²(1-4r²/d²)/1 - t²) dt. The volume is π/2 rdh.

Bottom right. A convex hexagon with three pairs of parallel sides and two right angles at opposite vertices (illustrating a rhomboid-based prism). The area of the rectangle representing the front face of the prism is bh. The area of the upper parallelogram is db sin θ. The area of the right parallelogram is dh cos θ. The equation for this area is A = bh + d(b sinθ + h cosθ) as is given below the figure. The surface area of the prism would be 2bh + 2db sinθ + 2dh. The volume is bdh sinθ.

In the history of the development of computer-generated 3D graphics, calculations of the apparent visual area taken up by the projection of a volume may have been useful in occlusion-like optimizations, where each drawn pixel may be passed through many fragment shaders.

Transcript

Ambox notice.png This transcript is incomplete. Please help editing it! Thanks.
[Four figures in two rows of two, each depicts a two-dimensional representation of a three-dimensional object, with solid lines in front and dotted lines behind. Each figure has some labeled dimensions represented with arrows and a formula underneath indicating its area. Above the four figures is a header:]
Useful geometry formulas
[Top left; a 'sphere', or a circle with a concentrict half-dotted ellipse sharing its major axis, with the shared semi-major radius labeled 'r']
A = πr²
[Top right; a 'cone', or a triangle with the base replaced by a half-dotted ellipse. The triangular/conic height is 'h'. The ellipse in place of the base has semi-minor axis 'a' and major axis 'b']
A = 1/2 πab + bh
[Bottom left; a 'cylinder', or a pair of ellipses connected by verticals. The vertical side/edge is shon as height 'h'. The ellipses have semi-minor axis r, in the lower half-dotted ellipse, and major axis d, across the upper ellipse]
A = d(πr/2 + h)
[Bottom right; a 'rhomboid-based prism', or a semi-regular hexagon with identical pairs of vertical, horizontal and diagonal sides, plus three more congruent pairs (one of each dotted) all linking inwards from their own vertex to meet at one of two complimentary points within. The representative horizontal line is marked 'b', a vertical is 'h', a diagonal as 'd'. Between the base horizontal and the lower internal diagonal is a non-'rightangled' angle 'θ']
A = bh + d(b sinθ + h cosθ)


comment.png add a comment! ⋅ comment.png add a topic (use sparingly)! ⋅ Icons-mini-action refresh blue.gif refresh comments!

Discussion

Area formulas are for 2D object as seen instead of surface of a projected 3D object. Sebastian --162.158.89.200 02:36, 31 August 2021 (UTC)

The "decorative stripes and dotted lines" are the parts of the diagrams that are intended to indicate the third dimension. The conceit of the comic is that these are superfluous. Barmar (talk) 02:56, 31 August 2021 (UTC)

Can you "see" this as 2D?

One aspect of this comic that has not been mentioned is how strong the dashed line convention is if you are very familiar with these sorts of representations. I found it almost impossible to force my brain to see this as a 2D diagram with solid and (superflous) dashed lines. That third dimension just keeps popping out, although I could occasionally reverse the convention and see the dashed lines as in front rather than in back. Arl guy (talk) 14:27, 2 September 2021 (UTC)

Can someone explain how the last one works? GcGYSF(asterisk)P(vertical line)e (talk) 04:28, 31 August 2021 (UTC)

bh is the area of the front face. The top face is a parallelogram with sides d and b, with an angle of θ between them, so its area is d b sin(θ). The right face is a parallelogram with sides d and h, with an angle of 90º - θ between them, so its area is h d sin(90º - θ) = h d cos(θ). So the area of the whole picture is bh + d b sin(θ) + d h cos(θ).
--172.68.24.165 04:46, 31 August 2021 (UTC)
In case you don't know the area of a parallelogram by heart, you can read d b sin(θ) as b * d sin(θ), where d sin(θ) is the height of the parallelogram; if you cut the right corner of the parallelogram off and add it on the left, you get a rectangle where the bottom side is b and the height is that d sin(θ), so it works out. The other parallelogram's area is h * d cos(θ), with the same reasoning. 162.158.90.241 05:00, 31 August 2021 (UTC)

Funnily enough, both this comic and 2506 are about projection. CRLF (talk) 05:11, 31 August 2021 (UTC)

I had considered working that into the explanation, but that needs to account for the fact that the indicated measurements (e.g. the angle θ) have to be read in 2D, not in 3D and projected. But it would be correct to say that the 2D shapes are projections of simple 3D objects. 162.158.90.149 05:23, 31 August 2021 (UTC)
Between this, 2506, and all the ones about Mercator and other map projections ... "projection" is a very large word in Randall's brain's word cloud. 172.69.63.8 15:29, 31 August 2021 (UTC)
Feels to me like every comic since 2500 could be tagged "projection" in one sense of the word or another. --172.69.69.225 21:55, 31 August 2021 (UTC)
Does the bottom-left formula have a mistake?</s>

It seems like the bottom-left formula should be A=d(πr+h) rather than A=d(πr/2+h), because there are two half-ellipses that add up to a complete ellipse. Am I missing something? (This doesn't seem like an extra joke, does it?) 162.158.106.179 05:28, 31 August 2021 (UTC)

No, it's correct. d is all of the major axis, not just half, so we have to divide that by 2. 162.158.92.83 05:51, 31 August 2021 (UTC)
Oh, right; good call! 162.158.106.179 06:49, 31 August 2021 (UTC)
Does the top-right formula have a mistake?

I think it should be in brackets, the top triangle area needs the 1/2 also, so it should be: A=1/2(πab + bh)

No, it's correct. The bottom is a half ellipse, with area 1/2 π a b, and the top is a triangle with base 2 b and height h, so its area is 1/2 2b h = bh. The total area is 1/2 π a b + b h.

--172.68.25.144 06:49, 31 August 2021 (UTC)

3D formulae for reference

4πr^2

πb(a+√(b^2+h^2)) if a=b

πr(2r+h)

2(bd+bh+dh)

162.158.107.80 09:54, 31 August 2021 (UTC)

It would be clarifying to add these to the comic, but of course they are flagrantly wrong. Baffo32 (talk) 09:57, 31 August 2021 (UTC)
Surely ripe for a table, in place of much of the longhand paragraph spiel (which could be kept, but simpler for just the narrative but otherwise non-technical details)... "Shape (2D)", "Area", "Pretended Shape (3D)", "Surface Area", "Volume", ¿"Notes"? (Not sure about specific Notes, some things could/should be said below the formulae/descriptions in the relevent cell to which that matters, in special cases where necessary, which might be better than a Notes either empty or jammed up with all the combined row-specific corollaries, etc, that I can imagine.) Anyway, an idea. 141.101.76.11 11:56, 31 August 2021 (UTC)
I think the formulas are correct. Those given should be from the text book, not for those with ellipse bases. Someone has put a lot of work into giving these complicated formulas for the cone and cylinder. But I think that is overkill. I have added to the explanation the simple versions before, and would suggest deleting the complicated, which was never the intention of either text book or Randall! ;-)--Kynde (talk) 12:36, 31 August 2021 (UTC)
What complicate formulae?? --GcGYSF(asterisk)P(vertical line)e (talk) 20:28, 4 September 2021 (UTC)
Surface area. Not volume. My bad. I usually consider volume associated with pics like like that. Don't use surface area much. Baffo32 (talk) 22:22, 1 September 2021 (UTC)

add an extra edited image that is the comic without dotted lines to make it easier to see the 2d shapes? 172.69.71.177 12:46, 31 August 2021 (UTC)Bampf

And an animated GIF of the 3D solid objects rotating to show their real shapes. At different speeds. If you have the time.  :-) Robert Carnegie [email protected] 141.101.76.11 16:31, 31 August 2021 (UTC)
Image here: https://i.imgur.com/dq7VmnK.png Editing done myself, feel free to upload it to this wiki if you have an account on this wiki. :) --162.158.88.29 17:22, 1 September 2021 (UTC)

Please do check my (additional) changes to the bottom-right item (hexagon-cum-prism) in both main and transcript texts. As hinted in my edit notes, cos-theta is important because the skewed tetrahedron (rhomboid, whether in plan or the true area of the 'fake' perspective) is not d*b in area. The fact that without the theta it would look like a standard oblique orthographic projection with entirely right-angled corners is perhaps part of the (intended?) confusion, although we can probably assume that all unmarked (and, of course, uncongruent/uncomplimentary) angles are 90° so that it isn't a full on parallelepiped with an additional phi-angle on an adjacent face and a complicated third dependent-angle somewhere upon the remaining face-plane. As such, I put in the cosine element to both the 3d surface formula (it only affects the bd-shape, the both of them) and the 3d volume (from this shape, extrudes without further adjustment straight up the h-axis), but I always have to second guess if I've done this simple bit of trig right, it seems, even though I should know better and just trust to SOHCAHTOA... ;) 162.158.158.146 13:24, 31 August 2021 (UTC)

(Case in point: I thought I'd added cosines, and I'd put sines anyway, when fussing about copying the clipboarded theta-character into the right place! Re-read, seen, corrected(?) this myself. Unless I thought I was was wrong; but I was wrong, I was right!) 162.158.155.145 13:33, 31 August 2021 (UTC)

I believe both of those prism formulas should use sine theta. If theta is ninety degrees, then sine theta will be 1 (thus reducing to the rectangular case), whereas cosine of 90 degrees is zero.Tovodeverett (talk) 15:19, 31 August 2021 (UTC)

You're right (me again, from just above), I was rushed and had been right first time, I realised while I was off-grid and it was nagging away at the back of my head. I'm better on paper (or when I can sanity-test real code, but for some reason tapping it in like this just screws my mind up, taking away/inverting my technical ability and reason. (I blame the microwaves emitting from my tablet... pass the tinfoil hat!) 162.158.158.178 16:29, 31 August 2021 (UTC)

Unconvinced by the cone! The equation shown, is correct for an isosceles triangle with a half-ellipse on its base. But that shape has 'corners' where the sides meet that half-ellipse. In a 3D projected view of an actual cone, the sides will meet the base ellipse at a tangent, meaning that it is more than a half-ellipse. But I suppose it's close enough as an approximation...172.69.55.131 15:57, 1 September 2021 (UTC)

I verified your claim by imagining the surface of the cone as formed by a set of lines extending from the different points on the ellipse to a single fixed point at the tip. No matter where you put that tip point, the outermost lines seem tangent to the ellipse. Seems it works for both perspective and orthographic projections. Updated the explanation. Randall's formula is incorrect, especially for very short cone projections. Baffo32 (talk) 22:46, 1 September 2021 (UTC)
I expanded the text slightly, and worked out the correct formula: it should be (2π - 2arctan(h/a))ab + b sqrt(h^2 - a^2). Can someone verify that, format it properly for the wiki, and add it? The easy way to check it is to shrink the diagram horizontally so the ellipse is a circle of radius a. (Does the wiki not have MathJax or similar installed? Seems odd, given Randall Munroe's interests.) It's maybe also worth mentioning that looking closely at the picture at a pixel level shows that he did draw the tangents, rather than do the half-ellipse + triangle that the formula suggests. --172.69.90.75 16:48, 2 September 2021 (UTC)
It's 3am (okay 5am) and I made it really long!

I just followed the directions in the "incomplete" which said to add in explanations of the formulae ... Please feel free to edit to take out redundancy. However I did add in the following explanations: - the fact that the formula in the third figure is actually the same as the cross-section represented by the ellipse, which is why you may not get the joke after reading the first picture; - the use of 'd', 'r' and 'h' in the third figure, which adds to the confusion as they imply "diameter", "radius" and "height" - the fact that the area calculations must take into account the overlapping shapes (there were previously references to "semi-ellipses" which are extrapolations, not what's drawn there) Haven't yet done the last figure - pretty sure 'b' 'd' and 'h' are for 'breadth', 'depth' and 'height' and while 'height' is also used for 2D rectangles, 'breadth' less so in maths textbooks (usually 'width') - whoever pointed out that there is a theta as well, pretty sure it's only there because it's necessary for the area calculation, as 'depth' only really applies as labelled to rectangular prisms - if the base were not rectangular, 'd' would not be equal to the 'depth' Will try to come back later and shorten... 162.158.166.40 18:56, 1 September 2021 (UTC)

Someone thought that "formulae" was a typo for "formulas" (which it might easily be, on a QWERTY or similar layout). Not going to revert, but note that (for a mathematical formula, if perhaps not a chemical one/etc, but there's plenty of mixed use) this is actually quite correct. If it were up to me alone (I didn't write that one, orother mentions like in the above Talk contribution), for the record, I'd probably have used "formulæ" myself. ;) 162.158.155.145 20:28, 1 September 2021 (UTC)

If you don't assume that the bottom right figure is 3D, what's the justification for projecting upward and assuming that the angle theta is also the angle of the top parallelogram? Arl guy (talk) 02:25, 2 September 2021 (UTC)

If you assume that the two rectangles have equal width and height, then it can be mathematically proven that the angles must be equal (probably using congruent triangles). However this assumption is not stated on the figure. That said, you would make the same assumption for the 3D figure, along with a whole bunch of other assumptions of course.172.70.147.23 06:31, 2 September 2021 (UTC) Edit: The two rectangles must have equal width and height to make the rest of the shapes parallelograms in the first place. If they aren't identical you get trapezoids all round and possibly a bunch of different angles. 172.70.143.22 06:43, 2 September 2021 (UTC)
Yes, I think you are mostly right, but you don't necessarily get trapezoids all around. You can move the top solid line down and to the right and rotate the top left and top right slanted lines to keep the top shape a parallelogram, but the right shape will now be a trapezoid. I think the key assumption is that all the solid and dashed lines that loop parallel are, in fact, parallel. Arl guy (talk) 14:20, 2 September 2021 (UTC)
There's always many possible unindicated perspective tricks (or axonometric/othographic ones, as might be more appropriate) in which the components of lines and relationships towards/away from the viewer are non-zero (or not non-zero in the way expected). Various of the shapes involved could be infinitely warped with leans, curves or even highly inflected wiggles to allow some 'as expected' profile even as others that should be connected are not. (Though it would make the surface 'planes' warped and distorted, even more against the conventions of wireframe diagrams.)
Because of dependencies, as the theta moves the other similar angles might be thetas too, or they could be kept as RAs and (?)three other chosen angles could be distorted (in or out of the page, by a calculable and entirely derivative amount) to compensate. Or, like the Triangle illusion, there's overlaid duplicate edges with not all/any vertices actually being the same, just in the same illustrated place. (Again, making a mockery of the 'simple' diagram, but we're already way past that. ;) ) 162.158.155.247 08:56, 2 September 2021 (UTC)
Sure, but we were talking about the 2D figure and taking it at "face" value - the internal angle is defined while the ones you'd actually use for the parallelogram area calculations aren't, and neither are the dimensions of the upper rectangle. In a proper geometric figure you'd have markings showing which lengths are equal and which angles are right angles.172.70.143.22 05:38, 3 September 2021 (UTC)

Subtext??: I wonder if this comic implies that we are being transformed from 3d creatures into 2D creatures... hadaso --162.158.91.184 07:04, 5 September 2021 (UTC)

Cross-section - reword please I made a wording error in describing all points on the "cross-section" of the sphere as being equidistant from the centre, and I'm stuck on how to fix it concisely. Problem is that "cross-section" is ambiguous - I think mathematically it could mean the circle at the intersection of the hollow sphere and the plane, but to me it usually means the part of the plane where it intersects the solid sphere, which makes the statement false. I want to replace it with "circle", with the quote marks, but we're actually talking about the ellipse-cum-circle so I'm not sure if that's good enough. 172.70.142.239 11:00, 7 September 2021 (UTC)

Can somebody draw what these 2d shapes are supposed to look like?