Write s=sin2x,c=cos2x and t=4sin4x. The matrix is I3+uvT, where u=(1,1,1)T and v=(s,c,t)T.
The rank-one determinant identity gives det(I3+uvT)=1+vTu=1+s+c+t. Since s+c=1,f(x)=2+4sin4x.
As x ranges over R, sin 4x attains both −1 and 1, so m=−2 and M=6. Therefore M4−m4=64−(−2)4=1296−16=1280.