Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SKMM3023
SECTION 2
APPLIED NUMERICAL METHOD
DR. NORAZILA BINTI OTHMAN
ACKNOWLEDGEMENT
The success and final outcome of this project required a lot of guidance and
assistance from many people and I am extremely fortunate to have this all along the
completion of my project. Whatever I have done is only due to such guidance and
assistance and I would not forget to thank them. I need to express my appreciation to
our Applied Numerical Method lecturer, Dr. Norazila binti Othman who gave me a
lot of supports while processing this project. She also devoted the endless guidance,
encouragement, critics and inspiration until success and completion of this project.
I also very appreciated about the source of the Universiti Teknologi Malaysia
such as Perpustakaan Sultanah Zanariah that supplied a tremendous amount of
information with regard to my project. Perpustakaan Sultanah Zanariah had a
different sort of books that consolidated my points in this project.
ABSTRACT
TABLE OF CONTENTS
TITLE PAGE
ACKNOWLEDGEMENT ii
ABSTRACT iii
TABLE OF CONTENTS iv
INTRODUCTION 1–2
METHODOLOGY 3
CONCLUSION 24
REFERENCE 25
1
INTRODUCTION
For the sake of simplicity, we shall consider the one-dimensional case only.
The main concept behind any finite difference scheme is related to the definition of
the derivative of a smooth function u at a point x ∈ R:
2
u, ( x )= lim
h→ ∞
( u ( x +hh)−u ( x) ),
and to the fact that when h tends to zero, the quotient on the right-hand side provides
a “good” approximation of the derivative. In other words, h should be sufficiently
small to get a good approximation. It remains to indicate what exactly is a good
approximation, in what sense. Actually, the approximation is good when the error
committed in this approximation tends towards zero when h tends to zero. If the
function u is sufficiently smooth in the neighbourhood of x, it is possible to quantify
this error using a Taylor expansion.
3
METHODOLOGY
The random vibration test consists of 15 samples. The data must be used to
resolve all of the questions. For Question 1, the values of velocity, acceleration and
jerk are determined by using finite-formulas with a constant step size for certain
time. This methods include forward, backward and central difference approximation.
Question 1 have to calculate repeatedly 8 times for all the values. Therefore,
MATLAB is the most productive software environment that make our calculation
process faster and easier. Although MATLAB brings a lot of convenience, we also
need to learn the application of the formulas by manual calculation to realise the
concept of the numerical methods.
For Question 2, it is not possible to solve the solution using a full manual
calculation since the calculator fx570ES PLUS cannot calculate a 4th order
polynomial. Consequently, MATLAB software is used to solve and ensure that the
data always fit to the 4th order polynomial. Based on the concept of numerical
methods, the polynomials curve fitting is used to find the unknowns’ a0, a1 until a4.
After all the data has been calculated, it is arranged in a matrix form and then solved
the question by direct elimination method. The polynomial equation will be formed
after determining the 5 unknown values.
Finally, the calculation of relative errors is needed for all of the higher
accuracy finite difference approximation. Firstly, we must use the polynomial
equation to find the exact values for velocity, acceleration, and jerk by using the
4
differentiation method. The graphs are plotted for each type of higher accuracy finite
difference approximation in order to observe the fluctuation value of errors easily.
From the graphs, the accuracy level can be determined.
For this project 1, it consists of two questions. Both questions need to solve
by using numerical methods.
1. Since the data are known for 0.04 ≤ t ≤ 0.60 sec, determine the velocity ( dydt ),
d2 y d3 y
acceleration ( )
d t2
and jerk
d t3( )
at ti = 0.04 s, 0.16s, 0.24s, 0.32s, 0.36s, 0.44s,
0.52s and 0.60s using suitable finite-difference formulas with a step size, Δt, of
0.04s.
h = Δt = 0.04s
6
dy f ( t i+1 )−f ( t i )
= f '(ti) =
dt h
= 0.235−0.156
0.04
= 1.9750
Second derivative
d2 y ''
f ( t i+2 )−2 f ( t i +1) + f ( t i )
2 = f (ti) =
dt h2
= 0.248−2 ( 0.235 ) +0.156
| 0.042 |
= 41.2500
Third derivative
d3 y f ( t i+3 ) −3 f ( t i+2 ) +3 f ( t i+1 ) −f ( t i )
= f '' ' (ti) =
d t3 h3
= 0.0125−3 ( 0.248 )+3 ( 0.235 )−0.156
| 0.04 3 |
= 2851.5625
Second derivative
d2 y ''
f ( t i+1 )−2 f ( t i ) + f ( t i−1 )
2 = f (ti) =
dt h2
= 0.235−2 ( 0.156 )+ 0.000
| 0.042 |
= 48.1250
Third derivative
d3 y '' '
f ( t i+2 )−2 f ( t i +1) + 2 f ( t i−1 ) −f ( t i−2 )
3 = f (ti) =
dt 2 h3
7
Second derivative
d2 y f ( t i )−2 f ( t i−1 ) +f ( t i−2 )
= f ' ' (ti) =
d t2 h2
=0.156−2 ( 0.000 ) +0.000
0.042
= 97.5000
Third derivative
d3 y '' '
f ( t i )−3 f ( t i−1 ) +3 f ( t i−2 )−f ( t i−3 )
3 = f (ti) =
dt h3
= 0.156−3 ( 0.000 )+3 ( 0.000 )−0.000
0.04 3
= 2437.5000
MATLAB is used for the following time, ti = 0.16s, 0.24s, 0.32s, 0.36s,
0.44s, 0.52s and 0.60s. This software calculates the forward, backward and central
difference approximation. All of the calculations show in tabular form.
8
2. Consider the displacement data given, then fit polynomial 4th order through the
data.
11
This question is solved by using polynomial curve fitting. Since the calculator
fx570ES PLUS cannot calculate a 4th order polynomial, the MATLAB software is
used to make sure that the data always fit with the 4 th order polynomial. Direct
elimination method is used in the MATLAB to determine the value.
m = 4, n = 15.
n n n
n n n
n n
n n n
n n
3
∑ ti yi = 0.2332 ∑ t i4 y i= 0.1191
i=1 i=1
Based on the concept of numerical methods, the first derivative has higher
accuracy that compared with second and third derivative. The accuracy of the data
can be calculated due to the values of relative error.
The exact value for velocity, acceleration, and jerk can be generated from the
4th polynomial equation by using the differentiation method.
The relative error is calculated from the exact value and approximate value.
The formula of the relative error is:
εT = |exact value−approximate
exact value
value
|×100 %
15
Based on the plotted graphs, the concept of numerical methods for the first
derivative has higher accuracy than the second and third derivatives is true due to the
trend of the graph. The three graphs show the third derivative has the highest relative
error value which means that it has lowest accuracy compared with each other. The
following higher relative error values are second and third derivatives respectively.
There are low accurate for the three graphs especially at the middle area of graph
which located within 5th station and 10th station due to the high values of relative
error.
25
CONCLUSION
In conclusion, there are many lessons that we can learnt throughout this
project. By doing this project, we can get a better understanding on the operation on
the MATLAB software. This software provides a platform to make the progress of
calculation easier and simpler. Based on the reading of the random vibration test, we
can observe that it is quite fluctuating. The maximum and minimum displacements,
yi are 0.561 in and 0.0125 in respectively. The exact value can be calculated from
the 4th polynomial equation by using the differentiation method. The approximate
value can be determined by using higher accuracy finite difference approximation.
The relative error is calculated from the exact value and approximate value. Based
on the plotted graph of relative error for forward, central and backward difference
approximation against station, i the first derivative is more accurate than the second
and third derivatives due to the calculated low relative error values. The middle area
for all three graphs shows the high values of relative error. The errors are affected by
a lot of factors like human, instruments, environment and so on. The errors of the
vibration test can be reduced by repeating the experiment a few times in order to
obtain the accurate value.
26
REFERENCE
D.M. Causon and C.G. Mingham (2010). Introductory Finite Difference Methods for
PDEs. United Kingdoms: Manchester Metropolitan University.