Symmetry and periodicity of trigonometric functions