Numerical Methods Chapter 1 3 4
Numerical Methods Chapter 1 3 4
Introduction
Discussion
• What are Numerical Methods?
• Why do we need them?
• Numerical Methods: Algorithms that are used
to obtain numerical solutions of a
mathematical problem.
• Why do we need them?
– No analytical solution exists,
– An analytical solution is difficult to obtain or not
practical.
Common Engineering Problems
• Some engineering problems are very difficult
to solve for complex cases.
• Modern engineering processes involve
complex cases
– Fluid mechanics,
– Circuit design
– Structural design
Benefits of Numerical Methods
• Cost savings by minimizing material usage.
• Increased speed to market through reduced
product development time.
• Optimized structural performance with
thorough analysis.
• Eliminate expensive trial-and-error.
Features of Good Numerical Methods
• FAST
– Problems should be reasonable amount of time
• ACCURATE
– Solutions should be representative enough to the
Physical Problem.
What Can’t computers do?
• Solve (by reasoning) general mathematical
problems
– they can only repetitively apply arithmetic
primitives to input.
• Solve problems exactly.
• Represent all numbers.
– Only a finite subset of the numbers between 0
and 1 can be represented.
Solution Approach for Engineering
Problems
• How do you solve an
engineering problem
with computers on a
real engineering
cycle?
A sample engineering problem
• Newton’s 2nd law of Motion
– “The time rate change of momentum of a
body is equal to the resulting force acting
on it.”
• Formulated as F = m.a
– F = net force acting on the body
– m = mass of the object (kg)
– a = its acceleration (m/s2)
• Some complex models may require more
sophisticated mathematical techniques
than simple algebra
– Example, modeling of a falling parachutist:
• 𝐹𝑈 = Force due to air resistance = -cv (c = drag
coefficient)
• 𝐹𝐷 = Force due to gravity = mg
Write the governing equations
• Newton’s 2nd law:
• Substituting:
• or simply:
• This is approximation
is true when:
0 1.2 -1.0
1 0.95 -0.75
2 0.45 -0.25
4 0.2 0
Taylor series of polynomials
• nth order Taylor series gives the exact solution
of nth order polynomial.
• In real world problems, however, it is not
possible to determine the error. (Rn)
– If we knew the error we would fix it!!!
• But remainder is still useful. From the Rn-1 we
know how accurate our approximation is.
– Provided that Rn < Rn-1
Remainder explained:
• Here is the graphical representation of the
zero order approximations.
Approximation order vs. step size
• It looks like when we increase the
order of approximation, we will have
better results.
• The other method can be defined as
decreasing step size dx = (xi+1 –xi).
• Then slope approximations become
closer to the limit case.
• Consider the function f(x)=x4.
• It is obvious that if we calculate fourth
order Taylor series, we get the exact
result.
• Instead, write Taylor series of first
order, and calculate for different
number of steps.
First order approximation
• Since slope variation is small, error of first order
approximation is also small.