By the condition, it follows that cosa+log2a=cos2a+log22a=2cos2a−1+1+log2a, so cosa=2cos2a. Thus, we have cosa=0 or cosa=21, and hence correspondingly cos2a=2cos2a−1=−1 or cos2a=−21. Therefore,
f(2a) - f(4a) = 2a + 2 2a - 4a - 2 4a = 2a - 2 2 2a = -3, if 2a = -1, -1, if 2a = - 1 2 .