SlideShare a Scribd company logo
1 of 31
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Interpolation/Curve Fitting
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Objectives
• Understanding the difference between
regression and interpolation
• Knowing how to “best fit” a polynomial into
a set of data
• Knowing how to use a polynomial to
interpolate data
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Measured Data
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Polynomial Fit!
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Line Fit!
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Which is better?
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Curve Fitting
• If the data measured is of high accuracy
and it is required to estimate the values of
the function between the given points,
then, polynomial interpolation is the
best choice.
• If the measurements are expected to be of
low accuracy, or the number of
measured points is too large, regression
would be the best choice.
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Interpolation
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Why Interpolation?
• When the accuracy of your measurements
are ensured
• When you have discrete values for a
function (numerical solutions, digital
systems, etc …)
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Acquired Data
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
But, how to get the equation of a
function that passes by all the
data you have!
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Equation of a Line: Revision
xaay 21 +=
If you have two points
1211 xaay +=
2212 xaay += 





=












2
1
2
1
2
1
1
1
y
y
a
a
x
x
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Solving for the constants!
12
12
2
12
2112
1 &
xx
yy
a
xx
yxyx
a
−
−
=
−
−
=
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
What if I have more than two
points?
• We may fit a
polynomial of order
one less that the
number of points we
have. i.e. four points
give third order
polynomial.
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Third-Order Polynomial
3
4
2
321 xaxaxaay +++=
For the four points
3
14
2
131211 xaxaxaay +++=
3
24
2
232212 xaxaxaay +++=
3
34
2
333213 xaxaxaay +++=
3
44
2
434214 xaxaxaay +++=
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
In Matrix Form














=




























4
3
2
1
4
3
2
1
3
4
2
24
3
3
2
23
3
2
2
22
3
1
2
11
1
1
1
1
y
y
y
y
a
a
a
a
xxx
xxx
xxx
xxx
Solve the above equation for the constants of the polynomial.
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Newton's Interpolation
Polynomial
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Newton’s Method
• In the previous procedure, we needed to solve a
system of linear equations for the unknown
constants.
• This method suggests that we may just proceed
with the values of x & y we have to get the
constants without setting a set of equations
• The method is similar to Taylor’s expansion
without differentiation!
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Equation of a Line: Revision
xaay 21 +=
If you have two points
1211 xaay +=
2212 xaay += 





=












2
1
2
1
2
1
1
1
y
y
a
a
x
x
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
For the two points
12
12
1
1
xx
yy
xx
yy
−
−
=
−
−
( )
12
12
1
1
xx
yy
xx
yxf
−
−
=
−
−
( ) ( )1
12
12
1 xx
xx
yy
yxf −





−
−
+=
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
For the three points
( ) ( )
( )( )213
121
xxxxa
xxaaxf
−−+
−+=
11 ya =
12
12
2
xx
yy
a
−
−
=
13
12
12
23
23
3
xx
xx
yy
xx
yy
a
−
−
−
−
−
−
=
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Using a table
xi yi
x1 y1
x2 y2
x3 y3
13
12
12
23
23
xx
xx
yy
xx
yy
−
−
−
−
−
−
12
12
xx
yy
−
−
23
23
xx
yy
−
−
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
In General
• Newton’s Interpolation is performed for an
nth
order polynomial as follows
( ) ( ) ( )( )
( ) ( )nn xxxxa
xxxxaxxaaxf
−−++
−−+−+=
+ ...... 11
213121
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Example
• Find a 3rd
order
polynomial to
interpolate the
function described by
the given points
x Y
-1 1
0 2
1 5
2 16
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Solution: System of equations
• A third order polynomial is given by:
( ) 3
4
2
321 xaxaxaaxf +++=
( ) 11 4321 =−+−=− aaaaf
( ) 20 1 == af
( ) 51 4321 =+++= aaaaf
( ) 168422 4321 =+++= aaaaf
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
In matrix form














=

























 −−
16
5
2
1
8421
1111
0001
1111
4
3
2
1
a
a
a
a














=














