Differentiation

Introduction to Differentiation

Differentiation is a method used to compute the rate of change of a function f(x) with respect to its input x. It is a fundamental tool that quantifies the sensitivity to change of a function's output with respect to its input.

For an equation plotted on a graph, the steepness of that graph's slope is called its derivative.


Let a function f(x) take in an input of x. The rate of change of f(x) per unit change in x is the derivative of that function. There are several ways to provide notation: f'(x), dy/dx, y' etc.

Linear and Non-linear Functions

Functions are classified as two types in calculus:

  1. Linear
  2. Non-linear

A linear function varies at a constant rate through its domain. The overall rate of change of the function is the same as the rate of change of a function at any point. It varies in the case of non-linear functions.

Brief Understanding of Limits

In mathematics, a limit is the value that a function approaches as its argument approaches some value. Limits of functions are essential to calculus. They define continuity, derivatives and integrals.

If a function undergoes an infinitesimal change of 'h' near any point 'x', then the derivative of the function is defined as:

Rules for Derivatives

Sum/Difference rule for derivates:

If f(x) = u(x) + v(x) => f'(x) = u'(x) + v'(x)

Chain rule:

If y = f(x) = g(u) and u = h(x)

dy/dx = dy/du × du/dx

Common Derivatives:


Using these formulae, the derivatives of functions can be calculated If a function is differentiated once, the derivative is a first order derivative f ′(x) If the first order derivative is further differentiated, the function obtained is second order derivative f ′′(x)

Finding Maximum and Minimum Values

Using derivatives, the maximum and minimum value of a given function can also be calculated. For a function f(x), at one point, x will give the maximum and minimum value of the function f(x).

  1. Equate the first order derivative to 0 i.e. f'(x) = 0 and obtain the value of x=c
  2. Then substitute this value in the second order derivative by further differentiating
  3. If f''(x) < 0, the maximum value of f(x) is when x=c
  4. If f''(x) > 0, the minimum value of f(x) is when x=c

Examples

Example 1:

Calculate the maximum possible area of a rectangle that has a perimeter of 116 meters?

Let the length and width be L and W
P = 2L + 2W => 116 = 2L + 2W => = 58 − L
A = L * W => A = L (58 − L) => A = 58L − L2
Let f (x) = 58L − L2 => f ′(x) = 58 − 2L
But f’(x) = 0 => 58 − 2L = 0 => L = 29
Now to find the maximum Area the second derivative is obtained:
f ′(x) = 58 − 2L => f ′′(x) = − 2
As −2 < 0, f’(x) is maximum when L=29
L=29,=58 − L=> = 29
Area A = WL = 29(29) = 841 => Maximum possible Area is 841 m2

Example 2:

Differentiate f(x) = 10x² with respect to x

Using Power rule i.e. Bullet 1 from fig. 1
f ′(x) = 10(2)x1 = 20x => Derivative of f (x) = 10x2 is f ′(x) = 20x

Example 3:

Differentiate f(x) = sin(3x + 5) with respect to x

From fig.1 for f(x) = sin x, f’(x) = cos x
In this equation we have an inner (sin) and an outer (3x + 5) function
Hence we must first differentiate the inner function first and then multiply that with the derivative of the outer function
=> f ′(x) = cos(3x + 5) * (3) => f ′(x) = 3cos(3x + 5)

Example 4:

Differentiate f(x) = tan²x with respect to x

From fig.1 first power rule must be applied to the trigonometric function, and then the trigonometric function should be differentiated
=> f ′(x) = 2tan1x * sec2 x (if f(x) = tan x, f ′(x) = sec2 x) => f ′(x) = 2tan xsec2 x

Example 5:

Determine the slope of the curve f(x) = x³ - x² + 1 at the given point (2, -15)

As mentioned, the slope of a curve is the first order derivative of the equation of the curve To find the slope of this curve at the point (2, -15):
f ′(x) = 3x2 − 2x + 0 => f ′(x) = 3x2 − 2x
At the point (2, -15), substitute the values in the slope equation
3(2)2 − 2(2) = 12 - 4 = 8 => Slope of the curve at the (2, -15) is 8

Excersise Questions


Integration

Introduction to Integration

Integration is essentially the reverse of differentiation. Using differentiation, we can obtain the derivative of the function from the function. Integration is obtaining function from the derivative of that function.

In differentiation the process is: f(x) → f'(x)

In integration the process is: f'(x) → f(x)

Integral is the continuous analog of a sum, which is used to calculate areas, volumes and their generalizations. Integration is used to calculate the area of irregular shapes. On the XY plane, integration helps find the area under a curve or a line which will be discussed later.


