TeX source:
A\cos kx+B\sin kx