1
1
1
2
4
3
2
1
a
a
a
a
( ) 32
2 xxxxf +++=
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Newton’s Method
• Newton’s methods defines the polynomial in the
form:
( ) ( ) ( )( )
( )( )( )3214
213121
xxxxxxa
xxxxaxxaaxf
−−−+
−−+−+=
( ) ( ) ( )( )
( )( )( )11
11
4
321
−++
++++=
xxxa
xxaxaaxf
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Newton’s Method
x Y
-1 1 1 1 1
0 2 3 4
1 5 11
2 16
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Newton’s Method
• Finally:
( ) ( ) ( )( )
( )( )( )11
111
−++
++++=
xxx
xxxxf
( ) ( ) ( ) ( )xxxxxxf −+++++= 32
11
( ) 32
2 xxxxf +++=
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Advantage of Newton’s Method
• The main advantage of Newton’s method
is that you do not need to invert a matrix!
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Homework #6
• Chapter 18, pp. 505-506, numbers:
18.1, 18.2, 18.3, 18.5.

More Related Content

What's hot

Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets Vladimir Godovalov
 
A NEW STUDY TO FIND OUT THE BEST COMPUTATIONAL METHOD FOR SOLVING THE NONLINE...
A NEW STUDY TO FIND OUT THE BEST COMPUTATIONAL METHOD FOR SOLVING THE NONLINE...A NEW STUDY TO FIND OUT THE BEST COMPUTATIONAL METHOD FOR SOLVING THE NONLINE...
A NEW STUDY TO FIND OUT THE BEST COMPUTATIONAL METHOD FOR SOLVING THE NONLINE...mathsjournal
 
Statistics assignment
Statistics assignmentStatistics assignment
Statistics assignmentBrian Miles
 
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICSRai University
 
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-III
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-IIIEngineering Mathematics-IV_B.Tech_Semester-IV_Unit-III
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-IIIRai University
 
Triangularization method
Triangularization methodTriangularization method
Triangularization methodKamran Ansari
 

What's hot (13)

Matrix
MatrixMatrix
Matrix
 
Curve fitting
Curve fittingCurve fitting
Curve fitting
 
Course pack unit 5
Course pack unit 5Course pack unit 5
Course pack unit 5
 
Q0749397
Q0749397Q0749397
Q0749397
 
Hprec2 1
Hprec2 1Hprec2 1
Hprec2 1
 
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
 
A NEW STUDY TO FIND OUT THE BEST COMPUTATIONAL METHOD FOR SOLVING THE NONLINE...
A NEW STUDY TO FIND OUT THE BEST COMPUTATIONAL METHOD FOR SOLVING THE NONLINE...A NEW STUDY TO FIND OUT THE BEST COMPUTATIONAL METHOD FOR SOLVING THE NONLINE...
A NEW STUDY TO FIND OUT THE BEST COMPUTATIONAL METHOD FOR SOLVING THE NONLINE...
 
Ijetcas14 608
Ijetcas14 608Ijetcas14 608
Ijetcas14 608
 
Statistics assignment
Statistics assignmentStatistics assignment
Statistics assignment
 
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-3_DISCRETE MATHEMATICS
 
Ap4103260265
Ap4103260265Ap4103260265
Ap4103260265
 
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-III
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-IIIEngineering Mathematics-IV_B.Tech_Semester-IV_Unit-III
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-III
 
Triangularization method
Triangularization methodTriangularization method
Triangularization method
 

Viewers also liked

Applied numerical methods lec11
Applied numerical methods lec11Applied numerical methods lec11
Applied numerical methods lec11Yasser Ahmed
 
SJUT/Mat210/Regression/Intro 2013-14S2
SJUT/Mat210/Regression/Intro 2013-14S2SJUT/Mat210/Regression/Intro 2013-14S2
SJUT/Mat210/Regression/Intro 2013-14S2John Ham
 
8.7 numerical integration
8.7 numerical integration8.7 numerical integration
8.7 numerical integrationdicosmo178
 
Applied numerical methods lec8
Applied numerical methods lec8Applied numerical methods lec8
Applied numerical methods lec8Yasser Ahmed
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integrationTarun Gehlot
 
numerical differentiation&integration
numerical differentiation&integrationnumerical differentiation&integration
numerical differentiation&integration8laddu8
 
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationApplied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationBrian Erandio
 
Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1Muhammad Waqas
 
Introduction to Numerical Analysis
Introduction to Numerical AnalysisIntroduction to Numerical Analysis
Introduction to Numerical AnalysisMohammad Tawfik
 

Viewers also liked (15)

Applied numerical methods lec11
Applied numerical methods lec11Applied numerical methods lec11
Applied numerical methods lec11
 
03 open methods
03 open methods03 open methods
03 open methods
 
SJUT/Mat210/Regression/Intro 2013-14S2
SJUT/Mat210/Regression/Intro 2013-14S2SJUT/Mat210/Regression/Intro 2013-14S2
SJUT/Mat210/Regression/Intro 2013-14S2
 
1519 differentiation-integration-02
1519 differentiation-integration-021519 differentiation-integration-02
1519 differentiation-integration-02
 
8.7 numerical integration
8.7 numerical integration8.7 numerical integration
8.7 numerical integration
 
Applied numerical methods lec8
Applied numerical methods lec8Applied numerical methods lec8
Applied numerical methods lec8
 
Numerical method (curve fitting)
Numerical method (curve fitting)Numerical method (curve fitting)
Numerical method (curve fitting)
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
 
Es272 ch6
Es272 ch6Es272 ch6
Es272 ch6
 
numerical differentiation&integration
numerical differentiation&integrationnumerical differentiation&integration
numerical differentiation&integration
 
Curve fitting
Curve fitting Curve fitting
Curve fitting
 
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationApplied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
 
Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1Engineering Numerical Analysis Lecture-1
Engineering Numerical Analysis Lecture-1
 
Interpolation Methods
Interpolation MethodsInterpolation Methods
Interpolation Methods
 
Introduction to Numerical Analysis
Introduction to Numerical AnalysisIntroduction to Numerical Analysis
Introduction to Numerical Analysis
 

Similar to 09 numerical differentiation

08 numerical integration
08 numerical integration08 numerical integration
08 numerical integrationMohammad Tawfik
 
09 numerical integration
09 numerical integration09 numerical integration
09 numerical integrationMohammad Tawfik
 
08 interpolation lagrange
08 interpolation   lagrange08 interpolation   lagrange
08 interpolation lagrangeMohammad Tawfik
 
08 numerical integration 2
08 numerical integration 208 numerical integration 2
08 numerical integration 2Mohammad Tawfik
 
11 initial value problems system
11 initial value problems   system11 initial value problems   system
11 initial value problems systemMohammad Tawfik
 
TANGEDCO / TNEB AE 2018 Engineering Mathematics Previous Paper
TANGEDCO / TNEB AE 2018 Engineering Mathematics Previous PaperTANGEDCO / TNEB AE 2018 Engineering Mathematics Previous Paper
TANGEDCO / TNEB AE 2018 Engineering Mathematics Previous PaperTest Shopping
 
Intro. to computational Physics ch2.pdf
Intro. to computational Physics ch2.pdfIntro. to computational Physics ch2.pdf
Intro. to computational Physics ch2.pdfJifarRaya
 
Fortran chapter 2.pdf
Fortran chapter 2.pdfFortran chapter 2.pdf
Fortran chapter 2.pdfJifarRaya
 
Hybrid Block Method for the Solution of First Order Initial Value Problems of...
Hybrid Block Method for the Solution of First Order Initial Value Problems of...Hybrid Block Method for the Solution of First Order Initial Value Problems of...
Hybrid Block Method for the Solution of First Order Initial Value Problems of...iosrjce
 
FFT and DFT algorithm
FFT and DFT algorithmFFT and DFT algorithm
FFT and DFT algorithmUmer Javed
 
Feb. 14th, 2014
Feb. 14th, 2014Feb. 14th, 2014
Feb. 14th, 2014khyps13
 
CENTRAL LIMIT THEOREM- STATISTICS AND PROBABILITY
CENTRAL LIMIT THEOREM- STATISTICS AND PROBABILITYCENTRAL LIMIT THEOREM- STATISTICS AND PROBABILITY
CENTRAL LIMIT THEOREM- STATISTICS AND PROBABILITYSharmaineTuliao1
 
Inequalities and modulus session 2
Inequalities and modulus session 2Inequalities and modulus session 2
Inequalities and modulus session 2George Prep
 
Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...
Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...
Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...IOSR Journals
 
Unit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxUnit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxssuser01e301
 

