Problem:

Find the second derivative of the following function:

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

from sympy import *

x = symbols('x')
f = log((1/2)-8*x**3)-cos((x/2)+3)
print(diff(f, x, 2))
