Problem:

Differentiate the following function:

$\cos \left(\frac{2}{3}-\frac{14 x}{3}\right)-\cos \left(\frac{22}{3}-\frac{14 x^3}{3}\right)$

from sympy import *

x = symbols('x')
print(diff(cos((2/3)-((14*x)/3))-cos((22/3)-((14*x**3)/3)), x))
