Phase shifts of trigonometric functions