Knowledge/Comprehension/ Application/ Analysis/ Synthesis/Evaluation)
Knowledge/Comprehension/ Application/ Analysis/ Synthesis/Evaluation)
Sc BRANCH/SPECIALIZATION: Mathematics
Weekly
Subject Total Contact Credit
Semester Subject Name Hours
Code Hours
L T P
4
V UM304 Numerical Methods 60 4 1 -
COURSE OBJECTIVES
By the end of the course, students will be able to:
COURSE OUTCOMES
At the end of the course, the students will be able to:
Bloom’s Taxonomy
(Knowledge/Comprehension/
CO No. Course Outcomes
Application/ Analysis/
Synthesis/Evaluation)
CO1 Able to solve the various types of equations (Knowledge/Comprehension)
Assessment Pattern
Introduction – First differences – Higher Differences – Difference Tables- Backward Differences- Central Difference Notation – Properties
of the operator ∆ - Differences of a polynomial – Factorial Polynomials – Simple Problems – Error Propagation ina difference table
– Operators E, ∇, δ, μ – Basic Properties.
Unit III Interpolation [12Periods]
Introduction- Linear Interpolation- Gregory Newton’s forward interpolation formula – Newton’s backward interpolation formula –
equidistant terms with one or more missing values – error in polynomial interpolation- error in Newton’s interpolation formulae
M.K. Venkataraman. (1992) Numerical methods for Science and Engineering National Publishing Company, Chennai.
Bisection method is a straightforward technique to find numerical solutions of an equation with one unknown. Among all the numerical methods,
the bisection method is the simplest one to solve an algebraic ortranscendental equation. In this class, we will discuss the bisection method with
solved problems in detail.
The bisection method is used to find the roots of an algebraic or transcendental equation. It separates the interval and subdivides the interval in
which the root of the equation lies. The principle behind this method is the intermediate theorem for continuous functions. It works by narrowing
the gap between the positive and negative intervals until it closes in on the correct answer. This method narrows the gap by taking the average of
the positive and negative intervals. It is a simple method, and it is relatively slow. The bisection method is also known as interval halving method,
root-finding method, binary search method or dichotomy method.
Let, consider a continuous function “f” which is defined on the closed interval [a, b], is given with f(a) and f(b) of different signs. Then by
intermediate theorem, there exists a point x belong to (a, b) for which f(x) =0.
Problem 1:
Determine the root of the given equation x2-3 = 0 for x ∈ [1, 2] using bisection method
Solution:
Given: x2-3 = 0
Let f(x) = x2-3
Now, find the value of f(x) at a= 1 and b=2.
f(x=1) = 12-3 = 1 – 3 = -2 < 0
f(x=2) = 22-3 = 4 – 3 = 1 > 0
The given function is continuous, and the root lies in the interval [1, 2].
Let “t” be the midpoint of the interval.
I.e., t = (1+2)/2
t =3 / 2
t = 1.5
Therefore, the value of the function at “t” is
f(t) =f(1.5) = (1.5)2-3 = 2.25 – 3 = -0.75 < 0
f(t) is negative, so b is replaced with t= 1.5 for the next iterations.
The iterations for the given functions are:
Iterations a b t f(a) f(b) f(t)
1 1 2 1.5 -2 1 -0.75
Problems: 2
Determine the root of the equation x-cos(x) =0 using bisection method?
Let f (x) = x − cos (x)
Here f (0) = −1 <0 ; f (1) = 0.45 > 0
Let a= 0; b=1; (f(a)<0;f(b)>0)
c=(a+b)/2=0.5
Now f(c) <0. Take a=0.5; b=1
c=(a+b)/2 =0.75
Now f(c) >0. Take a=0.5; b=0.75
c= (a+b)/2 = 0.625
Now f(c)<0 . Take a=0.625; b=0.75
c= (a+b)/2=0.6875
We continue this process until to get the desired accuracy.
After 14 iterations c=0.7391 and f(c)=-0.0001
Implementation of bisection algorithm to MATLAB- Solved problem-2
f=@(x) x-cos(x);
a=0;b=1; % f(a)<0 ; f(b)>0
for i=1:14
c=(a+b)/2;
f_value(i)=f(c);
if f(c)>0
b=c;
else
a=c;
end
end
root=c
er=f_value-f(c);
plot(er, ':.') % Error Plotting
Assignment Problems
1. By using the bisection method, find an approximate root of the equation sin(x) =1/x , that lies between x=1 and x=1.5 ( measured in radius).
Carry out computations upto the 7th stage.
2. Find the root of the equation x4-x-10=0 correct to the three decimal places using bisection method?
3. By using the bisection method, find an approximate root of the equation xex =sin(x) correct to the three decimal places?
4. Using bisection method, find a real root of x+log10x =3.375 correct to the three decimal places?
5. Find the root of the equation ex-x=2 lying between 1 and 1.4 using bisection method correct to the three decimal places?
1. Prove that E 1 . 1. Find the missing value of y if the first differences given below
2. Show that 2 .
y: 2 - - - - -
3. Show that E E .
y : 3 5 7 9 9 13
4. Prove that .
n 1 1 1
2 5. Prove that E 1 / 2 1 / 2 . 2. Prove the following i) tan 1 tan 2 .
n 2n
6. Prove that E e hD . 3. Form the difference table for the following data and hence find 5 y 0 .
7. Prove that 2 y 2 2 y 4 .
8. Prove that m n f x m n f x . x: 0 1 2 3 4 5
y: 1 5 19 55 125 241
4. The following is a table of values of a polynomial of degree 5. It is
known that f 3 is in error. Correct the error.
x: 0 1 2 3 4 5 6
y: 1 2 33 254 1025 3126 7777
1. If f 3 5, f 5 3 , what is the linear 1. From the data given below, find the number of students whose weight
interpolation function f x ? is between 60 and 70.
2. What is the relation between Bessel’s and weight 0-40 40-60 60-80 80-100 100-120
3 Everett’s formulae? No. of Students 250 120 100 70 50
3. Form the central difference table for the
following data choosing x 35 as the origin. 2. Derive Gauss forward interpolation formula
3. Derive Gauss backward interpolation formula
x: 20 25 30 35 40 45
4. Estimate 1.12 using Stirling’s formula from the following table
y: 12 15 20 27 39 52
x: 1.00 1.05 1.10 1.15 1.20 1.25 1.30
x: 1.0000 1.0247 1.0488 1.0724 1.0954 1.1180 1.1402
x: 15 20 25 30 35 40
f x : 10.3797 12.4622 14.0939 15.3725 16.3742 17.1591
1. State any two properties of divided differences 1. Find U 2 , given that U 0 2, U 1 5, U 3 29 and U 7 19.
2. Form the divided difference table for the 2. The following are the measurements of t made on a curve recorded by
following data: an oscillograph representing a change in the conditions of an electric
4 x: 2 5 10 current.
y: 5 29 109
t: 1.2 2.0 2.5 3.0
3. What is inverse interpolation
i: 1.36 0.58 0.34 0.20
Find the value of i when t 1.6
3. Find the parabola of the form y=ax2+bx+c passing through the points
(0,0),(1,1),(2,20)
4. From the data given below, find the value of x when y=13.5