Problem:

Find the second derivative of the following function:

$\log \left(8-\frac{3 x}{2}\right)-\cos ^{-1}\left(-\frac{7 x}{2}-\frac{9}{2}\right)$

from sympy import *

x = symbols('x')
f = log(8-((3*x)/2))-acos(-((7*x)/2)-(9/2))
print(diff(f, x, 2))
