Question: I forgot how to turn D or diff into a function...

I googled everywhere for this and most results just tell me what diff and D does...

 

Basically I have a function, let's say

 

f:= x -> x^2

How do I turn the derivative of f into a function?

 

I tried

 

fprime := x -> diff(x^2,x)

 

But tihs just shows me diff(x^2,x), instead of x -> 2x

Please Wait...