How to Write Sin in Terms of X and Y

Ferris wheel against a blue sky

Trigonometry starts out friendly. You draw a right triangle, learn that sine is opposite over hypotenuse, and all seems well. Then the triangle moves onto a graph, the sides get renamed, and suddenly there are x’s and y’s where words used to be. Nothing has really changed, but it can feel as though it has.

Writing sin in terms of x and y takes one short formula. For an angle θ whose terminal side passes through a point (x, y), the sine is y divided by r, where r is the distance from the origin to that point. Since r equals the square root of x² + y², you can write sin θ = y / √(x² + y²). Now it uses x and y alone.

Where the formula comes from

Place an angle with its vertex at the origin and its first side along the positive x-axis. Pick any point on the other side and call it (x, y). Drop a straight line from that point down to the x-axis and you’ve built a right triangle.

The bottom of the triangle has length x. The upright side has length y. The slanted side, r, is the hypotenuse. The upright side is across from the angle, so it’s the “opposite,” and opposite over hypotenuse becomes y over r. The Pythagorean theorem then gives x² + y² = r², which is how the square root gets in.

A worked example

Suppose the point is (3, 4). Square both and add: 9 + 16 = 25. The square root is 5, so r = 5. Sine is y over r, which is 4/5, or 0.8. That’s it.

Try one in a different corner. With (−5, 12), you get 25 + 144 = 169, and r = 13. The sine is 12/13. The negative x didn’t matter to the sine, because squaring removed the sign. It would matter for cosine, which is x over r and comes out as −5/13.

The unit circle shortcut

On a circle with radius 1, r is always 1. Divide y by 1 and you still have y. That’s why teachers say that sine is the y-coordinate and cosine is the x-coordinate on the unit circle. It’s a special case of the same formula, and people get in trouble when they use it on a circle of some other size.

For instance, take the point (6, 8). The sine isn’t 8. A sine can never be larger than 1, so an answer like that should set off an alarm. Here r = 10, and the sine is 0.8 again. It matches the first example because (6, 8) lies on the same ray as (3, 4). Any point along that line gives the same value, and that’s a nice way to check that you understand it.

What about signs?

The distance r is always positive. So the sign of the sine depends on y and nothing else. Points above the x-axis have a positive sine, which covers quadrants I and II. Points below have a negative sine, which covers III and IV. On the x-axis itself, y is zero and the sine is zero.

Mistakes that cost marks

The classic error is swapping x and y. If you can’t remember which belongs to sine, picture a Ferris wheel. Sine tracks your height, and height is y. Another slip is forgetting the root and dividing by x² + y² instead. A third is splitting the square root into x + y, which doesn’t work: √(9 + 16) is 5, while 3 + 4 is 7.

It’s also worth watching the wording in a question. Sometimes x is used as the name of the angle, as in sin x, and has nothing to do with a coordinate. Check how the problem labels things before you start.

If you’d like to see similar mix-ups explained, compairro.com has short comparisons that are easy to skim before a test. Then pick five random points, find r for each, and write down the sine. By the third one, you won’t need the notes.