Pythagorean identity:
Consider a circle equation centered at the origin (0, 0) with radius r. From the distance formula, we have (distance from a point lying on the circle) = r. We rewrite this in algebra terms, letting (x, y) be the point on the circle.
sqrt( (x-0)^2 + (y-0)^2 ) = r.
We square both sides and then we get:
x^2 + y^2 = r^2.
Angles are measured from the +x axis counterclockwise. Imagine you have an angle with one ray at +x and another intersecting the circle, forming an angle of theta from the +x to the intersection to the circle. Now, draw lines to the X and Y axes from that point on the circle. Using sin(theta) = opposite/hypotenuse, you should notice that it's always true that sin(theta) = y / r, where y is the y coordinate of that point. Similarly, cos(theta) = adjacent/hypotenuse = x/r.
Now, we have:
Sin(theta)^2 + Cos(theta)^2 = (y/r)^2 + (x/r)^2 = (x^2+y^2)/(r^2). However, we already know from the distance formula that x^2 + y^2 = r^2. Therefore, (x^2+y^2)/(r^2) = 1 by dividing both sides by r^2. Thus, for any angle, it is always true that:
1. sin theta = y / r
2. cos theta = x / r
3. sin^2 + cos^2 = 1
**Real life application!**
Imagine that the ray on the x axis is any direction you're looking at. It's always true that sin(theta)'s gives the y component, which is perpendicular to your direction (hence is the component perpendicular) and cos(theta) gives the x component, which is parallel to your direction.