Types of Integrals

The symbol ∫ signifies that the operation is an integral operation. There are two types of integrals:

  1. 1. Indefinite - Symbol: ∫
  2. 2. Definite - Symbol: ∮

In an indefinite integral, the limits are not specified. We know that integral is used to calculate the area enclosed under a curve or a line in the XY plane. In indefinite integrals, essentially the extend up to which the area is to be calculated is not specified. Hence, an unknown constant (c) must always be added after performing the operation to specify that the exact area is not known the basis of it is.

In definite integrals, the limits are specified. We know the extent up to which the area is to be calculated. Hence, in definite integrals the unknown constant (c) should not be added after performing the operation as the exact value of the integral (area) will always be obtained.

A typical integral operation is given by ∫f(x)dx where f(x) specifies the function to be integrated and x specified the variable of integration.

Integration Formulas


Examples

Example 1: ∫8x³dx

8∫x³ => 8(x⁴/4) = 2x⁴ + c

Example 2: ∫2xcos(x² - 5)dx

Let x² - 5 = t => 2x = dt/dx => 2xdx = dt

∫2xcos(x² - 5)dx = ∫cos(t)dt = sin(t)

As t = x² - 5, sin(t) = sin(x² - 5) + c

Example 3: ∫(x⁴ + 3x - 9)dx

Splitting into separate integrals:

∫x⁴dx + ∫3xdx - ∫9dx => (1/5)x⁵ + (3/2)x² - 9x + c

Example 4: ∫sec x(sec x + tan x)dx

∫(sec²x + sec(x)tan(x))dx

∫sec²x dx + ∫sec(x)tan(x)dx => tan(x) + sec(x) + c

Example 5:∫8cos(2x)/((sin²x + cos²x)/sin(x)cos(x))dx

=> ∫8cos(2x)/(1/cosxsin x)dx => ∫8cos(2x)/(2/sin(2x))dx =>∫4cos(2x)sin(2x)dx

=> 2∫2sin(2x)cos(2x)dx => 2∫sin(4x)dx

=> 2(-cos 4x)/4 = -cos(4x)/2 + c

Excersises

Calculating Areas

Area enclosed by a curve and the coordinate axes

To calculate the area enclosed by the curve and points on the x axis: Let the points on the x axis be (a, 0) and (b, 0) a and b are the limits To calculate the area enclosed integrate the following curve with the limits a and b with respect to x If the curve is y = f(x)

The area enclosed by it and the lines x=a and x=b is:

Area enclosed by a curve and points on the y-axis

To calculate the area enclosed by the curve and points on the y axis: Let the points on the y axis be (0, a) and (0, b) a and b are the limits To calculate the area enclosed integrate the following cure with the limits a and b with respect to y If the curve is x=f(y)

The area enclosed by it and the lines y=a and y=b is =

Area enclosed between two curves

To calculate the area enclosed between two curves y = f(x) and y = g(x), and x=a and x=b:

Area =

Area Calculation Examples

Example 1: Find the area bounded by the region y² = 4x and x = 3

Area calculation example 1

Example 2: Find the area of the triangular region whose vertices are (2, -2), (4, 3) and (1, 2)

Area calculation example 2

Differential Equations

A differential equation is an equation that relates a function or a set of functions to their derivatives. It contains one or more terms and the derivatives of one variable (dependent) with respect to another. Example:

dy/dx = f(x)g(y) => dy/g(y) = f(x)dx => ∫dy/g(y) = ∫f(x)dx

Order of a Differential Equation:

The order of a differential equation is the order of the highest order derivative present in the equation.

  • dy/dx is of order 1
  • d²y/dx² is of order 2
  • d³y/dx³ is of order 3

Degree of a Differential Equation:

The degree is the power of the highest order derivative where the original equation is represented in the form of a polynomial equation in derivatives such as yʼ, y”, y”ʼ, etc.

  • dy/dx + 1 = 0 is of degree 1
  • (d²y/dx²)³ + dy/dx + 3 = 0 is of degree 3
  • (d³y/dx³)² + (dy/dx)⁵ + (d²y/dx²)² + 4 = 0 is of degree 2

Types of Differential Equations:

  • Ordinary differential equations
  • Partial differential equations
  • Homogenous differential equations
  • Linear differential equations
  • Non-linear differential equations

Solving a Differential Equation:

Example1: Solve the differential equation: dy/dx = (1 + 2x)(1 + y²)

Example2: Solve the differential equation: (1 + y²)(1 + logx)dx + xdy = 0

Example3: Find the solution to the differential equation: dy/dx = 1 + x² + y² + x²y² when y = 1 and x = 0.

Exercise Questions: