Equation solving with scipy.optimize.brentq

Question Q8.4.1

Use scipy.optimize.brentq to find the solutions to the equation $$ x + 1 = -\frac{1}{(x-3)^3} $$


Solution Q8.4.1