Open in CoCalc
f(x) = x^3 + x - 4;f
x |--> x^3 + x - 4
g(x) = f.derivative()
plot([f,g],[x,-5,5])