It is necessary to calculate the intervals of increasing / decreasing function.

import sympy as sp import numpy as np def f(x): return (x/(x-1)**2)**(1/3) x = sp.Symbol("x") result = sp.solve(sp.diff(f(x)) > 0) result2 = sp.solve(sp.diff(f(x)) < 0) 

When I run the program, I get the error:

 x**w where w is irrational is not defined for negative x 

How can this be fixed?

    0