Derivatives
The Derivative As a Limit
The derivative of the function f at the point x is defined as:
limh→0hf(x+h)−f(x)
if this limit exists.
Details
The derivative of the function f at the point x is defined as
limh→0hf(x+h)−f(x)
if this limit exists.
When we write y=f(x), we commonly use the notation dxdy or f′(x) to denote the derivative.
The Derivative of f(x)=a+bx
If
$f(x)=a+bx
then
f(x+h)=a+b(x+h)=a+bx+bh
and thus
limh→0hf(x+h)−f(x)=h→0limhbh=b
Details
If
f(x)=a+bx
then
f(x+h)=a+b(x+h)=a+bx+bh
and thus
limh→0hf(x+h)−f(x)=h→0limhbh=b
Thus
f′(x)=b
The Derivative of f(x)=xn
If
f(x)=xn
then
f′(x)=nxn−1
Details
Let f(x)=xn, where n is a positive integer.
To calculate f′ we use the binomial theorem in the third step:
hf(x+h)−f(x)=h(x+h)n−xn=hq=0∑n−1(qn)xqhn−q=q=0∑n−1(qn)xqhn−q−1=(n−1n)xn−1=nxn−1 Thus, we obtain f′(x)=nxn−1.
The Derivative of Ln and Exp
If
f(x)=ex
then
f′(x)=ex
If
g(x)=ln(x)
then
g′(x)=x1
Details
The derivatives of the exponential function is the exponential function itself.
That is, if
f(x)=ex
then
f′(x)=ex
The derivatives of the natural logarithm, ln(x), is x1.
That is, if
g(x)=ln(x)
then
g′(x)=x1
The Derivative of a Sum and Linear Combination
If f and g are functions then the derivative of f+g is given by f′+g′.
Details
Similarly, the derivative of a linear combination is the linear combination of the derivatives.
If f and g are functions and k(x)=af(x)+bg(x) then k′(x)=af′(x)+bg′(x).
Examples
If
f(x)=2+3x,g(x)+x3
then we know that
f′(x)=3,g(x)=3x2
and if we write
h(x)=f(x)+g(x)=2+3x+x3
then
h′(x)=3+3x2
The Derivative of a Polynomial
The derivative of a polynomial is the sum of the derivatives of the terms of the polynomial.
Details
If
p(x)=a0+a1x+⋯+anxn
then
p′(x)=a1+2a2x+3a3x2+4a4x3+⋯+nanx(n−1)
Examples
If
p(x)=2x4+x3
then
p′(x)=2dxdx4+dxdx3=2⋅4x3+3x2=8x3+3x2
The Derivative of a Product
If
h(x)=f(x)⋅g(x)
then
h′(x)=f′(x)⋅g(x)+f(x)⋅g′(x)
Details
Consider two functions, f and g and their product, h :
h(x)=f(x)⋅g(x)
The derivative of the product is given by
h′(x)=f′(x)⋅g(x)+f(x)⋅g′(x)
Examples
Suppose the function f is given by
f(x)=xex+x2lnx
Then the derivative can be computed step by step as
f(x)=dxdxex+xdxdex+dxdx2lnx+x2dxdlnx=1⋅ex+x⋅ex+2x⋅lnx+x2⋅x1=ex(1+x)+2xlnx+x Derivatives of Composite Functions
If f and g are functions and h=f∘g so that\ h(x)=f(g(x)) then h′(x)=dxdh(x)=f′(g(x))g′(x)
Examples
For fixed x consider:
f(p)=ln(px(1−p)n−x)=lnpx+ln(1−p)n−x=xlnp+(n−x)ln(1−p) Then the derivative is computed as follows:
f′(p)=xp1+1−pn−x(−1)=px−1−pn−x For fixed x and y consider
f(b)=(y−bx)2
Then the derivative is computed as follows:
f′(b)=2(y−bx)(−x)=−2x(y−bx)=(−2xy)+(2x2)b