Você está na página 1de 10

UNIVERSITI TUN HUSSEIN ONN MALAYSIA

CENTRE FOR SCIENCE STUDIES


SEMESTER II 2008/2009
BSM 3913 TEST 2 (20%)
DURATION : 1
1
4
HOUR

ANSWER ALL THE QUESTIONS AND ALL CALCULATIONS MUST BE IN 3
DECIMAL PLACES. USE 0.005 = .

Q1 (a) Given the cubic function
2
( ) ( 2)( 1) f x x x = + .
(i) By taking 1 . 0 = h , find the slope of the function at 2 = x , by
using 3-point central difference formula and 5-point difference
formula.
(ii) Then, determine whether ( 1, 4) is a relative maximum or
minimum point by using 5-point difference formula.
[Hint: If
0
( ) 0 f x > then f has a relative minimum at
0
x .
If
0
( ) 0 f x < then f has a relative maximum at
0
x .]
(9 marks)

(b) The velocity, v , of a particle in (m/s) at each 4 seconds time t , is given
below.

Time, t 0 4 8 12 16 20 24
Velocity, v 13.27 25.44 30.19 31.80 32.25 32.92 32.89
Time, t 28 32 36 40 44 48
Velocity, v 32.24 31.16 29.74 30.38 28.06 29.94

Find the distance, d , traveled by the particle at the second half of the
journey by using Trapezoidals rule.
(7 marks)



Q2 Given
1 0 2
0 4 1
0 2 0
A
| |
|
=
|
|

\
.

Use the power method to determine the dominant eigenvalue and its
corresponding eigenvector for the matrix A above. Start with initial vector
(0)
(1 1 0)
T
v = .
(7 marks)




Q3 (a) Given the ordinary differential equation with initial condition as follow
3
4
x
y y e + = , (0) 1 y = .
Find numerical solutions to the initial value problem using the second
order Taylor series method over interval | | 0, 1 with step size 0.25 x =
and find the percentage error of the numerical solutions, if the exact
solution is of the form
3
( )
x
y x e = .
(7 marks)

(b) Find numerical solutions to the following differential equation with initial
condition,
(1 ) y x y = , (0) 0 y =
using the Classic Fourth-Order Runge-Kutta method at 0(0.2)0.6 x = .
(10 marks)

TOTAL MARKS: 40

------------------------------------------------------------------------------------------------------------
Formulae

3-point central difference:
( ) ( )
( )
2
f x h f x h
f x
h
+

5-point difference:
( 2 ) 8 ( ) 8 ( ) ( 2 )
( )
12
f x h f x h f x h f x h
f x
h
+ + + +

Trapezoidal rule:
1
0
1
( ) 2
2
n
b
n i
a
i
h
f x dx f f f

