Find second derivatives of trigonometric, exponential, and logarithmic functions