Derivative ,
The derivative measures how much a value changes with respect to another. For a function , we can ask how much the value changes, if we change a tiny amount.
The notations ("f prime of x") and ("df [over] dx") mean the same thing. The first one is often used in basic 1D calculus, the second is probably seen more often higher dimensional variants and physics. The "d" is a "differential" quantity, more or less meaning "something very very small".
There are a few different notations, but mainly we have:
The is a so called limit and means "let h approach 0". When using a computer, we can't do that (we can with symbolic and automatic differentiation, but not with the simple method) actually compute this. Instead, we approximate this by using a small value of . How do we choose the value of h? Well, that can be more complicated, so usually you will see some slightly hacky fixed value, that is "very" small, like . As stated before, this is a very simple code that works, but could be improved in many ways, if needed.
So in math notation, that is called the "difference quotient":
Code: