0% found this document useful (0 votes)
33 views2 pages

MATH 5 Sample Question 2

Uploaded by

raisulrifat25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

MATH 5 Sample Question 2

Uploaded by

raisulrifat25
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

AMERICAN INTERNATIONAL UNIVERSITY-BANGLADESH

Faculty of Science and Technology


Department of Mathematics
MAT3101 Mathematical Methods of Engineering (Section: All)

Total Marks: 40 Time: 2 hours

1. 14𝑥 + 10𝑦 + 8𝑧 = 21
Given the linear system 10𝑥 − 2𝑦 + 3𝑧 = 19 .
5𝑥 + 6𝑦 + 15𝑧 = 16
a. Reduce the above system to diagonally dominant form.
b. Solve the reduced system in (a) by Gaussian elimination with pivoting and back
substitution.
c. Write down the Gauss-Seidel iteration formula corresponding to the system in (a).
Compute two iterations to estimate the roots to 2 d.p. starting with the initial value
𝑥0 = 1.5, 𝑦0 = −1 and 𝑧0 = 1.
d. Write MATLAB codes to solve by left division (backslash) operator.

2. The table below gives the values of 𝑥 and 𝑓(𝑥)


x -1 0 2 4
f(x) -7 -2 2 38
a. Construct a divided-difference table for the above data.
b. Find the polynomial which passes through all the points of the table and find 𝑓(5).
c. Use Lagrange interpolating polynomial to estimate the value of x for f(𝑥) = 0 using
all the points.
d. Write down MATLAB codes using “polyfit(x, y, n)” and “polyval(p, x)” to find the
polynomial of least degree that incorporates all the values in the table and estimate
the values corresponding to .𝑥 = 3 and 5.
3. The equation 𝑣 = 70 − 𝑐 𝑒 −𝑘𝑡 can be used for calculating the speed of a moving
car, where c and k are constants. The table below shows the speed of the car at
various times
𝑡(𝑠) 5 10 15 20
−1
𝑣(𝑚𝑠 ) 21.6 28.8 34.8 40.0
a. Estimate the values of c and k rounded to 2 significant figures using least square
method.
b. Find the speed at 𝑡 = 25 second.

Page 1 of 2
c. Find the time, to the nearest second, when the speed will be 𝑣 = 50 𝑚𝑠 −1.
d. Use MATLAB function a = lsqcurvefit(fun, a0 , xdata, ydata) to fit all the above
problems

4. Consider the polynomial equation 𝑥 4 − 3𝑥 − 1 = 0


a. Find the number of real roots of the equation by graphical method. Find also the
number of complex roots if any.
b Apply bisection method two times in the interval [1, 2] to find the root to 2 d.p.
c. Apply Secant method two times in the interval [1.5, 1.6] to find the root to 2 d.p.
d. Write down an iteration formula based on Newton-Raphson method and perform
one iteration to estimate the root near 𝑥0 = −0.3 to 2 d.p..
e. Write MATLAB commands “roots(C)” to find all the roots including complex roots
of the equation.

5. Given the equation 𝑥 2 + ln 𝑥 − 2 = 0


a. Show that the equation has a root in the interval [1, 1.5].
b. The following iterative formulae are suggested to estimate the root
2)
(a) 𝑥𝑛+1 = √2 − ln 𝑥𝑛 (b) 𝑥𝑛+1 = 𝑒 (2−𝑥𝑛
State with reason which iterative formula will converge to the root near𝑥 = 1.4
c. Use the suitable iterative formula from the above two ( (i) and (ii) ) to find the root
correct to 2 decimal places.
d. Use MATLAB built in function “fzero(fun, x0)” to find all the roots of the given
equation in the interval [1, 1.5]

Page 2 of 2

You might also like