Slope and Tan

In the previous derivation, we saw that if α is the angle from a line with slope s1 to a line with slope s2, then we have tan(α)=s2s11+s1s2. Let's consider a special case: the angle from x axis to a line with slope s.

The equation of the x axis is just y=0, which can be rewritten as y=0x+0, so the slope of x axis is 0. We want the angle from x axis to the line with slope s, so we plug in s1=0 and s2=s, and we get tan(α)=s01+0s=s.

Let α be the angle from x axis to a line with slope s. Then s=tan(α).

There's a different, possibly more enlightening way to arrive at this result. Let's draw a non-vertical line with slope s and angle α. Let's also draw a unit circle around a point on the line. Let d be the vector from the center of the unit circle to where the unit circle intersects the line.

From trig (TODO), we know that d=cos(α)i+sin(α)j. On the other hand, d is a vector in the direction of the line, so from this derivation we get s=dydx=sin(α)cos(α)=tan(α).

Using slope for trig

This is not only a way to think about slope, but also a way to think about tan: tan(α) is the slope of a line with angle α.

For example, consider a line with slope tan(α), going through (0,0) for simplicity. Its equation is y=tan(α)x+h, where plugging in x=y=0 reveals that h=0. Reflecting the line to the other side of the x axis gives a line whose equation is y=tan(α)x; that is, y=tan(α)x.

Mirroring the line flips the sign of the angle, so the slope of the mirrored line is tan(α). On the other hand, we can see from the equation of the line that its slope is tan(α), so we get tan(α)=tan(α).

For a more complex example, consider two lines with angles α and β. By the above result, their slopes are tan(α) and tan(β).

Let θ denote the angle from the α line to the β line. Then we have α+θ=β, which gives θ=βα. On the other hand, we can use the formula for angle between lines to get tan(θ)=s2s11+s1s2, where s1=tan(α) and s2=tan(β) are slopes. Plugging everything in gives tan(βα)=tan(β)tan(α)1+tan(α)tan(β), which is a well-known trig formula.

In fact, the usual way to derive the formula for angle between lines is to start with the connection between slope and tan (deriving it differently, of course), and then use the above trig formula to find tan(θ).

We can get other well-known trig formulas as special cases of this one (this kind of thing happens a lot in trig). For example, by choosing α=β, we get tan(β(β))=tan(β)tan(β)1+tan(β)tan(β). By applying tan(β)=tan(β), which we derived above, this simplifies to tan(2β)=2tan(β)1tan2(β), which is also a well-known trig formula.