Differentiation

Review basic laws of differentiation
Published

September 3, 2024


1 The idea of differentiation

  • Differentiation is used to analyze the rate at which a function changes with respect to one of its variables at a given point.

  • Let f(x) be a function of x that is represented graphically in Figure 1.

  • The line segment connecting the points A and B on the curve is known as the chord (Figure 1a).

  • The gradient (i.e., slope) of the chord is defined as the ratio of the change in y to the change in x between points A and B and is equal to tanθ.

    • Gradient of the chord=tanθ=ΔyΔx=f(xB)f(xA)xBxA.
  • Assume that the point B moves closer and closer to the point A on the curve (B becomes C, Figure 1b)until it coincides with A (Figure 1c).

  • In Figure 3c, the chord becomes a line segment that just touches the curve at A. This line is referred to as the tangent to the curve at A.

(a) Chord between points A and B
(b) Chord between points A and C
(c) Tangent at A
Figure 1: Graph of a function f(x) showing the chord between two points A and B and the tangent at A
  • The gradient of the tangent at A is also known as the instantaneous rate of change of the function f(x) at A.

  • Let’s now assume two points on the curve, A=(x,f(x)) and B=(x+h,f(x+h)):

    • From the above discussion, the gradient of the chord connecting A and B is ΔyΔx=f(x+h)f(x)(x+h)x=f(x+h)f(x)h.

    • To find the gradient of the tangent at A, we need the point B to become closer and closer to point A (approaches A) meaning that h approaches zero.

    • This can be expressed as limh0f(x+h)f(x)h.

    • The above limit is referred to as the derivative of the function f(x) with respect to x and is denoted by f(x) or dfdx.

Find the derivative of the function y=x3 with respect to x

  • Using the definition of the derivative as a limit:

y=dydx=limh0(x+h)3x3h= limh0x3+3x2h+3xh2+h3x3h=

limh0h(3x2+3xh+h2)h=

3x2+3x×0+02=3x2

2 Rules of differentiation

  • First principles (i.e., the definition of the derivative as a limit) are rarely used to find the derivative of a function. Instead, there are a set of rules that can be used to find the derivative of different functions:
Table of derivatives of basic functions
Function y Derivative(dydx)
Constant k 0
x 1
kx k
xn nxn1
kxn knxn1
ex ex
ekx kekx
lnx 1x
lnkx 1x

2.1 Extending the rules of differentiation

2.1.1 Differentiation of a sum or difference of functions

  • The derivative of f(x)±g(x) is equal to dfdx±dgdx.

2.1.2 Differentiation of a product of functions

  • Let y=f(x)g(x), the derivative is dydx=f(x)g(x)+f(x)g(x)=dfdxg(x)+f(x)dgdx.

2.1.3 Differentiation of a quotient of functions

  • Let y=f(x)g(x), the derivative is dydx=f(x)g(x)f(x)g(x)(g(x))2.

Find the derivative of the function y=2x31x+3x2 with respect to x

y=2x3x12+3x2 y=dydx=6x2+12x326x3=6x2+12x36x3

Find the derivative of the function y=e2xe5x with respect to x

y=dydx=2e2x+5e5x

Find the derivative of the function y=exx2 with respect to x

  1. Using the product rule:

y=exx2=x2ex

dydx=2x3ex+x2ex=exx3(2+x)=ex(x2)x3

  1. Using the quotient rule:

y=exx2

dydx=exx2ex(2x)(x2)2=exx(x2)x4=ex(x2)x3

  • Both methods yield the same result.

Find the derivative of the function y=ln(5t)et+1t3 with respect to t

y=ln(5t)et+t13 y=dydt=1tet13t43=1tet13t43

3 Chain rule

  • This method is used to find the derivative of a composite function (i.e., a function within a function), e.g., ex3+4x represents the exponential function of a polynomial.

  • The composite function is denoted by y=f(g(x)). So, in the above example, f(g)=eg and g(x)=x3+4x.

  • Let y=f(g(x)), the chain rule states that the derivative is dydx=dfdg×dgdx=f(g(x))×g(x).

