The determinantΔ=∣∣ ∣ ∣∣a2a1cos(nx)cos(n+1)xcos(n+2)xsin(nx)sin(n+1)xsin(n+2)x∣∣ ∣ ∣∣ is independent of
sin (n+1)x cos(n+2)x-cos(n+1)x sin(n+2)x=
sin(n + 1)x sin ( n+2 )x + cos(n+1)x cos (n+2)x = cos x