Differentiation
Calculus is the study of change or changing quantities. Mathematical topics besides Calculus, like Arithmetic, Algebra, Geometry and Trigonometry involve unchanging quantities. In algebra, for example, any unknown quantities are usually fixed real numbers that we wish to solve for. Calculus is based on differentiation and integration. Therefore, the main use for differentiation is to find the gradient of a function at any point on the graph.
Differentiation is the process of finding a derivative, the calculus name for the slope or steepness of a curve. The slope is a simple rate, like kilometers per hour. Slope, as we learned in algebra, is the change in y divided by the change in $x$, or rise over run. As we will see, the slope for any shape (except a straight line) is constantly changing but can be described as an equation. In calculus, we look for the instantaneous rate of change  the slope of the line tangent to a curve at a single point.
Integration is used to find the area between the graph of a curve and the xaxis. It is really the process of cutting up an area into small sections and then adding up all of these small sections to get the total area. For example, you can easily calculate the area of a simple rectangle, but to calculate the area under a curve it is difficult because you do not have an area formula for this unusual shape. Differentiation can be used in this case.
Most of our discussion will be on differential calculus. In differential calculus, the basic problem is finding the slope of the tangent line to a curve at a given point on the curve. This problem is the core of differential calculus since this slope tells how fast the output variable of the function is changing with respect to the input variable. Solving this problem lets us find the instantaneous rate of change of $y=f(x)$ with respect to $x$, which is the derivative. The slope of a line connecting two points is a ratio of the rise to the run, which is a ratio of the vertical distance between the points to the horizontal distance between the two points.
The process of differentiation
Consider the following two functions:
$y = x$
$y = x^2$
The first function is a linear function and so the graph will produce a straight line. The second function is not linear and the graph will not be a straight line but a ushaped curve.
We can find the slope or coefficient of both of the above functions. We can do this by differentiation. In the first function, the slope of the line as mentioned above is constant and will not change for changes in output. Therefore, for the function $y = x$, the slope is 1 or constant. If $x$ increases by $m$, $y$ will change by exactly $m$ so $m = 1$. However, in the function $y = x^2$, if $x$ changes by $m$, $y$ will change by 2 not 1.
This is so because the process of differentiation requires that the exponent is brought before the variable and 1 is minus from the original exponent. For example,
If $y = x^2$,
then the differentiation of this function is: $2x$ or $2x^{21=1} = 2x^1 = 2x$. The numerical value before the x is the coefficient which is the slope. The differentiation of $y = x$
is $y = 1x^{11=0}$
$y = x^0$
$y = 1$
Basic Rules for Differentiation

The Power Rule
This is simply the example that we used above which is bringing the exponent before the variable and subtracting 1 from the original exponent.
Examples: Function Derivative y = x^{10}
y = x^{2 }
y = √x or (x ^{½})
y = 3x^{2}
y = 7x^{5}
y = ½ x ^{9}
y’ = 10x^{101=9 } = 10x^{9}
y’ = 2x^{21=1 }= 2x
y’ = ½ x ^{1/2 1 = 1/2 }= ½ x ^{1/2}
y’ = 2 (3) x^{21=1} = 6x
y’ =  5 (7) x ^{51=4} =  35x^{4}
y’ = 9/2 x ^{8}

Addition Rule
Examples: y = x^{3 } + 6x^{4}
y = 1/6x^{2 } + 12x^{5}
y = 3x^{4 } + 10x^{2 }+ 9x^{4}
y’ = 3x^{2} + 24x ^{3}
y’ = 1/3x + 60x^{4}
y’ = 12x^{3 }+ 20x + 36x^{3}
The derivative of a constant is zero and a constant is a number by itself.
y = x^{3 }+ 8
y = 1/3 x^{3 }– 5
y’ = 3x^{2 }+ 0 = 3x^{2}
y’ = x^{2 }  0 = x^{2}