=
(
+ +
(



Power Method: ,..... 2 , 1 , 0 ,
1
) (
1
) 1 (
= =
+
+
k A
m
k
k
k
v v
Second order Taylor series method:
2
1
( ) ( ) ( ) ( )
2!
i i i i
h
y x y x hy x y x
+
= + + , 0,1, 2, i =

Classic Fourth-Order Runge-Kutta method:

1 1 2 3 4
1
( 2 2 )
6
i i
y y k k k k
+
= + + + + , 0,1, 2, i =
where
1
( , )
i i
k hf x y =
1
2
( , )
2 2
i i
k h
k hf x y = + +
2
3
( , )
2 2
i i
k h
k hf x y = + +

4 3
( , )
i i
k hf x h y k = + +


Universiti Tun Hussein Onn Malaysia
Faculty of Science, Arts and Heritage
Test II Sem I 0910: BSM 3913


Date: 10.10.09 Time: 2.30 PM to 4.00 PM
Max. Marks: 40

Answer all the questions in three decimal places


1. Given the set of data, as follows:




455 . 0 620 . 0 765 . 0 ) (
6 . 1 3 . 1 0 . 1
x f
x

Find approximate value of ) 4 . 1 ( f by using Lagranges interpolating polynomial.
(6 marks)

2. The capacity of a battery is measured by

dt i , where i is the current. Estimate,
using suitable Simpsons rule, the capacity of a battery whose current was
measured over 8 hours with the results shown below.





6 . 28 3 . 27 6 . 29 2 . 31 7 . 33 5 . 36 8 . 31 0 . 29 2 . 25
8 7 6 5 4 3 2 1 0 ) (
i Current
hour t time

and also find the rate of change of current distribution at t = 6s (using 3- point
central difference formula) (12 marks)

3. Given

4 3 0
3 4 1
0 1 4
A


=


.
By taking ( )
(0)
1 1 0
T
v = , calculate the largest Eigen value and the
corresponding Eigen vector by using a power method. (12 marks)



4. Solve the following initial value problem at , 1 0 x with 2 . 0 = h

0 ) 1 2 ( 2 = y x
dx
dy
, given that . 0 ) 0 ( = y
By using

(i)Second-order Taylors series

(ii) Modified Euler Method. (10 marks)


FORMULA

1 ) (
) (
) (
) (
,......, 4 , 3 , 2 , 1 , 0 ) ( ) ( ) (
0 0
0
=

=
= =

=
=
x L and
x x
x x
x L where
n i for x f x L x P
n
i
i
n
i j
j j i
j
i
i
n
i
i n

h
h t i h t i
t i
formula difference central po
i i i i i i i i
h
dt i
rule s Simpson
n n n
b
a
2
) ( ) (
) (
int 3
)] ... ( 2 ) .... ( 4 [
3
3
1
'
2 4 2 1 3 1 0
+
=

+ + + + + + + + +


Eigenvalue
Power Method: ,...... 2 , 1 , 0 ,
1
) (
1
) 1 (
= =
+
+
k Av
m
v
k
k
k

Second order Taylor series

+ =
+ i i i i
y
h
hy
h
y y
! 2 ! 1
2
1

Modified Eulers method
) , (
) , (
5 . 0 5 . 0
1 1
1
2 1 1
K y h x f h K
y x f h K
K K y y
i i
i i
i i
+ + =
=
+ + =
+



20
th
MARCH 2010 Good Luck [Total marks : 45]



Universiti Tun Hussein Onn Malaysia
Faculty of Science, Arts and Heritage
Semester II 2009/2010

BSM 3913(BDD,BEE,BFF) TEST 2 70 minutes

ANSWER ALL QUESTIONS.
Do your calculation in 4 decimal places.

Q1 A loan of A ringgits is repaid by making n equal monthly payments of M ringgits,
starting a month after the loan is made. It can be shown that if the monthly interest rate is
r, then

+
=
n
r
M Ar
) 1 (
1
1

A car loan of RM12,000 was repaid in 5 years of RM250 monthly payments.

(a) Write a function of monthly interest rate ) (r f =0. [2 marks]
(b) Construct a table of r and ) (r f for 0042 0 0040 0 . , . = r and 0044 0. . Estimate the
value of ) ( ' r f at 0042 . 0 = r by using 3 point central difference formula.
[10 marks]
(c) Calculate the relative percentage error of the exact solution of ) ( ' r f as compare
to the answer you obtained in Q1(b). [3 marks]

Q2 Using ) (r f obtained from Q1(a), find the approximate value for

0082 . 0
007 . 0
) ( dr r f by using
8
3

Simpsons rule and the smallest subintervals. [10 marks]


Q3 Given the first-order ordinary differential equation as below:

, cos ' x y y = where , 1 0 x

with initial condition . 1 ) 0 ( = y By taking a step size of h = 0.2, find the solution of the
equation by using

(a) second order Taylor series method.
(b) Fourth order Runge-Kutta method (RK4).
[20 marks]


20
th
MARCH 2010 Good Luck [Total marks : 45]



TEST 2
SEMESTER / SESSION: SEM II / 2009/2010

COURSE : BEE, BDD, BFF

SUBJECT : MATHEMATICS IV CODE : BSM 3913
FORMULA

Numerical Differentiation:
First derivatives:
2-point forward difference:
( ) ( )
( )
f x h f x
f x
h
+

2-point backward difference:
( ) ( )
( )
f x f x h
f x
h


3-point central difference:
( ) ( )
( )
2
f x h f x h
f x
h
+


Numerical Integration:
3
8
Simpsons rule:
[ ]
0 1 2 4 5 2 1 3 6 6 3
3
( ) 3( ) 2( )
8
b
n n n n n
a
f x dx h f f f f f f f f f f f f

+ + + + + + + + + + + + +



Ordinary differential equations

Initial value problems:
Second order Taylor series method:
2
1
( ) ( ) ( ) ( )
2!
i i i i
h
y x y x hy x y x
+
= + +
Classic 4
th
order Runge-Kutta method:

1 1 2 3 4
1
( 2 2 )
6
i i
y y k k k k
+
= + + + +
where
1
( , )
i i
k hf x y =
1
2
( , )
2 2
i i
k h
k hf x y = + +

2
3
( , )
2 2
i i
k h
k hf x y = + +
4 3
( , )
i i
k hf x h y k = + +



UNIVERSITI TUN HUSSEIN ONN MALAYSIA
FACULTY OF SCIENCE, ARTS & HERITAGE
SEMESTER II 2010/2011

BSM 3913 / BWM 30603 TEST 2 (20%) DURATION : 75 MIN

ANSWER ALL QUESTIONS. ALL THE CALCULATION MUST BE IN 3 DECIMAL
PLACES. USE 0.005 = .

Q1 The table below gives the distance, d of a particle at various points in time, t .

Time, t (s) 1.9 2.1 2.3 2.5 2.7 2.9 3.1 3.3
Distance, d (cm) 45.32 49.86 52.08 53.31 61.47 62.93 64.65 65.13

Find the velocity and the acceleration of the particle at s t 9 . 2 = using 3-points central
difference with 2 . 0 = h .
(4 marks)

Q2 Find the area below the curve of ), (x f y = above x axis and between 1 = x and
3 = x , using Simpsons
3
1
rule when ) (x f is given by

x 1 0.5 0 0.5 1.0 1.5 2.0 2.5 3.0
) (x f 7 5 3.5 4 5.5 6 6.5 5 4.5
(4 marks)

Q3 Approximate

5 . 1
1
2
ln dx x x using 3-points Gauss quadrature. If the exact answer is
0.192, calculate its absolute error.
(7 marks)

Q4 Find the smallest eigenvalue (in absolute value)
smallest
and its corresponding
eigenvector
( ) k
v of matrix
1 2 0
2 1 2
1 3 1
A
(
(
=
(
(


by using shifted power method. Given the dominant eigenvalue,
Largest
3.002 = and
trial value of
( )
( )
0
0.4 0.8 1
T
= v , iterate until three iterations.
(8 marks)

Q5 Given the following initial value problem at , 1 0 x with 2 . 0 = h
0 ) 3 2 ( 5
2
= y x
dx
dy
, 2 ) 0 ( = y .

Solve the above equation by using
(a) Second-order Taylors series.
(9 marks)
(b) Mid-point method.
(8 marks)

25 March 2011 STRIKE FOR SUCCESS [Total marks : 40 ]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




LIST OF FORMULA


3-point central difference:
( ) ( )
( )
2
f x h f x h
f x
h
+

3-point central difference:
2
( ) 2 ( ) ( )
( )
f x h f x f x h
f x
h
+ +


Simpsons
1
3
rule:
1 2
0
1 2
odd even
( ) 4 2
3
n n
b
n i i
a
i i
i i
h
f x dx f f f f

= =
(
(
+ + +
(
(



Gauss quadrature: 3-points: ( )
1
1
5 3 8 5 3
( ) 0
9 5 9 9 5
f x dx g g g

| | | |
+ +
| |
| |
\ \



Shifted Power Method: , 2 , 1 , 0 ,
1
) (
) 1 (
= =
+
+
k
m
A
k
k
Shifted k
v
v


Second order Taylor series method:
2
1
( ) ( ) ( ) ( )
2!
i i i i
h
y x y x hy x y x
+
= + + , 0,1, 2, i =

Mid-point method:
2 1
k y y
i i
+ =
+

where ) , (
1 i i
y x hf k = )
2
,
2
(
1
2
k
y
h
x hf k
i i
+ + =























UNIVERSITI TUN HUSSEIN ONN MALAYSIA
FACULTY OF SCIENCE, TECHNOLOGY AND HUMAN DEVELOPMENT
SEMESTER I SESSION 2011/2012
BWM 30603 / BSM 3913 TEST 2 (20%) DURATION : 85 MIN

ANSWER ALL QUESTIONS. ALL THE CALCULATION MUST BE IN 3 DECIMAL
PLACES. USE 0.005 = .

Q1 When water flows slowly within a circular pipe, its velocity increases with the square of
the distance from the pipe wall. Thus, the velocity is zero at the wall and reaches a
maximum at the centre of the pipe. Suppose the velocity distribution within a 12-cm-
diameter pipe is given by
2
5 . 0
1 3 . 0 ) (

=
r
r v
where v is the velocity, in cms
-1
, and r

is the radial distance from the centre of the pipe,
in cm.
(a) Construct a table of r and ) (r v for 5 . 2 , 0 . 2 , 5 . 1 , 0 . 1 = r and 0 . 3 . Estimate the
value of ) ( ' r v at 2 = r by using 5-points difference formula
(b) Calculate the absolute error of the exact solution of ) ( ' r v as compare to the
answer you obtained in Q1(a).
(c) If the volumetric flow rate through the pipe, in cm
3
s
-1
, is given by
6
0
( ) 2 ( ) Q v r dA v r r dr = =

,
find the approximate value for Q by using
8
3
Simpsons rule and the simplest
subintervals.
(17 marks)

Q2 Given the following matrix
1 1 0
2 4 2
0 1 2
A


=


.
Approximate the smallest eigenvalue (in absolute value) by using inverse power method.
Use ( )
(0)
1 1 0
T
v = .
(8 marks)


Q3 Given the initial-value problem
4 1
y
y
x
e

= + , for 0 1 x , with (0) 3 y =
has an actual solution of
( )
3 2
( ) ln 2 y x e x x = . Use
(a) Eulers method and
(b) 4
th
Order Runge-Kutta method
to find the approximations for (0.25), (0.5), (0.75) and (1) y y y y .

For both method, compare the approximations to the actual one (use absolute error
analysis).
(15 marks)

25 November 2011 GOOD LUCK [Total marks: 40]


LIST OF FORMULA


Numerical differentiation and integration

Differentiation:

First derivatives:
5-point difference:
( 2 ) 8 ( ) 8 ( ) ( 2 )
( )
12
f x h f x h f x h f x h
f x
h
+ + + +


Integration:

3
8
Simpsons rule:
[ ]
0 1 2 4 5 2 1 3 6 6 3
3
( ) 3( ) 2( )
8
b
n n n n n
a
f x dx h f f f f f f f f f f f f

+ + + + + + + + + + + + +





Eigen value

Power method:
1
1
k
k
k
Av
v
m
+
+
=



Ordinary differential equations

Initial value problems:

Eulers method:
1
( ) ( ) ( )
i i i
y x y x hy x
+
= +

Classic 4
th
order Runge-Kutta method:


1 1 2 3 4
1
( 2 2 )
6
i i
y y k k k k
+
= + + + +

where
1
( , )
i i
k hf x y = ,
1
2
( , )
2 2
i i
k h
k hf x y = + +

2
3
( , )
2 2
i i
k h
k hf x y = + + ,
4 3
( , )
i i
k hf x h y k = + +

Você também pode gostar