Similar to 09 numerical differentiation (20)

08 numerical integration
08 numerical integration08 numerical integration
08 numerical integration
 
09 numerical integration
09 numerical integration09 numerical integration
09 numerical integration
 
08 interpolation lagrange
08 interpolation   lagrange08 interpolation   lagrange
08 interpolation lagrange
 
08 numerical integration 2
08 numerical integration 208 numerical integration 2
08 numerical integration 2
 
11 initial value problems system
11 initial value problems   system11 initial value problems   system
11 initial value problems system
 
TANGEDCO / TNEB AE 2018 Engineering Mathematics Previous Paper
TANGEDCO / TNEB AE 2018 Engineering Mathematics Previous PaperTANGEDCO / TNEB AE 2018 Engineering Mathematics Previous Paper
TANGEDCO / TNEB AE 2018 Engineering Mathematics Previous Paper
 
Analysis of Variance
Analysis of VarianceAnalysis of Variance
Analysis of Variance
 
Intro. to computational Physics ch2.pdf
Intro. to computational Physics ch2.pdfIntro. to computational Physics ch2.pdf
Intro. to computational Physics ch2.pdf
 
Fortran chapter 2.pdf
Fortran chapter 2.pdfFortran chapter 2.pdf
Fortran chapter 2.pdf
 
Chap10 anova
Chap10 anovaChap10 anova
Chap10 anova
 
Hybrid Block Method for the Solution of First Order Initial Value Problems of...
Hybrid Block Method for the Solution of First Order Initial Value Problems of...Hybrid Block Method for the Solution of First Order Initial Value Problems of...
Hybrid Block Method for the Solution of First Order Initial Value Problems of...
 
FFT and DFT algorithm
FFT and DFT algorithmFFT and DFT algorithm
FFT and DFT algorithm
 
Feb. 14th, 2014
Feb. 14th, 2014Feb. 14th, 2014
Feb. 14th, 2014
 
G5Q3-WEEK-6-MATH-PPT.pptx
G5Q3-WEEK-6-MATH-PPT.pptxG5Q3-WEEK-6-MATH-PPT.pptx
G5Q3-WEEK-6-MATH-PPT.pptx
 
CENTRAL LIMIT THEOREM- STATISTICS AND PROBABILITY
CENTRAL LIMIT THEOREM- STATISTICS AND PROBABILITYCENTRAL LIMIT THEOREM- STATISTICS AND PROBABILITY
CENTRAL LIMIT THEOREM- STATISTICS AND PROBABILITY
 
Inequalities and modulus session 2
Inequalities and modulus session 2Inequalities and modulus session 2
Inequalities and modulus session 2
 
Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...
Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...
Uniform Order Legendre Approach for Continuous Hybrid Block Methods for the S...
 
LA question Pool
LA question PoolLA question Pool
LA question Pool
 
13 weightedresidual
13 weightedresidual13 weightedresidual
13 weightedresidual
 
Unit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxUnit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptx
 

More from Mohammad Tawfik

Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073Mohammad Tawfik
 
Supply Chain Management 01 - Introduction
Supply Chain Management 01 - IntroductionSupply Chain Management 01 - Introduction
Supply Chain Management 01 - IntroductionMohammad Tawfik
 
Supply Chain Management 02 - Logistics
Supply Chain Management 02 - LogisticsSupply Chain Management 02 - Logistics
Supply Chain Management 02 - LogisticsMohammad Tawfik
 
Supply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory ManagementSupply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory ManagementMohammad Tawfik
 
Creative problem solving and decision making
Creative problem solving and decision makingCreative problem solving and decision making
Creative problem solving and decision makingMohammad Tawfik
 
Digital content for teaching introduction
Digital content for teaching introductionDigital content for teaching introduction
Digital content for teaching introductionMohammad Tawfik
 
Crisis Management Basics
Crisis Management BasicsCrisis Management Basics
Crisis Management BasicsMohammad Tawfik
 
Effective Delegation Skills
Effective Delegation SkillsEffective Delegation Skills
Effective Delegation SkillsMohammad Tawfik
 
Business Management - Marketing
Business Management - MarketingBusiness Management - Marketing
Business Management - MarketingMohammad Tawfik
 