Product Rule
$f$ times derivative of $g + g$ times the derivative of $f$,
where the first part of the problem is $f$ and the second part is $g$.
Example:
$y = (8x + 4) (2x^3 + 6)$
Solution:
In this case, $(8x + 4)$ is “$f$ “ and $(2x^3 + 6)$ is the “$g$”.
So the derivative of the above is as follows where we use the normal power rule:
$(8x+4) (6x^2) + (2x^3 + 6) (8) =$
$48x^3 +24x^2 + 16x^3 + 48 =$
$64x^3 + 24x^2 + 48$

Quotient Rule
In this case, the rule is $g$ times derivative of $f  f$ times the derivative of $g$ divided by $g_2$ where $g$ is the denominator and $f$ is the numerator.
Examples: y = 3  2x
3 + 2x
y’ = (3+2x) 2  (32x) • (2)
(3+2x)^{2}
= (6)  (4x)  6 + 4x
(3 + 2x)^{2}
= 12
(3 + 2x)^{2}

Chain Rule  function of a function – this is the power rule times the derivative of the function inside of the brackets.
Example:
$y = (2x + 8)^4$
Solution:
$y = 4(2x + 8)^3 . 2$
Example: $y = \sqrt[3]{(1  9x)}$
Solution: $y = (1 – 9x) ^\frac{1}{3}$
$y’ = \frac{1}{3} \left( 1 – 9x \right) ^  \frac{2}{3}$ times 9
Using Differential to find the Equation of a Line
Having found the gradient at a specific point using differentiation, we can use our coordinate geometry skills to find the equation of the tangent to the curve.
Procedure:
 Differentiate the function.
 Put in the xvalue into dy/dx to find the gradient of the tangent.
 Put in the xvalue into the y function to find the coordinates of the point where the tangent touches the curve.
 Put these values into the formula for a straight line:
