Since Svein refers to writing sine and cosine in terms of the exponential, I feel free to refer to yet another, somewhat unusual, definition of sine and cosine:
We define y= sin(x) as the unique solution to the differential equation y''+ y= 0 with initial conditions y(0)= 1, y'(0)= 0 and define y= cos(x) as the unique solution to the same differential equation with initial conditions y(0)= 0, y'(0)= 1.
With those initial conditions, it is easy to show that they are "independent solutions" and so, because this is a second order linear differential equation, any solution can be written as a linear combination of those two functions. In fact, it is easy to see that the solution to the equation y''+ y= 0 with initial conditions y(0)= A, y'(0)= B is y(x)= A cos(x)+ B sin(x).
Now, let y= sin(x+ a) for constant a. Then y'= cos(x+a) and y''= -sin(x+ a) so that y''+ y= sin(x+ a)- sin(x+ a)= 0 while y(0)= sin(a) and y'(0)= cos(a). That is, sin(x+ a) is a solution to the initial value problem y''+ y= 0 with initial condition y(0)= sin(a), y'(0)= cos(a). So it follows that sin(x+ a)= sin(a)cos(x)+ cos(a)sin(x). Similarly, taking y= cos(x+ a), y'= -sin(x+ a) and y''= -cos(x+ a) while y(0)= cos(a) and y'(0)= -sin(a). It follows that cos(x+ a)= cos(a)cos(x)- sin(a)sin(x).
Taking, in both of those, x= b, we have sin(a+ b)= sin(a)cos(b)+ cos(a)sin(b) and cos(a+ b)= cos(a)cos(b)- sin(a)sin(b).
From those "addition formulas" the others follow:
Letting a= b= x, sin(2x)= sin(x+ x)= sin(x)cos(x)+ cos(x)sin(x)= 2 sin(x)cos(x) and cos(2x)= cos(x)cos(x)- sin(x)sin(x)= cos^2(x)- sin^2(x).
Of course, sin^2(x)+ cos^2(x)= 1 so we can write sin^2(x)= 1- cos^2(x) so that we can write that last formula as cos(2x)= cos^2(x)- (1- cos^2(x))= 2cos^2(x)- 1= cos(2x). Replacing "x" with "x/2", that becomes 2cos^2(x/2)- 1= cos(x) and, solving for cos(x/2), we have cos(x/2)= sqrt((1+ cos(x)/2). Similarly, cos^2(x)= 1- sin^2(x), so cos(2x)= cos^2(x)- sin^2(x)= 1- 2sin^2(x) so, replacing x with x/2 and solving for sin(x/2) we have sin(x/2)= sqrt((1- cos(x))/2).