Project Management (CAPM) - Integration
Project Management (CAPM) - IntegrationProject Management (CAPM) - Integration
Project Management (CAPM) - IntegrationMohammad Tawfik
 
Project Management (CAPM) - The Framework
Project Management (CAPM) - The FrameworkProject Management (CAPM) - The Framework
Project Management (CAPM) - The FrameworkMohammad Tawfik
 
Project Management (CAPM) - Introduction
Project Management (CAPM) - IntroductionProject Management (CAPM) - Introduction
Project Management (CAPM) - IntroductionMohammad Tawfik
 
Introduction to Wind Energy
Introduction to Wind EnergyIntroduction to Wind Energy
Introduction to Wind EnergyMohammad Tawfik
 
Finite Element for Trusses in 2-D
Finite Element for Trusses in 2-DFinite Element for Trusses in 2-D
Finite Element for Trusses in 2-DMohammad Tawfik
 

More from Mohammad Tawfik (20)

Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073Supply Chain Management for Engineers - INDE073
Supply Chain Management for Engineers - INDE073
 
Supply Chain Management 01 - Introduction
Supply Chain Management 01 - IntroductionSupply Chain Management 01 - Introduction
Supply Chain Management 01 - Introduction
 
Supply Chain Management 02 - Logistics
Supply Chain Management 02 - LogisticsSupply Chain Management 02 - Logistics
Supply Chain Management 02 - Logistics
 
Supply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory ManagementSupply Chain Management 03 - Inventory Management
Supply Chain Management 03 - Inventory Management
 
Creative problem solving and decision making
Creative problem solving and decision makingCreative problem solving and decision making
Creative problem solving and decision making
 
Digital content for teaching introduction
Digital content for teaching introductionDigital content for teaching introduction
Digital content for teaching introduction
 
Crisis Management Basics
Crisis Management BasicsCrisis Management Basics
Crisis Management Basics
 
DISC Personality Model
DISC Personality ModelDISC Personality Model
DISC Personality Model
 
Training of Trainers
Training of TrainersTraining of Trainers
Training of Trainers
 
Effective Delegation Skills
Effective Delegation SkillsEffective Delegation Skills
Effective Delegation Skills
 
Train The Trainer
Train The TrainerTrain The Trainer
Train The Trainer
 
Business Management - Marketing
Business Management - MarketingBusiness Management - Marketing
Business Management - Marketing
 
Stress Management
Stress ManagementStress Management
Stress Management
 
Project Management (CAPM) - Integration
Project Management (CAPM) - IntegrationProject Management (CAPM) - Integration
Project Management (CAPM) - Integration
 
Project Management (CAPM) - The Framework
Project Management (CAPM) - The FrameworkProject Management (CAPM) - The Framework
Project Management (CAPM) - The Framework
 
Project Management (CAPM) - Introduction
Project Management (CAPM) - IntroductionProject Management (CAPM) - Introduction
Project Management (CAPM) - Introduction
 
The Creative Individual
The Creative IndividualThe Creative Individual
The Creative Individual
 
Introduction to Wind Energy
Introduction to Wind EnergyIntroduction to Wind Energy
Introduction to Wind Energy
 
Finite Element for Trusses in 2-D
Finite Element for Trusses in 2-DFinite Element for Trusses in 2-D
Finite Element for Trusses in 2-D
 
Future of Drones ITW'16
Future of Drones ITW'16Future of Drones ITW'16
Future of Drones ITW'16
 

Recently uploaded

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