y  y_{1} = m (x  x_{1})
where m = gradient and (x_{1}, y_{1}) is where the tangent meets the curve.
Example:
Find the equation of the tangent to the curve y = x^{2}  4x  5, when x = 1:
Solution:
Finding the derivative of the above gives:
$ \frac{dy}{dx} = 2x – 4$ and so when $x = 1$
$ \frac{dy}{dx} = 6$ which is the slope or m.
When $x = 1$ and when we substitute this x into the original equation:
$y = x^2  4x  5$
we get y = 1 + 4  5 = 0 giving x and y values of (1, 0)
Therefore, the equation of the tangent using the equation:
y  y_{1} = m (x  x_{1}) is
y − 0 = 6 (x  1) is
y − 0 = 6 (x + 1)
resulting in:
y = 6x  6
So now we know that y = 6x  6 is the equation of the tangent at (1, 0).
Stationary Points
Differentiation is useful to find one of the main features of the graph which is the stationary points.
These are points where the gradient = 0.
There are three types of stationary point:
Stationary points can be found by finding the second derivative which is denoted as:
$ \frac{d^2y}{dx^2}$
The criteria are as follows:
$ \frac{d^2y}{dx^2}$ > 0, there is a minimum
$ \frac{d^2y}{dx^2}$ < 0, there is a maximum
$ \frac{d^2y}{dx^2}$ = 0, there could be a minimum, maximum or an inflection
Example:
Find the coordinates and nature of the turning points of the curve $y = 4x^3 − 12x + 2$
Solution:
We need to find the stationary points so we will need to find the gradient at 0.
First we need to find the first derivative of the function,
$y = 4x^3 − 12x + 2$
which is:
$\begin{equation}\begin{aligned} \frac{dy}{dx} &= 12x^2  12 \\ &= 12 ( x^2  1 ) \\ &= 12(x + 1) (x  1) \end{aligned}\end{equation}$
Therefore, $\frac{dy}{dx} = 0$ when
$x = 1$ and $x = 1$
or $(1, 6)$ and $(1, 10)$
The second derivative or
d^{2} y
____ = 24x
dx^{2}
when x = 1,
d^{2} y
____ = 24 (1) = 24 > 0
dx^{2}
Therefore there is a minimum at (1, 6)
d^{2} y
____ = 24x
dx^{2}
when x = 1,
d^{2} y
____ = 24 (1) = 24 < 0
dx^{2}
Therefore there is a maximum at (1, 10).
Differentiation of Trigonometric Functions
The following are the rules for the differentiation of trigonometric functions:
D{sin x} = cos x
D{cos x} =  sin x
D{tan x} = sec^{2 }x = 1
cos^{2}x
D{sec x} = sec x tan x
D{csc x} =  csc x cot x
D{cot x} =  csc^{2} x =  1
sin^{2 }x
D{arcsin x} = $ \frac{1}{\sqrt{sin^2x}}$
D{arcsin x} = 1
√(1 – x^{2})
D{arccos x} =  1
√(1 – x^{2})
D{arctan x} = 1
1 + x^{2}
D{arcsec x}= 1
x √ (x^{2 } 1)
D{arccsc x}= 1
x √ (x^{2 } 1)
D{arccot x}=  1
1 + x^{2}
Example:
Differentiate cos³x with respect to x.
Solution:
We can apply the chain rule for this question.
Let y = cos³x
Let u = cos x
therefore y = u³
dy = 3u²
du
du = sin x
dx
dy = du × dy
dx dx du
= sin x × 3u²
= sin x × 3cos²x
= 3cos²x sin x
Example:
Differentiate y = csc x cot x
The product rule can be applied here.
Solution:
y’ csc x D{cot x} + D{csc x}cot x
= csc x ( csc^{2 }x) + ( csc x cot x) cot x
=  csc^{2} x – csc x cot^{2} x
=  csc x (csc^{2} x + cot^{2} x)
Example:
Differentiate y = x^{2 }tan x
Solution:
y’ = x^{2 }D{tan x} + D{x^{3}}tan x
= x^{2 }(sec^{2 }x + 3 tan x)
Example:
Differentiate y = 5 sin x – 4 cos x
Solution:
y’ = 5 D{sin x) – 4 D{cos x}
= 5 (cos x) – 4 ( sin x)
= 5 cos x + 4 sin x
Integration
There can be indefinite integration and definite integration.
Indefinite Integration
Integration is the inverse of differentiation. In other words, if you reverse the process of differentiation, you are doing integration. The following example shows it:
y = x^{2}
dy/dx = 2x
So, $ \int \left(\frac{dy}{dx}\right) dx = \int 2x dx = x^2$
$\int$ is the integration sign and it goes hand in hand with dx and indicate the integration of the function with respective to x. The outcome of the integration is called integral.
The following are some examples of differentiation:
y = x^{3} => dy/dx = 3x^{2}
y = x^{2} + 6 => dy/dx = 2x
y = x^{2}  8 => dy/dx = 2x
An issue arises when it comes to integration:
We are not sure about the exact solution of ∫ 2x dx; it can be any of the above three: y = x^{2} or y = x^{2} + 6 or y = x^{2}  8
In order to deal with the uncertainty, we denote the basic integration as follows: ∫ (dy/dx) dx = y + c where c is an arbitrary constant.
With regard to the above example,
∫ 3x^{2} dx = x^{3} + c, where c can be 0, 6 or 8
c shows uncertainty; it can take any value which is not certain at the time of integration. Therefore, the result is called indefinite integral.
Formula for integration: ∫ x^{n} dx = x^{n+1}/n+1 + c
Example:
∫x dx
Solution:
x^{1+1}/1+1 + c
= x^{2}/2 + c
Example:
∫x^{2} dx
Solution:
$ \frac {x^{2+1}}{2+1} + c $
$ = \frac {x^3}{3} + c $
Example:
$ \int {a} dx = \int a (1) dx $
Solution:
$ a \int {x^0} dx $
$ = a \frac {x^{0+1}}{0+1} + c $
$ = ax + c $
Example:
$ \int x^{\frac {1}{2}} dx $
Solution:
$ \frac {x^{\left( \frac {1}{2} + 1\right) }}{\left( \frac {1}{2} + 1\right) } + c $
$ = \frac {x^{\frac {3}{2}}}{\frac {3}{2}} + c $
$ = \frac {2x^{\frac {3}{2}}}{3} + c $
Example:
Integrate $ y = \left( 3x + 4 \right) ^7 \cdot dx $
Solution:
We have, $ I = \int \left( 3x + 4 \right) ^7 \cdot dx $
Since the expansion of the binomial, $ (3x + 7)^7 $ will contain more number of terms, we can integrate by substitution.
Substituting , $ u = 3x + 4 $
We get $ \frac {du}{dx} = 3 $
$ \Rightarrow du = 3 \cdot dx $
$ \Rightarrow dx = \frac {du}{3} $
Substituting in the given integral we get,
$ I = \int \left( 3x + 4 \right) ^7 \cdot dx $
$ = \int {u^7 \cdot \frac {du}{3}} $
$ = \frac {1}{3} \int u^7 \cdot du $
$ = \frac {1}{3} \cdot \frac {u^8}{8} + C $
$ \int \left( 3x + 4 \right) ^7 \cdot dx = \frac {1}{24} \cdot \left( 3x + 4 \right) ^8 + C $
Example:
Evaluate $ \int \left( 5x^4 + 8x^3  6x^2 + 2x + 10 \right) dx $
Solution:
We have $ \int \left( 5x^4 + 8x^3  6x^2 + 2x + 10 \right) dx $
Using the formula $ \int x^n dx = \frac {x^{n+1}}{ \left( n+1 \right)} $
We will get:
$ \int \left( 5x^4 + 8x^3  6x^2 + 2x + 10 \right) dx = \frac {5x^5}{5} + \frac {8x^4}{4}  \frac {6x^3}{3} + \frac {2x^2}{2} + 10x + C $
$ = x^5 + 2x^4  2x^3 + x^2 + 10x + C $
Example:
Evaluate $ \int { \frac {5}{3x  7}} \cdot dx $
Solution:
We have $ I = \int { \frac {5}{3x  7}} \cdot dx $
Substituting $ u = 3x  7 $,
we get $ \frac{du}{dx} = 3 $
$ \Rightarrow du = 3 \cdot dx $
$ \Rightarrow dx = \frac {du}{3} $
Substituting in the given integral, we get,
\begin{align} I & = \int { \frac {5}{3x  7}} \cdot dx \\ & = \int { \frac {5}{u} \cdot \frac {du}{3} } \\ & = \frac {5}{3} \int { \frac {1}{u} \cdot du} \\ & = \frac {5}{3} \cdot \ln u + C \end{align}
$$ \int { \frac {5}{3x  7} \cdot dx} = \frac {5}{3} \cdot \ln  \left( 3x 7 \right)  + C $$
Definite Integration
When we are calculating the area under a curve in a given interval, we are using definite integration as in the following example.
Example:
Evaluate,
$ \int_2^1 x^2 \,dx$
Solution:
We have $ I = \int_2^1 x^2 \,dx$
We know that $ \int x^2 \,dx = \frac {x^3}3 $
Therefore, we have $ F(x) = \frac {x^3}3 $
$ F(2) = \frac {2^3}3 = \frac {8}{3} $ and
$ F(1) = \frac {1^3}3 $
$ = \frac {1}{3} $
so we have $F(2)  F(1) = \frac {8}{3} – \frac {1}{3} = \frac {7}{3} $
Example:
Integrate $ y =  x^2 + 5 $ from $ (2, 2) $
Step 1: set up the interval.
$$ \int_b^a f(x) \,dx = \int_2^{2} \left( x^2 + 5 \right) \,dx $$
Step 2: Find the integral.
$$ \int_2^{2} \left( x^2 + 5 \right) \,dx =  \frac {1}{3} x^3 + 5x $$
Step 3: Integrate from the given interval $(2, 2)$
$$ \int_2^{2} F(x) = dx F(2)  F(2) $$
\begin{align} \int_2^{2} f(x) & = \left[ 1 \frac { \left( 2 \right) ^3}{8} + 5 \left( 2 \right) \right]  \left[ 1 \frac { \left( 2 \right) ^3 }{8} + 5 \left( 2 \right) \right] \\ & = \left[  \frac {8}{3} + 10 \right]  \left[ \frac {8}{3}  10 \right] \\ & = \left[ \frac {22}{3} \right]  \left[  \frac {22}{3} \right] \end{align}
Therefore, the area of the curve to the x axis from $2$ to $2$ is $ \frac {44}{3} $ units squared.