Write a program to do symbolic differentiation. Use the following formulas:

An example of application of these rules is given below for differentiation with respect to x:

First, run your program for polynomials only, and then add formulas for derivatives for trigonometric functions, logarithms, and so on, that extend the range of functions handled by your program.
We need at least 8 more requests to produce the solution.
2 / 10 have requested this problem solution
The more requests, the faster the answer.