Justin R. answered 12/03/20
Ph.D. in Geophysics. Teaching at the university level since 1990.
The double-angle formula for cosine is:
cos(a + b) = cos(a)cos(b) - sin(a)sin(b)
if a = b, then:
cos(2a) = cos^2(a) - sin^2(a)
To get the two terms on the right to be functions of 2x, let a = 2x, then 2a = 4x and:
cos(4x) = cos^2(2x) - sin^2(2x) = cos(B)
Thus, cos(B) = cos(4x) implies B = 4x