Calculus Notes
Calculus Notes
2024/2025
A. Differential Calculus
1. Derivative of functions
1.1 Definition of Derivative
Derivative of functions can be defined as instantaneous rate of change of a function at a
specific point. Mathematically, the derivative of f (x) with respect to x is the function f (x) which
is defined as,
f ( x +h )−f (x )
f x=lim
h →0 h
Examples: By using derivative definition find derivative of
2
i. f ( x )=x −2
ii. f ( x )= √ x
iii. f ( x )=3 x 2 +12 x −8
x
iv. f ( x )=
x +2
v. sin x
vi. cos x
vii. tan x
viii. xsin x
2
ix. x cos x
x. xtan2 x
1
dy
a) Leibniz's notation whereby y=f (x )
dx
b) Lagrange's notation f ' ( x )∨ y '
c) Newton's notation ẏ
d d d
2. ( f (x) ± g ( x) ) = f (x )± g( x )
dx dx dx
d df dg
3. Product rule: ( fg ) =g +f
dx dx dx
df dg
g (x) −f
4. Quotient rule: d f
dx g
= () dx
g
2
dx
Examples:
1. Find the derivative of sin x , cos x , tan x , cot x , sec x and cosec x .
df f ( x +h ) −f (x )
From =lim but f (x)=sin x
dx h → 0 h
d sin ( x +h ) −sin x
sin x=lim
dx h→ 0 h
sin x cos h+cos x sin h−sin x
¿ lim
h→ 0 h
sin x (cos h−1)+cos x sin h
¿ lim
h→ 0 h
cos h−1 sin h
¿ lim sin x + lim cos x
h→ 0 h h →0 h
¿ sin x ( 0 ) +cos x (1 )
2
¿ cos x
sin x
3. For tan x it is known that tan x= , which follows that
cos x
d
dx
tan x=
d sin x
dx cos x ( )
d d
cos x sin x−sin x cos x
dx dx ( by using the quotient rule)
¿ 2
cos x
2 2
cos x+ sin x
¿ 2 but cos 2 x +sin2 x=1
cos x
d 1 2
Therefore tan x= =sec x
dx 2
cos x
We can use the derivative function and other mathematical facts to obtain the derivatives for
the other trig functions.
d d
a) sin nx=ncos nx eg. sin 3 x=3 cos 3 x
dx dx
d d
b) cos nx =−nsin x eg cos √ 7 x=−√ 7 sin √ 7 x
dx dx
2
d 2 d 1 1 1
c) tan nx=nsec nx eg. tan x= sec x
dx dx 3 3 3
d d
d) secnx =n sec nx tan nx eg. sec2 x=2 sec 2 x tan2 x
dx dx
d 2 d 2
e) cot nx=−ncsc nx eg. cot 4 x=−4 csc 4 x
dx dx
d d
f) csc nx=−ncsc nx cot nx eg. csc 5 x=−5 csc 5 x cot 5 x
dx dx
3
1.5 Derivative of inverse trigonometric functions
' 1
Note that, two functions f (x) and g(x ) are inverses if g (x)= ' or g ( f ( x ) )=x and
f (g ( x ) )
f ( g ( x ) )=x . Let us apply these facts to obtain the derivatives of inverse sine, cosine and
tangent.
sin ( sin−1 x )=x and sin ( sinx )=x , so their inverse to each other.
−1
' 1
From g (x)= ' we have
f (g ( x ) )
' 1
g (x)= −1
cos (sin x )
1
¿
cos( y)
' 1
g (x)= but sin y=x
√1−sin2 y
d 1
Therefore g ( x ) = dx ( sin x )=
' −1
√1−x 2
We can employ the same and other known facts to show that
i.
d
( cos−1 x ) = −1 2
dx √1−x
d
ii. ( tan−1 x ) = 1 2
dx 1+ x
iii.
d
( cot−1 x )= −1 2
dx 1+ x
d 1
iv. ( sec−1 x ) =
dx | x|√ x 2−1
4
v.
d
( csc −1 x )= −12
dx |x|√ x −1
Example:
−1 −1
f ( x )=7 sin x + tan 3 x
Solution
df d −1 −1
= (7 sin x + tan 3 x )
dx dx
d
¿ ( 7 sin−1 x ) + d ( tan−1 3 x)
dx dx
7 1
¿ +
√1−x 2
1+ 9 x
2
d x
a) ( a )=a x ln a
dx
d 1
b) ( ln x )= x >0
dx x
d 1
c) ( ln|x|) = x ≠ 0
dx x
d)
d
dx
( log a x ) =
d ln x
dx ln a( )
=
1
x ln a
So far we have seen some properties of differentiation which can also regarded as methods of
integration (power, product and quotient rules). Due to some complexity of functions those
properties cannot be used alone instead some additional methods are needed to simplify the
5
differentiation process. In this module we learn one more method which is Chain rule of
differentiation.
dy dy du
=
dx du dx
y= √ x 2−3 x +5
Solution
dy 1 du
= and =2 x−3
du 2 √u dx
dy dy du
From =
dx du dx
dy 2 x−3
Then = but u=x2 −3 x +5
dx 2 √ u
dy 2 x−3
=
dx 2 √ x 2−3 x+5
From above example it can be noticed that, the derivative of the composite function
F (x)=(f o g)(x ) is given by
d ' '
F (x)=f (g ( x ))g ( x)
dx
This can be thought to be a composite function whereby g ( x )=x 2−3 x+5 and f ( x )=sin x . This
implies that h ( x )=f ( g ( x ) ) =sin ¿ ¿) therefore
f ( g ( x ) )=cos ¿ ¿)
'
and g' ( x ) =2 x−3
6
1.7 Derivative of parametric equations
If x and y are expressed in terms of other variables then the equations are known as parametric
equations. Therefore, If x=f (t)and y=g (t) then the first and second derivatives will be given by
dy
dy dt
=
dx dx
dt
( )
2
d y d dy dt
2
=
dx dt dx dx
2
dy d y
Example 2: find and 2 for
dx dx
{x=cos t
y =sin t
Solution
dx
x=cos t , =−sin t
dt
dy
y=sint , =cos t
dt
7
dy
dy dt
=
dx dx
dt
cos t
¿
−sin t
¿−cot t
( )
2
d y d dy dt
2
=
dx dt dx dx
¿ ( )
d dy 1
dt dx dx
dt
d 1
¿ (−cot t )
dt −sin t
2
¿ csc t ¿
3 −1
¿−csc t= 3
sin t
d d d
y (x) ( x ) + x ( y ( x ) )= (1)
dx dx dx
' −y
y + x y =0 which implies y =
'
x
8
3
If y is known it can be substituted. For this example ¿ , which follows that
x
' −3
y= 2 . We have obtained the same results.
x
When we are differentiating the function whose independent variable and dependent
variable mixed together it is called implicit differentiation of the function.
Note that, for the nth degree polynomial we can obtainn derivatives. For trig and exponential
function e x , we have infinity derivatives.
Example: Find the first four derivative for the following functions
2
i. f ( t )=5 t 3+ 4 √ t −7 e t
ii. y=3 cos 2 x +sin 7 x
−2 t
iii. f ( t )=sin t +e + ln 7 t
9
(a) What is the volume of water in the tank at t=0 ?
(b) What is the rate of change of the volume at t=0 ?
(c) Is the volume of water in the tank increasing or decreasing at t 1?
(d) Is the volume of water in the tank increasing or decreasing at t 5 ?
(e) Is the volume of water in the tank changing faster at t 1 minute or t 5 minutes?
(f) Is the volume of water in the tank ever not changing? If so, when?
Example 2: Determine all the stationary points and values for the following function
4 2
A ( t )=t −3 t + 2t +7
Example 3: Identify all critical points and its values for the function
B: Integral Calculus
1. Integration
a. Definition and its notation
When we are integrating we are asking ourselves what function have been differentiated to obtain the
current function f (x). Therefore integration is anti-derivative.
Definition: Integration is the inverse of differentiation and it is called anti-derivative. Given a function
, f (x), then anti-derivative of f (x) is any function F (x) such that F ' ( x )=f (x)
Example: Find integration of f ( x )=x 3 +2 x−1, the function which have been differentiated is
4
1 2
F ( x )= x + x −x +c where c is any constant which have been differentiated to 0. We say F (x) is
4
antiderivative of f (x).
If F ( x ) is any anti-derivative of f ( x ) then the most general anti-derivative of f ( x ) is indefinite integral
and denoted as,
10
∫ (12 x 3 + 4 x 2−4) dx
Solution
1 n+1
The derivative of x n is nx n−1, therefore its anti-derivative will be x , therefore
n+1
4
∫ (12 x 3 + 4 x 2−4) dx=3 x 4 + 3 x 3−4 x +c
Summary
f (x) ∫ f ( x ) dx
1 n+1
x
n
x +c
n+1
cos x sin x +c
sin x −cos x +c
sec x tan x sec x +c
sec x
2
tan x +c
cosec x
2
−cot x +c
tan x −ln|cos x|+c
sec x ln |sec x+ tan x|+c
cosec x ln |cosec x−cot x|+ c
x x
e e +c
1
ln x +c
x
1 1
∫ ax +b a
ln (ax +b)+ c
x
a
∫ ax dx ln a
+c
11
Let f (x) and g(x ) be two derivative functions and a be any constant, then the following are true
∫ [f ( x ) ± g(x )]dx=∫ f ( x ) dx ±∫ g ( x ) dx
∫ af ( x ) dx=a∫ f ( x ) dx
1.3 Initial value problem.
When we are integrating indefinite integral we obtain the function with unknown constant ( c ). This
constant can be obtained if the value of the function at a certain point is known initially. The process of
defining the value of the function initially is called initial value problem.
Solution
4 4 3
We have seen this example previous that, ∫ (12 x + 4 x −4) dx=3 x + x −4 x +c
3 2
3
What we did here is that, ∫ f ' ( x ) dx=f (x), therefore we can use the value of f (x) at x=0, to obtain the
value of C . Therefore;
4 4 3
f ( 1 ) =3=3 (1) + (1) −4 (1)+ c
3
1
Evaluating and making c the subject, c= .
3
4 4 3 1
Hence, ∫ (12 x + 4 x −4) dx=3 x + x −4 x + .
3 2
3 3
n b
lim ∑ f (x i) Δ x=∫ f ( x ) dx ,
n → ∞ i=1 a
12
The number “ a ” that is at the bottom of the integral sign is called the lower limit of the integral and the
number “ b ” at the top of the integral sign is called the upper limit of the integral. Also, despite the fact
that a and b were given as an interval the lower limit does not necessarily need to be smaller than the
upper limit. Collectively we’ll often calla andb the interval or limits of integration.
To get out of using the limit function, the integral is evaluated normally but the obtained function is
evaluated at the ends as follows:
This is a reminder that we are finding antiderivative so we are integrating derivative function. The
definite integral is defined to be exactly the limit of the summation. One of the applications of definite
integral is to find the net area between a function and the x-axis.
3π
Solution
3π
¿ cos 0−cos 3 π
¿ 1−(−1 )
¿2
This result can be interpreted as, the area under the curve of sin θ between θ=0 and θ=3 π is 2 units.
b b b
1. ∫ [f ( x ) ± g(x )]dx=∫ f ( x ) dx ±∫ g ( x ) dx
a a a
b b
2. ∫ mf ( x ) dx=m∫ f ( x ) dx
a a
b a
3. ∫ f ( x ) dx=−∫ f ( x ) dx
a b
Letc to be any constant between or outside the interval of integration (a ,b) then,
13
b c b
4. ∫ f ( x ) dx=∫ f ( x ) dx +∫ f ( x ) dx
a a c
5. ∫ f ( x ) dx=0
a
1. Substitution method
2. Integration by parts
3. Partial fractions
1.5.1 Integration by substitution
This method assumes integration of substituted variable to be simple than the initial one.
Solution
1
√ 5 x 3−10)dx=∫ ( 5 x 3−10 ) 4 (15 x 2 dx ) , since 15 x 2is the derivative of 5 x 3−10, we can let
∫ (15 x 24
3
5 x −10 to be u and make the integral more simple.
1 1
∫ ( 5 x −10 ) ( 15 x dx )=∫ (u )
3 4 2 4
du
5
4 4
¿ (u) + c
5
1 5
4
∫ ( 5 x −10 ) ( 15 x dx )= 5 ( 5 x 3−10 ) 4 +c
3 4 2
14
1.5.2 Integration by parts
Integration by parts is used when we have product of two functions f (x) and g(x ) which can be written
as ∫ f ( x ) g ( x ) dx . Let u=f (x ) and dv =g ( x ) dx , ie ∫ f ( x ) g ( x ) dx =∫ udv. From derivative of product
functions, uv we have
d dv du
( uv )=u + v
dx dx dx
Applying integral with respect to x both sides we obtain
d dv du
∫ dx ( uv ) dx=∫ u dx dx +∫ v dx dx
uv=∫ udv +∫ vdu
π
2
Solution
2
u=x then du=2 xdx
dv =cos 3 x dx then v=−3 sin 3 x
From, ∫ udv =uv−∫ vdu it follows that
2π 2π
2π
∫ x cos 3 x dx=−3 x sin 3 x| −∫ −6 x sin 3 x dx
2 2
π
π 2 π
2 2
2 2π
3π
¿− + 6 ∫ x sin 3 x dx
4 π
2
Since we are not done with integration we will assume another integration by part by
Letting u=x then du=dx
dv =sin 3 x dx then v=3 cos 3 x
15
[ ]
2π 2 2π
π 2 π
2 2
[ ]
3π 2π 2π
¿− + 6 3 x cos 3 x|π + 9 cos 3 x|π
4 2 2
2
3π
¿− + 6 ( 6 π + 9)
4
16
2. Questions on Differential Calculus
2.1 Find derivative of the following functions by using first principle of derivative
3 2
i. f ( x )=x −10 x +3 x+ 32
2
ii. f ( x )=6 x −2 x−3
2
iii. f ( x )=x +sin 3 x+ 10
iv. f ( x )=| x|
t +2
v. f ( t )=
t−2
2.2 Differentiate the following functions
i. f ( x )=3 x 12+ 5 x 7 −e 4 x +cos 7 x +14
5 t
ii. f ( t )=7 t cos 2 t−4 e
2
t −2 t+ 3
iii. g ( t )=
2 t−1
2t 3
iv. T ( x )=e −t tan2 t
v. f ( x )=sin √ x 3 +7 x−8
2
18