Chapter 1 (Introduction)
Chapter 1 (Introduction)
College of Engineering
Numerical Methods (GENG 300)
Instructor Information
• Prof. Usama Ebead
• Civil and Architectural Engineering
• College of Engineering
• Office: Building BCR- Room I205
• Phone:+974 4403 4189
• E-mail: uebead@qu.edu.qa
2
Prof. Usama Ebead
Course Contents
Numerical
5 Curve Fitting 6 Differentiation and
Integration
3
Prof. Usama Ebead
Course Objectives
• Tointroduce students to the most commonly used
numerical methods in the different engineering fields.
• The course is not theorem‐oriented one.
• The emphasis will be on the understandingof the
numerical methods concepts and on applying these
concepts for solving various problems.
• MATLAB and Microsoft Excel will be used as tools to
solve the problems using the different numerical methods.
4
Prof. Usama Ebead
Tentative Grading
Assessment Percentage
Midterm(s) 20 %
Project 10 %
Lab 20 %
Final Exam 35 %
5
Prof. Usama Ebead
Course Objectives
Mathematical Model/Equations
• It is an expression of a system in mathematical terms.
7
Prof. Usama Ebead
Mathematical Model
• Complex example: The air resistance force
Model for falling parachute:
Mathematical Model
• Complex example: 𝑑𝑣
=𝑔−
𝑐
Model for falling parachute: 𝑑𝑡 𝑚𝑣
9
Prof. Usama Ebead
Dimensional Homogeneity
Each of the terms of an equation must be
expressed in the same units.
s = v t + 1/2 a t2
s is the distance (position) in meters
v is velocity in m/s
a is acceleration in m/s2
t is time in seconds
m = m/s s + m/s2 s2 = m
Prof. Usama Ebead
Significant figures
A significant figure is any digit, including a zero, provided it is
not used to specify the location of the decimal point for the
number.
Error Analysis
• Why errors are of a concern?
- For many engineering problems, we cannot obtain exact
solutions.
- Numerical methods yield approximate results that are
close to the exact solution.
• How much error is present in our calculation and is it
tolerable?
- True Error: Numerical error equal to discrepancy
between the true value and approximated value, 𝐸𝑡
𝐸𝑡 = 𝑇𝑟𝑢𝑒 𝑣𝑎𝑙𝑢𝑒 − 𝑎𝑝𝑝𝑟𝑜𝑥𝑖𝑚𝑎𝑡𝑒𝑑 𝑣𝑎𝑙𝑢𝑒
- True percent relative, 𝜀𝑡
𝑡𝑟𝑢𝑒 𝑒𝑟𝑟𝑜𝑟
𝜀𝑡 = × 100%
𝑡𝑟𝑢𝑒 𝑣𝑎𝑙𝑢𝑒
12
Prof. Usama Ebead
Error Analysis
• What if we can not get the true value? How can we
calculate the error?
- We normalized the error to approximate the value.
- Numerical methods use iterative approach to compute
answers. A present approximation is made on the basis of
a previous approximation.
- Absolute Percent relative error, 𝜀𝑎
13
Prof. Usama Ebead
Ex.
If the mass of a standard sample is 50 gram, if you took multiple
measurements of it and obtain values:
A) 47.5, 47.6, 47.5, and 47.7 grams your scale is precise,
but not that accurate;
B) 49.8, 50.5, 51.0, and 49.6 gram your scale is accurate
but not as as precise
14
Prof. Usama Ebead
15
Prof. Usama Ebead
Taylor Series
• What is the Taylor Series?
- A mathematical formulation that used widely in numerical
methods to predict a function value in approximate
fashion.
• Why it is called series?
- It is built term-by-term, starting with a zero-order
approximation. The higher the order the lower the error.
- Errors result from using an approximation in place of an
exact mathematical procedure.
16
Prof. Usama Ebead
Taylor Series
Zero-order approximation:
𝑓(𝑥𝑖+1 ) ≅ 𝑓(𝑥𝑖 )
First-order approximation:
𝑓(𝑥𝑖+1 ) ≅ 𝑓(𝑥𝑖 ) + 𝑓′(𝑥𝑖 )(𝑥𝑖+1 − 𝑥𝑖 )
Let’s call 𝒙𝒊+𝟏 – 𝒙𝒊 = 𝒉
𝑓(𝑥𝑖+1 ) ≅ 𝑓(𝑥𝑖 ) + 𝑓 ′ 𝑥𝑖 ℎ
Second-order approximation:
𝑓 ′′ 𝑥
′ 𝑖
𝑓(𝑥𝑖+1 ) ≅ 𝑓(𝑥𝑖 ) + 𝑓 𝑥𝑖 ℎ + ℎ2
2!
17
Prof. Usama Ebead
Taylor Series
• Higher nth-order approximation:
𝑓′′ 𝑥𝑖 2
𝑓 𝑥𝑖+1 = 𝑓 𝑥𝑖 + 𝑓′ 𝑥𝑖 ℎ + ℎ +
2!
𝑓 3 𝑥𝑖 𝑓 𝑛 𝑥𝑖 𝑛
ℎ3 + ⋯ … … . + ℎ + 𝑅𝑛
3! 𝑛!
18
Prof. Usama Ebead
Taylor Series
• Example: Use Taylor Series to approximate 𝑓 𝑥 = cos(𝑥)
𝜋 𝜋 𝜋
to evaluate 𝑓 on the basic of value 𝑓 . 𝑥𝑖 = and
3 4 4
𝜋
𝑥𝑖 + 1 =
3
Taylor Series
graphically
20
Prof. Usama Ebead
21
Prof. Usama Ebead
Thanks!
22