09 numerical differentiation

  • 1. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Interpolation/Curve Fitting
  • 2. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Objectives • Understanding the difference between regression and interpolation • Knowing how to “best fit” a polynomial into a set of data • Knowing how to use a polynomial to interpolate data
  • 3. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Measured Data
  • 4. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Polynomial Fit!
  • 5. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Line Fit!
  • 6. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Which is better?
  • 7. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Curve Fitting • If the data measured is of high accuracy and it is required to estimate the values of the function between the given points, then, polynomial interpolation is the best choice. • If the measurements are expected to be of low accuracy, or the number of measured points is too large, regression would be the best choice.
  • 8. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Interpolation
  • 9. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Why Interpolation? • When the accuracy of your measurements are ensured • When you have discrete values for a function (numerical solutions, digital systems, etc …)
  • 10. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Acquired Data
  • 11. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik But, how to get the equation of a function that passes by all the data you have!
  • 12. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Equation of a Line: Revision xaay 21 += If you have two points 1211 xaay += 2212 xaay +=       =             2 1 2 1 2 1 1 1 y y a a x x
  • 13. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Solving for the constants! 12 12 2 12 2112 1 & xx yy a xx yxyx a − − = − − =
  • 14. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik What if I have more than two points? • We may fit a polynomial of order one less that the number of points we have. i.e. four points give third order polynomial.
  • 15. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Third-Order Polynomial 3 4 2 321 xaxaxaay +++= For the four points 3 14 2 131211 xaxaxaay +++= 3 24 2 232212 xaxaxaay +++= 3 34 2 333213 xaxaxaay +++= 3 44 2 434214 xaxaxaay +++=
  • 16. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik In Matrix Form               =                             4 3 2 1 4 3 2 1 3 4 2 24 3 3 2 23 3 2 2 22 3 1 2 11 1 1 1 1 y y y y a a a a xxx xxx xxx xxx Solve the above equation for the constants of the polynomial.
  • 17. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Newton's Interpolation Polynomial
  • 18. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Newton’s Method • In the previous procedure, we needed to solve a system of linear equations for the unknown constants. • This method suggests that we may just proceed with the values of x & y we have to get the constants without setting a set of equations • The method is similar to Taylor’s expansion without differentiation!
  • 19. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Equation of a Line: Revision xaay 21 += If you have two points 1211 xaay += 2212 xaay +=       =             2 1 2 1 2 1 1 1 y y a a x x
  • 20. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik For the two points 12 12 1 1 xx yy xx yy − − = − − ( ) 12 12 1 1 xx yy xx yxf − − = − − ( ) ( )1 12 12 1 xx xx yy yxf −      − − +=
  • 21. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik For the three points ( ) ( ) ( )( )213 121 xxxxa xxaaxf −−+ −+= 11 ya = 12 12 2 xx yy a − − = 13 12 12 23 23 3 xx xx yy xx yy a − − − − − − =
  • 22. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Using a table xi yi x1 y1 x2 y2 x3 y3 13 12 12 23 23 xx xx yy xx yy − − − − − − 12 12 xx yy − − 23 23 xx yy − −
  • 23. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik In General • Newton’s Interpolation is performed for an nth order polynomial as follows ( ) ( ) ( )( ) ( ) ( )nn xxxxa xxxxaxxaaxf −−++ −−+−+= + ...... 11 213121
  • 24. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Example • Find a 3rd order polynomial to interpolate the function described by the given points x Y -1 1 0 2 1 5 2 16
  • 25. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Solution: System of equations • A third order polynomial is given by: ( ) 3 4 2 321 xaxaxaaxf +++= ( ) 11 4321 =−+−=− aaaaf ( ) 20 1 == af ( ) 51 4321 =+++= aaaaf ( ) 168422 4321 =+++= aaaaf
  • 26. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik In matrix form               =                           −− 16 5 2 1 8421 1111 0001 1111 4 3 2 1 a a a a               =               1 1 1 2 4 3 2 1 a a a a ( ) 32 2 xxxxf +++=
  • 27. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Newton’s Method • Newton’s methods defines the polynomial in the form: ( ) ( ) ( )( ) ( )( )( )3214 213121 xxxxxxa xxxxaxxaaxf −−−+ −−+−+= ( ) ( ) ( )( ) ( )( )( )11 11 4 321 −++ ++++= xxxa xxaxaaxf
  • 28. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Newton’s Method x Y -1 1 1 1 1 0 2 3 4 1 5 11 2 16
  • 29. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Newton’s Method • Finally: ( ) ( ) ( )( ) ( )( )( )11 111 −++ ++++= xxx xxxxf ( ) ( ) ( ) ( )xxxxxxf −+++++= 32 11 ( ) 32 2 xxxxf +++=
  • 30. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Advantage of Newton’s Method • The main advantage of Newton’s method is that you do not need to invert a matrix!
  • 31. ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Homework #6 • Chapter 18, pp. 505-506, numbers: 18.1, 18.2, 18.3, 18.5.