Differentiation

Differentiation:

The derivative of a function is a measure of how the function changes as a result of a change in the value of its argument. Given the function f(x), the derivative of f with respect to x is written as df(x)dx or as dfdx(x), and is defined by

dfdx(x)=limΔx→0f(x+Δx)−f(x)Δx

As shown in the figure, the derivative of the function f(x) at point x gives the slope of the function at x in terms of the ratio of the rise divided by the run for the line AB that is tangent to the curve at point x.

Graph of y = f(x). The secant connects the curve at x and x plus delta x, with horizontal run delta x and vertical rise delta f. The dashed tangent AB touches the curve at x. Its slope triangle has a run of 1 and a rise equal to df/dx at x.

The derivative of the function f(x) is also sometimes written as f′(x). As shown in the figure, one can also write the definition of the derivative as

f′(x)=limΔx→0ΔfΔx

The basic rules of differentiation are

ddx[af(x)]=addx[f(x)]whereais a constantddx[f(x)+g(x)]=ddx[f(x)]+ddx[g(x)]ddx[f(x)g(x)]=ddx[f(x)]g(x)+f(x)ddx[g(x)]

The derivative of commonly used functions:

The following is a list of the derivatives of some of the more commonly used functions.

ddx(constant)=0ddx(x)=1ddx(x2)=2xddx(1x)=−1x2ddx(xn)=nxn−1 ddx(sin⁡x)=cos⁡xddx(cos⁡x)=−sin⁡xddx(tan⁡x)=sec2⁡x ddx(ln⁡(x))=1xddx(ex)=ex

The product rule for derivatives:

Consider a function such as f(x)=g(x)h(x) that is the product of two functions. The product rule can be used to calculate the derivative of f with respect to x. The product rule states that

ddx(gh)=dgdxh+gdhdx

For example, to take the derivative of f(x)=(2x+3)(4x+5)2 one can follow these steps

dfdx=ddx[(2x+3)(4x+5)2]=d(2x+3)dx(4x+5)2+(2x+3)d(4x+5)2dx=2(4x+5)2+(2x+3)[2(4)(4x+5)]=2(4x+5)2+8(2x+3)(4x+5)=2(12x+17)(4x+5)

The chain rule for derivatives:

Consider the function f(U), where U is a function of x. One can calculate the derivative of f with respect to x by using the chain rule given by

df[U(x)]dx=df(U)dUdUdx

For example, to calculate the derivative of f(U)=Un with respect to x, where U=x2+a, one can follow these steps

dfdU=dUndU=nUn−1dUdx=d(x2+a)dx=2x⇒dfdx=dfdUdUdx=(nUn−1)(2x)=2nx(x2+a)n−1

MRT review topics