# Error cutting plywood: Mere Pythagoras or outright trig?

**URL:** https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920
**Category:** Factual Questions
**Created:** [March 13, 2015, 4:55pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920 "2015-03-13T16:55:31Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Johnegee](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@Johnegee](https://boards.straightdope.com/u/Johnegee)
#### Post date: [March 13, 2015, 4:55pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/1 "2015-03-13T16:55:31Z")

</div>

Hello, experts,

If you know the lengths of the two square legs of a right triangle (which means you know the slope), is there a formula that tells you the x-axis value directly under a given distance measured along the hypotenuse? I’m afraid the answer is too easy, but after MANY hours of noodling I still can’t figure it out. I hope you, a SD expert, can.

My example is pulling out a steel tape measure from the bottom left of a sheet of 96-inch plywood all the way to the right, past the right end of the sheet, except that you mistakenly raise the tape by exactly 1 inch at the 96-inch point, i.e., the right side of the sheet. Then you find the 72-inch mark on the tape, which is the hypotenuse of a slim triangle, and you make a mark on the sheet. That mark will be short of 72 inches by some amount or other as measured along the purely horizontal x-axis, and my question is, How do I calculate that value on the x-axis that is directly below the 72-inch value on the hypotenuse?

As I see it, any formula must incorporate these three variables:

(1) The distance the tape was mistakenly held too high (the Rise part of Rise over Run) = 1 inch in the example  
(2) The length of the sheet from left to right (the Run part of Rise over Run) = 96 inches in the example  
(3) The point along the hypotenuse of that triangle where you (mistakenly) make your mark = 72 inches in the example

The result of the formula will be a number less than (3) by some amount. What formula produces this answer given the three variables?

I want to be able to say, "At 96 inches if your raise your tape 1 inch too high, your mark at 72 inches on the tape will be actually be short by X inches along the bottom. Or “At 92-5/8 inches if you raise your tape 3-1/2 inches too high, your mark at 60 inches on the tape will actually be short by Y inches along the bottom.”

You get the idea, I hope.

Thanks for any suggestions you can offer to get my brain moving in the right direction again.

---

<div class="post-metadata">

### Author: ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)
#### Post date: [March 13, 2015, 5:01pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/2 "2015-03-13T17:01:03Z")

</div>

> [@Johnegee](#):
>
> If you know the lengths of the two square legs of a right triangle (which means you know the slope), is there a formula that tells you the x-axis value directly under a given distance measured along the hypotenuse?

If you know the lengths of the two square legs, “mere Pythagoras” will get you the length of the hypotenuse. From there you can use proportions, since drawing a line from a point on the hypotenuse to the point directly below it on the x-axis will give you a similar triangle to the one you started with.

---

<div class="post-metadata">

### Author: ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)
#### Post date: [March 13, 2015, 5:07pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/3 "2015-03-13T17:07:43Z")

</div>

cos of the angle times the distance along the hypotenuse.

---

<div class="post-metadata">

### Author: ![CalMeacham](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/calmeacham/32/35_2.png) [@CalMeacham](https://boards.straightdope.com/u/CalMeacham)
#### Post date: [March 13, 2015, 5:28pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/4 "2015-03-13T17:28:36Z")

</div>

If I understand you properly (I’m not sure I do), then you measure a distance **L0** along the horizontal from the origin at the lower left corner of the sheet. Only you don’t actually run the tape directly across the sheet – it’s a distance **a** too high, but goes all the way to the end of the sheet. If you drew a line along that tape measure to the other side of the sheet, it would be a length given by the square root of **L0[sup]2[/sup] + a[sup]2[/sup]**.

Now you measure a line a distance **L1** along that tilted line, and you want to know what point on the edge (the x-axis) below corresponds to that point. Since the triangle you get by dropping the vertical down to that edge is similar to the one you first drew, that went all the way out to the edge, the proportions will be identical, and if **L1’** is the distance along the edge, you’ll have **L1’/L1 = L0/SQRT(Lo[sup]2[/sup] + a[sup]2[/sup])**

In other words, **L1’ = L1\*L0/SQRT(L0[sup]2[/sup] + a[sup]2[/sup])**

For your example, with L0 = 96, a = 1, and L1 = 72, you get L1’ = 71.996 inches

If **a \<\< L0** , as in your case, then a useful approximation is

**L1’ = L1 ( 1 - (1/2) (a/L0)[sup]2[/sup])**

---

<div class="post-metadata">

### Author: ![ThisSpaceForRent](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thisspaceforrent/32/345_2.png) [@ThisSpaceForRent](https://boards.straightdope.com/u/ThisSpaceForRent)
#### Post date: [March 13, 2015, 5:31pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/5 "2015-03-13T17:31:13Z")

</div>

one word of advice…measure thrice, cut once.

---

<div class="post-metadata">

### Author: ![CalMeacham](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/calmeacham/32/35_2.png) [@CalMeacham](https://boards.straightdope.com/u/CalMeacham)
#### Post date: [March 13, 2015, 5:36pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/6 "2015-03-13T17:36:35Z")

</div>

For your second example,

\*\*L0 = 92 5/8 = 92.626

L1 = 60

a = 3.5\*\*

using the approximation at the end of the last post gives **L1’ = 59.957** inches. You’re 0.0428" short of the 60 inches you thought you should be.

This isn’t a homework problem, is it?

---

<div class="post-metadata">

### Author: ![johnpost](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@johnpost](https://boards.straightdope.com/u/johnpost)
#### Post date: [March 13, 2015, 6:01pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/7 "2015-03-13T18:01:16Z")

</div>

> [@CalMeacham](#):
>
> This isn’t a homework problem, is it?

it’s a slightly smaller whatever it is.

---

<div class="post-metadata">

### Author: ![Hector\_St\_Clare](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@Hector\_St\_Clare](https://boards.straightdope.com/u/Hector_St_Clare)
#### Post date: [March 13, 2015, 8:02pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/8 "2015-03-13T20:02:04Z")

</div>

Use the sine and cosine. If length along the hypotenuse is L, then the horizontal distance and vertical distance are Lcos(theta) and Lsin(theta) respectively. Where theta = inverse tangent of the ratio of the legs of the original triangle.

---

<div class="post-metadata">

### Author: ![md2000](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@md2000](https://boards.straightdope.com/u/md2000)
#### Post date: [March 13, 2015, 8:42pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/9 "2015-03-13T20:42:51Z")

</div>

The angle is ARCTAN(RISE/RUN) (i.e. rise=1", RUN=96")

- Easy to remember, as rise goes to zero, so does angle.
- Also, angle is in whatever your calculator does - radians or degrees…

The actual cut is MEASURELENGTH\*COS(Angle); again, COS(0)=1 so flat on the board, no shortage.

- MEASURELENGTH in example is the hypotenuse of 72".

Or even simpler, do similar triangles: Pythagoras fills in the missing side of the big triangle.  
HYPOTENUSEFULLBOARD = SQRT(RISE^2 + RUN^2)

- again RISE=1" RUN=96"

RUN/HYPOTENUSEFULLBOARD = CUTLENGTH/MEASURELENGTH

- for similar triangles, the ratio hypotenuse over adjacent is the same.

---

<div class="post-metadata">

### Author: ![MikeS](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@MikeS](https://boards.straightdope.com/u/MikeS)
#### Post date: [March 13, 2015, 9:03pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/10 "2015-03-13T21:03:48Z")

</div>

**CalMeacham** ’s method was the one I was going to suggest, and has the virtue of requiring no trigonometry.

---

<div class="post-metadata">

### Author: ![Johnegee](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@Johnegee](https://boards.straightdope.com/u/Johnegee)
#### Post date: [March 16, 2015, 6:09pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/11 "2015-03-16T18:09:59Z")

</div>

beowulff and Hector St Clare and md2000, thank you for presenting the trig solutions. I instituted both Hector’s and md2000’s in a spreadsheet to see, and they match exactly, so I’m pretty sure the formulas I created are right.

And they exactly match CalMeacham’s results, which use Pythagoras only, which further proves the all the formulas.

CalMeacham, thanks you for such a helpful answer, and may I ask how you arrived at your approximation, which divides by 2? It is remarkably accurate.

---

<div class="post-metadata">

### Author: ![CalMeacham](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/calmeacham/32/35_2.png) [@CalMeacham](https://boards.straightdope.com/u/CalMeacham)
#### Post date: [March 16, 2015, 6:26pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/12 "2015-03-16T18:26:32Z")

</div>

> [@Johnegee](#):
>
> beowulff and Hector St Clare and md2000, thank you for presenting the trig solutions. I instituted both Hector’s and md2000’s in a spreadsheet to see, and they match exactly, so I’m pretty sure the formulas I created are right.
> 
> And they exactly match CalMeacham’s results, which use Pythagoras only, which further proves the all the formulas.
> 
> CalMeacham, thanks you for such a helpful answer, and may I ask how you arrived at your approximation, which divides by 2? It is remarkably accurate.

It’s a very common and straightforward approximation . The square root of **1 + E** is very nearly **1 + E/2** if E \<\< 1.

They’re the first two terms of the Taylor expansion of the square root. Alternatively, if you square **1 + E/2** you get **1 + E + E[sup]2[/sup]/4**, and if E \<\<1 you can ignore that last term as negligible.

---

<div class="post-metadata">

### Author: ![MikeS](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@MikeS](https://boards.straightdope.com/u/MikeS)
#### Post date: [March 16, 2015, 6:31pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/13 "2015-03-16T18:31:31Z")

</div>

> [@Johnegee](#):
>
> CalMeacham, thanks you for such a helpful answer, and may I ask how you arrived at your approximation, which divides by 2? It is remarkably accurate.

It’s a trick known as the “binomial expansion”. Basically, if you have a quantity like

(1 + x)[sup]n[/sup],

you can expand it out as a polynomial in x:

1 + n x + n(n-1) x[sup]2[/sup]/2 + …

If x is a small number, then you can throw out all of the terms except the first two. For example, if x is 1/1000, then x[sup]2[/sup] is 1/1000000, and so just using the first two terms gives you an answer that’s correct to within a few parts in a million.

In your case, the formula was

L0_L1/√(L0[sup]2[/sup] + a[sup]2[/sup]) = L1/√(1 + (a/L0)[sup]2[/sup]) = L1_(1 + (a/L0)[sup]2[/sup])[sup]-1/2[/sup],

since 1/√x = (x[sup]1/2[/sup])[sup]-1[/sup] = x[sup]-1/2[/sup]. From there, applying the binomial expansion above (with n = -1/2) gives you **CalMeacham** ’s formula.

---

<div class="post-metadata">

### Author: ![md2000](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@md2000](https://boards.straightdope.com/u/md2000)
#### Post date: [March 16, 2015, 9:03pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/14 "2015-03-16T21:03:37Z")

</div>

> [@CalMeacham](#):
>
> Alternatively, if you square **1 + E/2** you get **1 + E + E[sup]2[/sup]/4**, and if E \<\<1 you can ignore that last term as negligible.

…for sufficiently large values of 1.

---

<div class="post-metadata">

### Author: ![bob\_2](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bob_2/32/3341_2.png) [@bob\_2](https://boards.straightdope.com/u/bob_2)
#### Post date: [March 17, 2015, 12:53pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/15 "2015-03-17T12:53:23Z")

</div>

> [@Johnegee](#):
>
> Hello, experts,
> 
> My example is pulling out a steel tape measure from the bottom left of a sheet of 96-inch plywood all the way to the right, past the right end of the sheet, except that you mistakenly raise the tape by exactly 1 inch at the 96-inch point, i.e., the right side of the sheet. Then you find the 72-inch mark on the tape, which is the hypotenuse of a slim triangle, and you make a mark on the sheet. That mark will be short of 72 inches by some amount or other as measured along the purely horizontal x-axis, and my question is, How do I calculate that value on the x-axis that is directly below the 72-inch value on the hypotenuse?
> 
> As I see it, any formula must incorporate these three variables:
> 
> (1) The distance the tape was mistakenly held too high (the Rise part of Rise over Run) = 1 inch in the example  
> (2) The length of the sheet from left to right (the Run part of Rise over Run) = 96 inches in the example  
> (3) The point along the hypotenuse of that triangle where you (mistakenly) make your mark = 72 inches in the example
> 
> The result of the formula will be a number less than (3) by some amount. What formula produces this answer given the three variables?
> 
> I want to be able to say, "At 96 inches if your raise your tape 1 inch too high, your mark at 72 inches on the tape will be actually be short by X inches along the bottom. Or “At 92-5/8 inches if you raise your tape 3-1/2 inches too high, your mark at 60 inches on the tape will actually be short by Y inches along the bottom.”

Your mark at 72" is 3/4 of the length, so the perpendicular from there will be 3/4".

This means we have a right triangle with a hypotenuse of 72, so the base can be calculated by subtracting the square of 3/4 (9/16) from the square of 72 (5184) and finding the square root of the result.

5184 - 9/16 = 5183 and 7/16

The square root of 5183 and 7/16 is 71.996093644 (using Google)

So the error is 0.0039, or about 1⁄250.

Since you are using a cheap steel tape made in China; you don’t have any idea how it may have stretched or expanded in the hot workshop, and your pencil is probably wider than 1/250", the error is insignificant.

For a general rule, you might do best to create a graph.

---

<div class="post-metadata">

### Author: ![Hector\_St\_Clare](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@Hector\_St\_Clare](https://boards.straightdope.com/u/Hector_St_Clare)
#### Post date: [March 17, 2015, 3:36pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/16 "2015-03-17T15:36:33Z")

</div>

> [@MikeS](#):
>
> It’s a trick known as the “binomial expansion”. Basically, if you have a quantity like
> 
> (1 + x)[sup]n[/sup],
> 
> you can expand it out as a polynomial in x:
> 
> 1 + n x + n(n-1) x[sup]2[/sup]/2 + …
> 
> If x is a small number, then you can throw out all of the terms except the first two. For example, if x is 1/1000, then x[sup]2[/sup] is 1/1000000, and so just using the first two terms gives you an answer that’s correct to within a few parts in a million.
> 
> In your case, the formula was
> 
> L0_L1/√(L0[sup]2[/sup] + a[sup]2[/sup]) = L1/√(1 + (a/L0)[sup]2[/sup]) = L1_(1 + (a/L0)[sup]2[/sup])[sup]-1/2[/sup],
> 
> since 1/√x = (x[sup]1/2[/sup])[sup]-1[/sup] = x[sup]-1/2[/sup]. From there, applying the binomial expansion above (with n = -1/2) gives you **CalMeacham** ’s formula.

Of course, you can also continue with more and more terms to get to whatever degree of accuracy you wish. When _x_ is small though, you can get very close to your answer very quickly (i.e. the series ‘converges’ quickly). The binomial series really is incredibly useful.

---

<div class="post-metadata">

### Author: ![Johnegee](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@Johnegee](https://boards.straightdope.com/u/Johnegee)
#### Post date: [March 20, 2015, 2:19pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/17 "2015-03-20T14:19:14Z")

</div>

There’s one formula I can’t figure out using trig, which is where you know the hypotenuse and one of the non-square angles. What formulas calculate the lengths of the legs?

For example, if the hypotenuse is 96.0052081920559 inches and one of the angles is 0.596809451229177 degrees, how does one arrive at one leg length of 96 inches and the other leg length of 1 inch?

I’ve spent as much time as I care to – about 45 minutes now – trying to figure this out. I learned and forgot trig in high school, and I don’t want to have to learn it again.

(And no, none of this is a homework problem:.)

Thanks again for any help you can offer.

---

<div class="post-metadata">

### Author: ![Hector\_St\_Clare](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@Hector\_St\_Clare](https://boards.straightdope.com/u/Hector_St_Clare)
#### Post date: [March 20, 2015, 2:24pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/18 "2015-03-20T14:24:32Z")

</div>

> [@Johnegee](#):
>
> There’s one formula I can’t figure out using trig, which is where you know the hypotenuse and one of the non-square angles. What formulas calculate the lengths of the legs?
> 
> For example, if the hypotenuse is 96.0052081920559 inches and one of the angles is 0.596809451229177 degrees, how does one arrive at one leg length of 96 inches and the other leg length of 1 inch?
> 
> I’ve spent as much time as I care to – about 45 minutes now – trying to figure this out. I learned and forgot trig in high school, and I don’t want to have to learn it again.
> 
> (And no, none of this is a homework problem:.)
> 
> Thanks again for any help you can offer.

If you call the hypotenuse _r_ and one of the angles theta (I can’t figure out Greek letters here), then the legs are _r_cos(theta) and _r_sin(theta) respectively.

---

<div class="post-metadata">

### Author: ![Johnegee](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@Johnegee](https://boards.straightdope.com/u/Johnegee)
#### Post date: [March 20, 2015, 2:52pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/19 "2015-03-20T14:52:37Z")

</div>

> [@Hector\_St\_Clare](#):
>
> If you call the hypotenuse _r_ and one of the angles theta (I can’t figure out Greek letters here), then the legs are _r_cos(theta) and _r_sin(theta) respectively.

If you mean R of 96.0052081920559 times the cosine of the known angle of 0.596809451229177, I arrive at 53.9555347568169 inches. If you mean R of 96.0052081920559 times the sine of of the known angle of 0.596809451229177, I arrive at 79.4090691867492 inches.

In fact, those are the formulas I had, and I recently assumed they were wrong somehow because they produce unexpected results. I expected a triangle whose square legs equaled 1 inch of Rise over 96 inches of Run.

Where has my thinking gone wrong?

---

<div class="post-metadata">

### Author: ![pulykamell](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pulykamell/32/3166_2.png) [@pulykamell](https://boards.straightdope.com/u/pulykamell)
#### Post date: [March 20, 2015, 3:34pm UTC](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920/20 "2015-03-20T15:34:53Z")

</div>

Is the 0.59… supposed to be in degrees there? Because the sin and cos you are getting is for the radian values.

Typing in sin (0.59… degrees), I get an answer of:

0.01041610157

Multiplied by r, that’s 1.

and for cosine:  
0.99994575094

Multiplied by r, that’s 96.

[Next page](https://boards.straightdope.com/t/error-cutting-plywood-mere-pythagoras-or-outright-trig/714920.md?page=2)
