Why does TrigExpand[Cos[a+b]] return the familiar and expected
Cos[a] Cos[b] - Sin[a] Sin[b]
but TrigExpand[Cos[2 Pi n x + b]] return
Cos[b] Cos[n \[Pi] x]^2 - 2 Cos[n \[Pi] x] Sin[b] Sin[n \[Pi] x] - Cos[b] Sin[n \[Pi] x]^2?
I would have thought that Mathematica would group the terms into a single constant.
I can of course perform TrigExpand[Cos[a+b]] /. a -> 2 Pi n x,
but that seems rather inelegant.





Detailssection:TrigExpand splits up sums and integer multiples that appear in arguments of trigonometric functions, and then expands out products of trigonometric functions into sums of powers, using trigonometric identities when possible.$\endgroup$