Question: Does the "expand" command have a bug?

I wrote a simple expand command in Maple - expand(cos((u - 2*k)*x))

only to get the result

2*cos(x*u)*cos(x*k)^2 + 2*sin(x*u)*sin(x*k)*cos(x*k) - cos(x*u)

The presence of a squared term seems to indicate a bug??

Please Wait...