Find the derivative of the function y=ex3+4x with respect to x

f(g)=eg,g(x)=x3+4x f(g)=eg,g(x)=3x2+4 dydx=ex3+4x(3x2+4)

Find the derivative of the function y=(2x2+3x)3 with respect to x

f(g)=g3,g(x)=2x2+3x

f(g)=3g2,g(x)=4x+3 dydx=3(2x2+3x)2(4x+3)

4 Higher derivatives

  • The derivative dydx of the function y=f(x) is referred to as the first derivative.

  • If the first derivative is differentiated again, the result is referred to as the second derivative and is denoted by d2ydx2 or f(x).

  • Similarly, the third derivative is d3ydx3 or f(x), and so on.

  • The second and the higher derivatives are referred to as higher derivatives.

  • Example: Let y=x4+2x2+6x+7:

    • dydx=y=4x3+4x+6.

    • d2ydx2=y=12x2+4.

    • d3ydx3=y=24x.

5 Partial derivatives

  • If the function contains more than one variable, the derivative with respect to one variable, keeping the other variables constant, is referred to as a partial derivative.

  • Example: Let z=f(x,y)=x3+4xy+y2:

    • The partial derivative of z with respect to x is zx=3x2+4y (keeping y constant).

    • The partial derivative of z with respect to y is zy=4x+2y (keeping x constant).

Find the derivative of the function f(x,y)=x2yln(xy2) with respect to x


fx=2xyln(xy2)+x2y×1x=2xyln(xy2)+xy=xy(2ln(xy2)+1)

6 Implicit differentiation

6.1 Difference between explicit and implicit functions

6.1.1 Explicit function

  • y is said to be an explicit function of x if variable y is separated on one side of the equation and x is on the other side.

  • Example: y=2x2+3x+4.

6.1.2 Implicit function

  • y is said to be an implicit function of x if the variables x and y are not separated on either side of the equation (i.e., x and y are mixed).

  • Example: x2+y2=25.

  • In the above example, the terms can be rearranged to make y explicit, but in some cases, this rarrangement to separate x and y is not possible.

  • In such cases, the derivative of y with respect to x can be found using the implicit differentiation method without the need to obtain y in terms of x explicitly.

6.2 The method of implicit differentiation

  • Let x3+2y=1+y2, implicit differentiation can be used to find dydx as follows:

    • Differentiate both sides of the equation with respect to x:

      • Left side: ddx(x3+2y)=3x2+2dydx.

      • Right side: ddx(1+y2)=0+2ydydx.

      • Equate the two sides: 3x2+2dydx=2ydydx3x2=2ydydx2dydx3x2=2dydx(y1).

      • Therefore, dydx=3x22(y1).

        Note
        • The derivative of y2 on the right side was found using the chain rule.

        • This is considered as a function of function.

        • f(y)=y2f(y)=2y and y(x)=yy(x)=dydx.

        • Using the chain rule: ddx(y2)=f(y)y(x)=2ydydx.

Find the derivative dydx of the function x43xy=6

  1. Rearrange the equation to express y explicitly:

x43xy=6y=x463x(apply quotient rule)

dydx=4x3×3x3(x46)(3x)2=12x43x4+189x2=9x4+189x2=x2+2x2

  1. Using implicit differentiation:

ddx(x43xy)=ddx(6)

4x33y3xdydx=0

3xdydx=4x33y

dydx=4x33y3x

  • If y cannot expressed explicitly in terms of x, then dydx contains both x and y terms.

  • However, in this particular example, y can be expressed explicitly in terms of x.

  • Therefore, we can simplify the derivative dydx by substituting y=x463x into the equation.

dydx=4x33y3x=4x33(x463x)3x=x2+2x2

  • Both methods yield the same result.

7 References


8 Add your comments

Back to top