Chapter 1 - Introduction To Numerical Methods and Analysis
Chapter 1 - Introduction To Numerical Methods and Analysis
01| Introduction
Generally, we can divide mathematics into two broad categories the pure mathematics and the
applied mathematics. Physics
Engineering Economy
The simplest way to distinct these two broad categories of math is that pure mathematics is the study Mechanics of Rigid Bodies
of math independent of any application outside mathematics. In other words, it is the math solely for Mechanics of Deformable Bodies
its own sake. Circuits 1, 2 and 3 (Complex Numbers, System of Linear Equations, Laplace Transform,
Subject under the category of pure mathematics commonly taken by college students Fourier Series, Gamma Function, etc.)
from: College Algebra Electromagnetics
Advance Algebra Vector analysis
Plane and Spherical Trigonometry Electrical Machines
Solid Mensuration Power Plant Engineering
Analytical Geometry Power System Analysis (Fault Analysis, Load Flow Analysis, Optimization, Surge and
Differential Equations Transient Analysis, Arc Flash Analysis)
Integral Calculus
Numerical analysis involves the study of methods of computing numerical data. In many problems
On the other hand, applied math is the application of mathematical methods in different fields (such this implies producing a sequence of approximations by repeating the procedure again and again.
as engineering). In short, it is the use of math for practical applications here is also the list of People who employ numerical methods for solving problems have to worry about the following
subjects under applied math category from: issues: the rate of convergence (how long does it take for the method to find the answer), the
Differential Equations (AC and DC Transient) accuracy (or even validity) of the answer, and the completeness of the response (do other solutions,
Advanced Engineering Mathematics in addition to the one found, exist).
Probability and Statistics
Numerical Methods Numerical methods provide approximations to the problems in question. No matter how accurate
Chemistry they are they do not, in most cases, provide the exact answer. In some instances, working out the
exact answer by a different approach may not be possible or may be too time consuming and it is in
these cases where numerical methods are most often used.
Generally speaking, Numerical Metod is the consolidation of pure mathematics as one subject it is iterative solution in short, a trial-and-error approach until we arrive in a value of x where it will
the study of algorithm or process that utilize the numerical approximation to solve mathematical satisfy the equation or the so-called convergence.
problems.
x୬ାଵ = x୬ −f(x୬)
We can say that most of the solution under the pure math are exact solutions while numerical
fᇱ(x୬)
method is one of the approximate solutions to solve alternatively a mathematical problem.
Using the Newton-Raphson Method,
So, to make it clear say for example that we are finding the roots of the polynomial
If we apply factoring to the equation, we get From this equation we can now refine our initial guess by substituting x୬ = 2, and the refined value of
x or in this case xଵ = −0.91667.
(x + 3)(x = 5) = 0
xଶ = 2 −(2)ଶ + 8(2) + 15
Therefore, we can say that the roots of the equation are,
2(2) + 8 = −0.91667
x = −3
and Obviously, this value is still far away from our expected value. But if you will compare it to our initial it
x = −5. is quite nearer than expected one. So, by continuously updating our x୬ after few iterations we
managed to arrive at the expected value of the root.
This is the Exact Solution.
(2)ଶ + 8(2) + 15 ≠ 0
To effectively and successfully implement any tool, knowledge and understanding are needed. For
example, it will be hard to repair a car if you do not understand how the tool chest works.
This is particularly true when using computer to solve engineering problems. Though computers
have great potential utility, it will be useless without the basic knowledge and understanding of how
engineering system works.
Mathematical modeling is any physical problem which you have in your daily life. If you convert that
physical problem into by applying the basic principles of science basically known as the
mathematical modelling.
Figure 1.1 The three phases of engineering problem solving (a) the pre-computer era and (b) the computer era
Dependent variable is a characteristic that shows the behavior or state of the system
Independent variable indicates the dimensions, such as time and space, along with the
system’s behavior is being determined,
Parameters are reflective of the system’s properties or composition, and
Forcing functions are external influences acting upon the system.
Mathematical expression can range from a simple algebraic relationship to a very large complicated
set of differential equations.
Analytical or Exact Solution satisfies the original differential equation, however, there are many
mathematical models that cannot be solved exactly. This is where we use approximation which is
what numerical solutions are all about.
Whenever we use numerical values in our computations, we must have assurance that this can be
used with confidence. This is where the concept of significant figures come in.
The concept of a significant figure, or digit, has been developed to formally designate the reliability of
a numerical value. The significant digits of a number are those that can be used with confidence.
They correspond to the number of certain digits plus one estimated digit.
nearest 1/100th milliliter; meanwhile his colleague who measured 92 milliliters only knows his
The concept of significant figures has two important implications for our study of numerical methods: value to the nearest 1 milliliter. It's important to understand that "zero" does not mean "nothing."
1. Numerical methods yield approximate results. We must, therefore, develop criteria to Zero denotes
specify how confident we are in our approximate result. One way to do this is in terms of actual information, just like any other number. You cannot tag on zeros that aren't certain to
significant figures. For example, we might decide that our approximation is acceptable if it is belong there.
correct to four significant figures. 5. Trailing zeros in a whole number with the decimal shown ARE significant. Placing a decimal at the
2. Although quantities such as π, e or √7, represent specific quantities, they cannot be end of a number is usually not done. By convention, however, this decimal indicates a significant
expressed exactly by a limited number of digits. zero. For example, "540." indicates that the trailing zero IS significant; there are THREE
significant figures in this value.
Take for example Figure 1.3.
6. Trailing zeros in a whole number with no decimal shown are NOT significant. Writing just "540"
indicates that the zero is NOT significant, and there are only TWO significant figures in this value. 7.
Exact numbers have an INFINITE number of significant figures. This rule applies to numbers that are
definitions. For example, 1 meter = 1.00 meters = 1.0000 meters = 1.0000000000000000000
meters, etc.
8. For a number in scientific notation: N x 10x, all digits comprising N ARE significant by the first 6
rules; "10" and "x" are NOT significant. 5.02 x 104 has THREE significant figures: "5.02." "10 and
"4" are not significant.
Figure 1.3 Automobile Speedometer and Odometer Rule 8 provides the opportunity to change the number of significant figures in a value by
manipulating its form. For example, let's try writing 1100 with THREE significant figures. By rule
6, 1100 has TWO significant figures; its two trailing zeros are not significant. If we add a decimal
RULES FOR SIGNIFICANT FIGURES to the end, we have 1100., with FOUR significant figures (by rule 5.) But by writing it in scientific
notation: 1.10 x 103, we create a THREE-significant-figure value.
1. All non-zero numbers ARE significant. The number 33.2 has THREE significant figures because
all of the digits present are non-zero. Example:
1. Calculate the answer to 1 significant figure.
2. Zeros between two non-zero digits ARE significant. 2051 has FOUR significant figures. The zero 0.0075 ÷ 0.0000715
is between a 2 and a 5.
2. Calculate the answer to 3 significant figures.
3. Leading zeros are NOT significant. They're nothing more than "place holders." The number 0.54 0.0075 ÷ 0.0000715
has only TWO significant figures. 0.0032 also has TWO significant figures. All of the zeros are
leading. 3. State the number of significant figures.
350.701
4. Trailing zeros to the right of the decimal ARE significant. There are FOUR significant figures in
92.00. 92.00 is different from 92: a scientist who measures 92.00 milliliters knows his value to the 4. State the number of significant figures.
67.030 kg
Because 8000 has only 1 sig. fig. four places to the left of the decimal point, the 06| Accuracy and Precision
least significant figure in the final answer must also be four places to the left of
the decimal point—correct answer is 8000
Mathematical Models area as good as the modeler itself. Because as we create these mathematical
models there would be assumptions and approximations that we will be incorporating with our
solution. And when we talk about numerical assumptions and approximations, we cannot prevent
2. Multiplication and Division
ourselves in committing some numerical error. Therefore, our models must have precise and
The number of significant figures in the result is determined from the number of significant
accurate or must be close to the true value.
figures in the least significant value used in the calculation.
2. Truncation Error
Example:
The discrepancy introduced by the fact that numerical methods may employ approximations to Suppose that you have the task of measuring the lengths of a bridge and a rivet and come up with
represent exact mathematical operations and quantities. 9999 and 9 cm, respectively. If the true values are 10,000 and 10 cm, respectively, compute (a) the
true error and (b) the true percent relative error for each case.
For both types, the relationship between the exact, or true, result and the approximation can be
formulated as: Notice that for Eqs. (2) and (3), E and ε are subscripted with a t to signify that the error is normalized
to the true value. In the example above, we were provided with this value. However, in actual
�������� ���������� = situations such information is rarely available. For numerical methods, the true value will be known
�������������������������� +
only when we deal with functions that can be solved analytically.
���������� (eq. 1)
Such will typically be the case when we investigate the theoretical behavior of a particular technique
By rearranging Eq. 1, we find that the numerical error is equal to the discrepancy between the truth
for simple systems. However, in real-world applications, we will obviously not know the true answer
and the approximation, as in
a priori. For these situations, an alternative is to normalize the error using the best available
estimate of the true value, that is, to the approximation itself, as in
���� = �������� ���������� −
�������������������������� (eq. 2)
Where Et is used to designate the exact value of the error. The subscript t is included to designate
���� = ���������������������� ����������
that this is the “true” error. ����������������������������������%
(eq. 4)
A shortcoming of this definition is that it takes no account of the order of magnitude of the value
Where the subscript a signifies that the error is normalized to an approximate value. Note also that
under examination. For example, an error of a centimeter is much more significant if we are
for real-world applications, Eq. (3.2) cannot be used to calculate the error term for Eq. (4). One of
measuring a rivet rather than a bridge. One way to account for the magnitudes of the quantities
the can be shown (Scarborough, 1966) that if the following criterion is met, we can be assured that the
computations, we may not be concerned with the sign of the error, but we are interested in whether result is correct to at least n significant figures.
the percent absolute value is lower than a pre-specified percent tolerance εs. Therefore, it is often
useful to employ the absolute value of Eqs. (2) through (5). For such cases, the computation is ���� = (��. �� × ������ି��)% (eq. 7)
repeated until
If this relationship holds, our result is assumed to be within the pre-specified acceptable level εs.
Note that for the remainder of this text, we will almost exclusively employ absolute values when we
use relative errors. YOUTUBE LINKS:
It is also convenient to relate these errors to the number of significant figures in the approximation. It
negative; if the approximation is less than the true value, the error is
challenges of numerical methods is to determine error estimates in the
positive. Also, for Eqs. (3) to (5), the denominator may be less than
absence of knowledge regarding the true value. For example, certain zero, which can also lead to a negative error. Often, when performing
numerical methods use an iterative approach to compute answers. In
such an approach, a present approximation is made on the basis of a
previous approximation. This process is performed repeatedly, or
iteratively, to successively compute (we hope) better and better
approximations.
For such cases, the error is often estimated as the difference between
previous and current approximations. Thus, percent relative error is
determined according to
https://youtu.be/KjBCjVAobVs
https://youtu.be/p1nXahmcQwg
���� = �������������� https://youtu.be/uZkYpvCK2pw
�������������������������� ି
����������������
��������������������������
��������������
����������������������������������
% (eq. 5)
The signs of Eqs. (2) through (5) may be either positive or negative. If
the approximation is greater than the true value (or the previous
approximation is greater than the current approximation), the error is