1 Introduction To Mathematical Modeling and Numerical Methods
1 Introduction To Mathematical Modeling and Numerical Methods
MATHEMATICAL MODELING
Mathematical Modeling
and Numerical Methods
INTRODUCTION TO
MATHEMATICAL MODELING
Science and engineering involves observation and
explanation of physical phenomena. These phenomena are
best described using mathematical models.
Mathematical models are equations that shows the
essential features of a physical system or process.
INTRODUCTION TO
MATHEMATICAL MODELING
Mathematical models consist of the following:
Dependent Variables (��): These are variables that reflect the
behavior or state of the system;
Independent Variables (���): These are variables along which the
behavior of the system is being determined;
Parameters (�): These reflect the properties and composition of the
system; and
Forcing Functions (��): These are external influences acting upon the
system.
INTRODUCTION TO
MATHEMATICAL MODELING
Mathematical models can be usually written in the form
�� = � ���, �, ��
These may be written from as simple as an algebraic
expression to as complicated as a set of differential
equations.
Some of these equations may be solved by hand
(analytically). However, some of these mathematical
models are too tedious to be solved analytically.
MATHEMATICAL MODEL
MATHEMATICAL MODEL
MATHEMATICAL MODEL
INTRODUCTION TO
MATHEMATICAL MODELING
Some of the issues in engineering which make analytical
methods harder to use are as follows:
Nonlinearity of the System
Some mathematical models are linear. These models can be
easily solved using analytical methods.
However, some mathematical models are nonlinear. Some
nonlinear models can be linearized. But then, some
nonlinear models can either be too tedious to solve
analytically or cannot be solved analytically.
INTRODUCTION TO
MATHEMATICAL MODELING
Some of the issues in engineering which make analytical methods
harder to use are as follows:
Size of the System
Some systems are too large to be solved analytically, especially
systems with more than three unknowns.
INTRODUCTION TO
MATHEMATICAL MODELING
Some of the issues in engineering which make analytical
methods harder to use are as follows:
Idealization of the System
Most of the mathematical models are written using known
basic principles of sciences.
Therefore, these models are said to be ideal. However,
physical experiments usually show discrepancies between
the conditions assumed by the mathematical model and the
actual conditions.
INTRODUCTION TO
MATHEMATICAL MODELING
Some of the issues in engineering which make analytical
methods harder to use are as follows:
Sensitivity Analysis
Some changes in independent variables may yield
drastic changes in the dependent variables of the system.
For this type of analysis to be done, the mathematical
model should be solved repeatedly for different values
of independent variables. However, for more
complicated mathematical models, sensitivity analysis is
too tedious to execute.
INTRODUCTION TO
MATHEMATICAL MODELING
Some of the issues in engineering which make analytical
methods harder to use are as follows:
Design of the System
Engineering design involves solving the parameters that
should be used on order to design the system that meet
specific requirements.
However, design is more tedious to execute due to
fulfillment of several required criteria for the system
(which are also expressed as mathematical models), as
well as the iterative nature of engineering design.
INTRODUCTION TO
MATHEMATICAL MODELING
These issues may be taken care of by using numerical
methods to solve these mathematical models.
Numerical methods are mathematical methods that
involve solutions of mathematical models by expressing
them using arithmetic and logical operations, therefore
making them easier to solve with the help of computer
tools and programming.
Numerical methods can be used to solve more types of
physical problems, which involve nonlinearity, large size,
non-ideal conditions, and engineering design.
WHY STUDY NUMERICAL SOLUTIONS?
NUMERICAL SOLUTION TOPICS
NUMERICAL SOLUTION TOPICS
NUMERICAL SOLUTION TOPICS
COMPUTER TOOLS AND Introduction to
PROGRAMMING
Mathematical Modeling
and Numerical Methods
COMPUTER TOOLS AND PROGRAMMING
�� = �� − �
TRUE ERROR
�� − �
�� =
��
Percentage Relative True Error
�� − �
�� = × 100%
��
APPROXIMATE ERROR
��
�� =
�
�������� − ���������
�� =
��������
�������� − ���������
�� = × 100%
��������
ROUND-OFF ERRORS
∞ � � �� ��+1 − �� �
� ��+1 = � �� +
�=1 �!
∞ � � �� ��+1 − �� �
� �+1 � ℎ�+1
�� = =
�=�+1 �! �+1 !
�� < � < ��+1
TRUNCATION ERRORS
�+1
� � ℎ�+1
�� = = � ℎ�+1
�+1 !
EXAMPLE 1.1
Consider � � =− 0.1�4 − 0.15�3 − 0.5�2 − 0.25� + 1.2. Using
the given function, � 0 = 1.2, approximate � 1 by making use
of the first four terms of Taylor series expansion of � � .
SOLUTION
∞ � � �� ��+1 − �� �
� ��+1 = � �� +
�=1 �!
��+1 = 1
�� = 0 ��+1 − �� = 1 − 0 = 1
��� � =− 2.4
��� 0 =− 2.4
SOLUTION
∞ � � �� ��+1 − �� �
� ��+1 = � �� +
�=1 �!
1 2 3 4
−0.25 1 −1 1 −0.9 1 −2.4 1
� 1 = 1.2 + + + +
1! 2! 3! 4!
� � = �. �
Note that �4 = � ℎ5 = 0.
TOTAL NUMERICAL ERROR
The total numerical error is the sum of the round-off error and the
truncation error.
However, minimizing error of one type will lead to increasing error of
the other type.
Thus, it is recommended to determine the balance between round-off
and truncation errors, and this can be attained by performing multiple
iterations of numerical solutions.
BLUNDERS, MODEL ERROR, AND DATA
UNCERTAINTY
Other errors that should be taken account in mathematical modeling
are as follows:
Blunders: Blunders are largely attributable to human imperfection.
These can be minimized by checking proper derivation of
mathematical models as well as proper execution of algorithm to solve
these models.
Model Errors: Some models do not take account other factors,
especially those that are hard to quantify or express in mathematical
terms.
Data Uncertainty: These are due to limitations on measurement
methods, which may cause imprecision or inaccuracy.