With the Pythagoras derived by rotational dynamics from the last post, it is natural to think of sines and cosines as they are both related to rotation more so directly.
1 Definitions
A big difference about sines and cosines is that they depend on angles rather than side lengths. So what is an angle? Well it is nothing but the length of the arc swiped counterclockwise by a line segment that equals to 1,
here
rotates about the origin
then become
, and the length of arc
is the definition of an angle(in radian), let us call this angle
. Now in a 2-D coordinate system, an angle is defined w.r.t. the positive x-axis. For example, let us put this model in a 2-D coordinate, where
is the origin,
is at
, then
would be at a angle 0 as it overlaps with the positive x-axis and
would be at an angle
. Now to define sine and cosine,
is defined to be the y-coordinate of
(or vertical component of
) and
is defined to be the x-coordinate of
(or horizontal component of
).
2 Setup
Now sine and cosine of an angle are defined, but they are only definitions, we want to actually calculate them. We will look at a situation where is already at an angle w.r.t. the horizon, and from there it rotates an angle to become .
And of course the radius is always 1, that is
, and remember we say angles but angles are really just arc lengths.
is really just the length of arc
and the angle
is just the length of the arc
. Our goal is to find the coordinate of the end point
, whose y-coordinate(or vertical components of
) correspond to
, and x-coordinate(or horizontal and components of
) correspond to
. The reason not let the rotation start from the horizon but rather from a non-zero angle
will become clear at the end of this article.
3 Discrete rotation
The approach we use is very similar to the one we used in the derivation of Pythagoras, a rotation can be approximated by discrete linear movements,
i.e. is the starting point and , it takes 4 linear segments(or call them tangent movements) , , , to become , and of course the direction of motion is always perpendicular to the "radius" at that point so
and every linear movement is equal in length,
so this time for each step it moves the same distance, rather than moving the same height as in the Pythagoras case. Now let us get into action and calculate how the horizontal component and the vertical component evolve in this 4-step-rotation. For simplicity, we will use HC and VC as short hands for horizontal component and vertical component.
The first step,
the starting position is at , it has coordinate and . The first tangent movement is to where and . and represent the changes in HC and VC, by similar triangles,
so after the first step at the new point , its coordinate becomes
let us call it for simplicity. Now the second step,
again,
and
, this time
does not equal to 1 anymore, but in the limiting case when each tangent movement or
is infinitesimally small, then it becomes a proper rotation and radius is preserved. So let us just pretend
is small and radius is still 1 in this case. Again by similar triangle
so after the second step at the new point , its coordinate becomes
call it . The third step,
again, and , and the new point would have coordinate .
Needless to do more steps, the pattern is quite neat. HC is always reduced by at that point, and VC is always increased by at that point, if we write the ith step of HC and VC as and , then,
.
.
Now let us write the expressions out in terms of the original and and try to find some pattern. Spoiler alert, the terms will look exactly like binomial coefficients but with interchanging signs. The trick is to look at terms of different orders one by one, namely coefficients of ... First the terms without , so they are the original and , at each step, they remain unchanged as whatever is added or subtracted is multiplied by a factor of , so the added or subtracted terms are at least of order , so and remain unchanged for any steps. Now the term, because and are always in every step, when they are multiplied by Delta and added or substracted to VC or HC, there is always an or picked up by VC or HC in every step, from the 1st step onward, namely:
so at ith step we always have a plus or minus
term in VC or HC. By the same logic, these
terms will also be multiplied by a
then added or subtracted to VC or HC, in every step from the second step onward, so there will always be a
term added or subtracted at the ith step:
now we find the
term for the ith step would be
. By the same logic, this
term will be multiplied by a
then added or subtracted back. So from the 3rd step onward, there will be a
term with coefficient
added or subtracted, for any ith step. Now the pattern should become clear, needless to do the
terms in specific. The result of first 6 steps look like,
And again they look exactly like binomial expansion but with interchanging signs, so all of the coefficients are binomial coefficients as well. Now instead of just using the binomial coefficients and proceed, let us invent a new set of summation expressions, where it is equivalent to binomial coefficients.
a general formula would be:
with some integers and . To calculate any , one can use the definition above add its way up to get a result, but one can also use the multiplication form to get the result quicker,
and this addition formula is equivalent to the binomial coefficient, related by:
hopefully it is obvious to see what the summation expression represent, and of course, as for why, like how it is related to binomial coefficient, how summing up numbers have an equivalent multiplication form, if it has generalizations to non-integers and so on, these questions deserve another blog purely for summation form and binomial coefficients, our main goal here is about sine and cosine. One more thing about the reason we introduce this summation form rather than just using the binomial coefficients, is because the summation form is defined from summing up numbers which is exactly what is going on in the evolution of HC and VC in our case, while binomial coefficient is defined from combinations and permutations, not as directly related.
Now, using the summation form as coefficients, HC and VC after 6 steps would look like:
and the result after n steps would be:
use the equivalent multiplication form as coefficients:
Going back to our setup, rotates an angle to become , on the other hand, in the limiting case of
our discrete rotation model, it would take infinite steps to complete the
discrete rotation, let us call the number of steps (even though is
infinite). Now in the limiting case, the rotation becomes perfect, the path
that the tangent movements swiped through is exactly equal to the angle ,
or the arc length , so we have:
now try to substitute and into HC:
but as is infinite, the , or minus any finite number term would cancel out with an on the denominator, so we have
now all of the terms have an or , rearrange the equations by and we get
remember in our setup, HC is nothing but and VC is just , so
now let the angle be 0, such that the rotation actually starts from the horizon or the positive x-axis, then we have and ,
there we have it, the sine and cosine expansion in terms of angle(or arc length).
Now coming back to the equations where , one might have noticed that we accidentally derived the angle addition formulae for sine and cosine on the way of deriving sine and cosine expansion, as is just and is just according to definition also using the sine and cosine expansion as we discovered,
Comments
Post a Comment