TeX source:
 x=x_\mathrm{max}\cos(\omega t+\phi)