Quantcast

Posts tagged with sine

Oh! This one only took me 17 years or so to figure out. This was a “fact” I had committed to memory in school but never thought about why.

 

From The Symplectization of Science by Mark Gotay and James Isenberg:

image

There are some connections to circles and homogeneous coordinates (v/‖v‖) but let’s leave those for another time.

Gotay & Isenberg’s exposition using the metric makes it clear that the
/‖v‖ part of the definition of cosine isn’t where the right-angle concept comes from. It comes from the v₁ w₁ + v₂ w₂.

image

 

So if the slope of my starting line is m, why is the slope of its perpendicular line −1/m?

First I could draw some examples.

imageimageimage

I drew these with http://www.garrettbartley.com/graphpaper.html which is a good place to count out the “rise over run” and “negative run over rise” Δx & Δy distances to make sure they really do look perpendicular.

The length and the (affine or “shift”) positioning of perpendicular line segments doesn’t matter to their perpendicularity. So to make life easier on myself I’ll centre everything on zero and make the segments equal length.

image

The metric formula is going to work if let’s say my first vector v is (+1,+1) (one to the right and one up) and my second vector goes one down and one to the right. Then the metric would do:

+1 • +1 (horizontal) + +1 • −1 (vertical)

which cancels.

 

What if it were a slope of 9.18723 or something I don’t want to think about inverting?

This is a case where it’s probably easier to think in terms of abstractions and deduce, rather than using imagination in the conventional way.

If I went over +a steps to the right and +b steps to the up (slope=b/a), then the metric would do:

a•? + b•¿

What is that missing? If I plugged in (?←−b, ¿←a) or (?←b, ¿←−a), the metric would definitely always cancel.

And in either of those cases, the slope of the question marks (second line) would be −a/b.

So the multiplicative inverse (flipping) corresponds to swapping terms in the metric so that the two parts anti-match. And the additive inverse (sign change) means the anti-matched pairs will “fold in” to zero each other (rather than amplifying=doubling one another).







This is for my homies in maths class. I know many of you fear the sin & cos.

cosine is walking east-west, sine is walking north-south

They’re just a way to convert from circular coordinates to square coordinates.

radar-screen

polar coordinates "at sea" versus rectangular coordinates "in the city"

You want to get to the red dot. If you’re at sea you set your bearing θ and sail straight there. If you’re in the city you walk north and then east.

Cosine tells you how far you have to walk crosstown; sine is how far uptown.

 

That’s basically it. If you think uptown and crosstown look like legs of a right triangle, you’re thinking along the right track to understand where the many sin & cos formulæ come from.

Here’s a GPL’ed picture of why we sometimes think of cosine as a wave:

image