Pythagoras.
Draw an equilateral triangle with a vertical line down the middle that splits it into two right angled triangles.
Hypotenuse is 1, adjacent is 0.5, so cosine is 0.5
opposite is therefore √(1-0.5^2) which, by a bit of algebra, =√(3/4) = √3/√4 = (√3)/2