You are on page 1of 3

JAN 2022 CONFIDENTIAL

INSTRUCTIONS:

1. Answer ALL questions.

2. Use at least 5 decimal places for all calculations.

Question 1 (25 marks)

Evaluate the root of 𝑓(𝑥) = 3𝑥 − 𝑒 by using:

(a) the bisection method. Start with 𝑎 = 0 and 𝑏 = 1, and carry out the first five iterations
(until 𝑥 ).
(10 marks)
(b) the secant method. Start with the two points, 𝑥 = 0 , and 𝑥 = 1, and carry out the
first five iterations (until 𝑥 ).
(10 marks)
(c) Newton Raphson’s method. Start at 𝑥 = 0, and carry out the first five iterations (until
𝑥 ).
(5 marks)

Question 2 (25 marks)

Solve the following system of equations with the Gauss elimination method.

4𝑥 + 3𝑥 + 2𝑥 + 𝑥 = 1

3𝑥 + 4𝑥 + 3𝑥 + 2𝑥 = 1

2𝑥 + 3𝑥 + 4𝑥 + 3𝑥 = −1

𝑥 + 2𝑥 + 3𝑥 + 4𝑥 = −1

(25 marks)

CPB20203 NUMERICAL METHODS IN CHEMICAL ENGINEERING Page 1 of 3


JAN 2022 CONFIDENTIAL

Question 3 (20 marks)

(a) The following data is given:

𝑥 -7 -5 -1 0 2 5 6

𝑦 15 12 5 2 0 -5 -9

Use the linear least-squares regression to evaluate the coefficients 𝑚 and 𝑏 in the
function 𝑦 = 𝑚𝑥 + 𝑏 that best fits the data.

(13 marks)

(b) The following data shows the population (in millions) of a country in selected years
between 1980 and 2005.

Year 1980 1985 1990 1995 2000 2005

Population 15 17 19.3 22 24.5 27.1

Calculate the rate growth of the population in millions per year for 2005 using:

i. two-point backward difference formula.


(3 marks)
ii. three-point backward difference formula.
(4 marks)

CPB20203 NUMERICAL METHODS IN CHEMICAL ENGINEERING Page 2 of 3


JAN 2022 CONFIDENTIAL

Question 4 (30 marks)

(a) Evaluate the integrals:

𝐼= sin 𝑥 𝑑𝑥

Using the following methods:

i. Simpson’s 1/3 method. Divide the whole interval into six subintervals.
(8 marks)
ii. Simpson’s 3/8 method. Divide the whole interval into six subintervals.
(8 marks)

(a) Consider the first-order ODE:


𝑑𝑦
= 𝑦𝑥 − 𝑥 , 𝑥 = 0 𝑡𝑜 𝑥 = 1.8 𝑤𝑖𝑡ℎ 𝑦(0) = 1
𝑑𝑥
i. Solve the ODE using Euler’s method with ℎ = 0.6.
(11 marks)

ii. If given that the analytical solution of the ODE is 𝑦 = 𝑥 − 𝑒 + 2, calculate the
percent relative error between the analytical and numerical solutions for each
of the step in question (i).
(3 marks)

CPB20203 NUMERICAL METHODS IN CHEMICAL ENGINEERING Page 3 of 3

You might also like