coolbeans33 said:
I don't understand this concept very well. So suppose I want to find the derivative of the function f(x)=2. is the answer just zero?
what if I want to find f'(x)=2x, or f'(x)=2x3?
please explain how to get the answer step by step, is there some equation I use or something? I just don't get it!
let's find (somewhat) formally, the derivative of $f(x) = 2x^n$, and then I'll answer your first question informally.
By definition:
$\displaystyle f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}$
$\displaystyle = \lim_{h \to 0} \frac{2(x+h)^n -2 x^n}{h}$
$\displaystyle = \lim_{h \to 0}\frac{2x^n + 2nx^{n-1}h + \cdots + 2nxh^{n-1} + 2h^n - 2x^n}{h}$
$\displaystyle = \lim_{h \to 0} \frac{2h(nx^{n-1} + \cdots + nxh^{n-2} + h^{n-1})}{h}$
(all the terms in the "..." part contain a factor of $h$)
$\displaystyle = \lim_{h \to 0} 2nx^{n-1} + h(\text{other terms})$
$ = 2nx^{n-1} + 0\ast(\text{who cares?}) = 2nx^{n-1}$.
However, for $n = 0$ there is an easier way:
If $f(x) = 2$ (for ALL $x$), then:
$\displaystyle f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}$
$\displaystyle = \lim_{h \to 0} \frac{2 - 2}{h} = \lim_{h \to 0} \frac{0}{h} = 0$.
*************
Informally, the derivative $f'(a)$ measures the rate of change (or SLOPE) of the function $f$ at the point $a$. If $f$ is a constant function, it never changes, it remains constant, so its rate of change is 0 (no change) at every point $a$.