Apply the formula cos(2a) = cos^2(a) - sin^2(a). Take a = 3x. You will get cos(6x) = cos^2(3x) - sin^2(3x), which is what has to be proved.