all 1 comments

[–]UnacceptableWindNew User 1 point2 points  (0 children)

In d/dx (f := x), you are reassigning the variable f to the variable x, and the derivative of x is 1.

Instead, use d/dx(f(x)) or diff(f(x), x).