SlideShare ist ein Scribd-Unternehmen logo
1 von 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.

Weitere ähnliche Inhalte

Was ist angesagt?

08 numerical integration 2
08 numerical integration 208 numerical integration 2
08 numerical integration 2Mohammad Tawfik
 
INVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
INVERSION OF MATRIX BY GAUSS ELIMINATION METHODINVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
INVERSION OF MATRIX BY GAUSS ELIMINATION METHODreach2arkaELECTRICAL
 
BSC_COMPUTER _SCIENCE_UNIT-2_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-2_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-2_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-2_DISCRETE MATHEMATICSRai University
 
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICSRai University
 
Analysis of a self-sustained vibration of mass-spring oscillator on moving belt
Analysis of a self-sustained vibration of mass-spring oscillator on moving beltAnalysis of a self-sustained vibration of mass-spring oscillator on moving belt
Analysis of a self-sustained vibration of mass-spring oscillator on moving beltVarun Jadhav
 
Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5Rai University
 
Gauss Jordan
Gauss JordanGauss Jordan
Gauss JordanEzzat Gul
 
B.Tech-II_Unit-III
B.Tech-II_Unit-IIIB.Tech-II_Unit-III
B.Tech-II_Unit-IIIKundan Kumar
 
A course on integral calculus
A course on integral calculusA course on integral calculus
A course on integral calculusGAURAV SAHA
 
B.tech ii unit-3 material multiple integration
B.tech ii unit-3 material multiple integrationB.tech ii unit-3 material multiple integration
B.tech ii unit-3 material multiple integrationRai University
 
B.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integrationB.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integrationRai University
 
Vector calculus
Vector calculusVector calculus
Vector calculussujathavvv
 
Btech_II_ engineering mathematics_unit4
Btech_II_ engineering mathematics_unit4Btech_II_ engineering mathematics_unit4
Btech_II_ engineering mathematics_unit4Rai University
 

Was ist angesagt? (20)

08 numerical integration 2
08 numerical integration 208 numerical integration 2
08 numerical integration 2
 
INVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
INVERSION OF MATRIX BY GAUSS ELIMINATION METHODINVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
INVERSION OF MATRIX BY GAUSS ELIMINATION METHOD
 
BSC_COMPUTER _SCIENCE_UNIT-2_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-2_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-2_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-2_DISCRETE MATHEMATICS
 
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICSBSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
BSC_COMPUTER _SCIENCE_UNIT-5_DISCRETE MATHEMATICS
 
Analysis of a self-sustained vibration of mass-spring oscillator on moving belt
Analysis of a self-sustained vibration of mass-spring oscillator on moving beltAnalysis of a self-sustained vibration of mass-spring oscillator on moving belt
Analysis of a self-sustained vibration of mass-spring oscillator on moving belt
 
Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5
 
LU FACTORIZATION METHOD
 LU FACTORIZATION METHOD LU FACTORIZATION METHOD
LU FACTORIZATION METHOD
 
GAUSS ELIMINATION METHOD
 GAUSS ELIMINATION METHOD GAUSS ELIMINATION METHOD
GAUSS ELIMINATION METHOD
 
Gauss sediel
Gauss sedielGauss sediel
Gauss sediel
 
Gauss Jordan
Gauss JordanGauss Jordan
Gauss Jordan
 
Integral calculus
Integral calculusIntegral calculus
Integral calculus
 
Z transforms
Z transformsZ transforms
Z transforms
 
B.Tech-II_Unit-V
B.Tech-II_Unit-VB.Tech-II_Unit-V
B.Tech-II_Unit-V
 
B.Tech-II_Unit-III
B.Tech-II_Unit-IIIB.Tech-II_Unit-III
B.Tech-II_Unit-III
 
A course on integral calculus
A course on integral calculusA course on integral calculus
A course on integral calculus
 
B.tech ii unit-3 material multiple integration
B.tech ii unit-3 material multiple integrationB.tech ii unit-3 material multiple integration
B.tech ii unit-3 material multiple integration
 
B.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integrationB.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integration
 
Vector calculus
Vector calculusVector calculus
Vector calculus
 
Linear and non linear equation
Linear and non linear equationLinear and non linear equation
Linear and non linear equation
 
Btech_II_ engineering mathematics_unit4
Btech_II_ engineering mathematics_unit4Btech_II_ engineering mathematics_unit4
Btech_II_ engineering mathematics_unit4
 

Andere mochten auch

interpolation
interpolationinterpolation
interpolation8laddu8
 
Least square method
Least square methodLeast square method
Least square methodSomya Bagai
 
Interpolation and extrapolation
Interpolation and extrapolationInterpolation and extrapolation
Interpolation and extrapolationAswin Pv
 
Interpolation
InterpolationInterpolation
Interpolationmbhuiya6
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation Meet Patel
 
Applied numerical methods lec9
Applied numerical methods lec9Applied numerical methods lec9
Applied numerical methods lec9Yasser Ahmed
 
Newton's forward difference
Newton's forward differenceNewton's forward difference
Newton's forward differenceRaj Parekh
 
Binomial Distribution
Binomial DistributionBinomial Distribution
Binomial Distributionarm74
 
Newton’s Divided Difference Formula
Newton’s Divided Difference FormulaNewton’s Divided Difference Formula
Newton’s Divided Difference FormulaJas Singh Bhasin
 
Arrays & functions in php
Arrays & functions in phpArrays & functions in php
Arrays & functions in phpAshish Chamoli
 
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
 
Spline Interpolation
Spline InterpolationSpline Interpolation
Spline InterpolationaiQUANT
 
09 numerical integration
09 numerical integration09 numerical integration
09 numerical integrationMohammad Tawfik
 
Probability mass functions and probability density functions
Probability mass functions and probability density functionsProbability mass functions and probability density functions
Probability mass functions and probability density functionsAnkit Katiyar
 
Math1003 1.13 - Significant Digits, Accuracy, Precision
Math1003 1.13 - Significant Digits, Accuracy, PrecisionMath1003 1.13 - Significant Digits, Accuracy, Precision
Math1003 1.13 - Significant Digits, Accuracy, Precisiongcmath1003
 

Andere mochten auch (20)

interpolation
interpolationinterpolation
interpolation
 
Least square method
Least square methodLeast square method
Least square method
 
Interpolation and extrapolation
Interpolation and extrapolationInterpolation and extrapolation
Interpolation and extrapolation
 
Interpolation
InterpolationInterpolation
Interpolation
 
LINEAR OPTIMIZATION
LINEAR OPTIMIZATIONLINEAR OPTIMIZATION
LINEAR OPTIMIZATION
 
Newton’s Forward & backward interpolation
Newton’s Forward &  backward interpolation Newton’s Forward &  backward interpolation
Newton’s Forward & backward interpolation
 
Applied numerical methods lec9
Applied numerical methods lec9Applied numerical methods lec9
Applied numerical methods lec9
 
Newton's forward difference
Newton's forward differenceNewton's forward difference
Newton's forward difference
 
Binomial Distribution
Binomial DistributionBinomial Distribution
Binomial Distribution
 
Binomial theorem
Binomial theoremBinomial theorem
Binomial theorem
 
Newton’s Divided Difference Formula
Newton’s Divided Difference FormulaNewton’s Divided Difference Formula
Newton’s Divided Difference Formula
 
5 random variables
5 random variables5 random variables
5 random variables
 
Arrays & functions in php
Arrays & functions in phpArrays & functions in php
Arrays & functions in php
 
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
 
THE BINOMIAL THEOREM
THE BINOMIAL THEOREM THE BINOMIAL THEOREM
THE BINOMIAL THEOREM
 
Spline Interpolation
Spline InterpolationSpline Interpolation
Spline Interpolation
 
09 numerical integration
09 numerical integration09 numerical integration
09 numerical integration
 
Probability mass functions and probability density functions
Probability mass functions and probability density functionsProbability mass functions and probability density functions
Probability mass functions and probability density functions
 
Gauss jordan
Gauss jordanGauss jordan
Gauss jordan
 
Math1003 1.13 - Significant Digits, Accuracy, Precision
Math1003 1.13 - Significant Digits, Accuracy, PrecisionMath1003 1.13 - Significant Digits, Accuracy, Precision
Math1003 1.13 - Significant Digits, Accuracy, Precision
 

Ähnlich wie ENEM602 Curve Fitting Techniques

08 numerical integration
08 numerical integration08 numerical integration
08 numerical integrationMohammad 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
 
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
 
Open newton cotes quadrature with midpoint derivative for integration of al...
Open newton   cotes quadrature with midpoint derivative for integration of al...Open newton   cotes quadrature with midpoint derivative for integration of al...
Open newton cotes quadrature with midpoint derivative for integration of al...eSAT Journals
 
Applications of Multivariable Calculus.ppt
Applications of Multivariable Calculus.pptApplications of Multivariable Calculus.ppt
Applications of Multivariable Calculus.pptsaiprashanth973626
 
Dividing integers
Dividing integersDividing integers
Dividing integersbweldon
 

Ähnlich wie ENEM602 Curve Fitting Techniques (20)

08 numerical integration
08 numerical integration08 numerical integration
08 numerical integration
 
03 open methods
03 open methods03 open methods
03 open methods
 
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
 
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
 
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
 
Open newton cotes quadrature with midpoint derivative for integration of al...
Open newton   cotes quadrature with midpoint derivative for integration of al...Open newton   cotes quadrature with midpoint derivative for integration of al...
Open newton cotes quadrature with midpoint derivative for integration of al...
 
Applications of Multivariable Calculus.ppt
Applications of Multivariable Calculus.pptApplications of Multivariable Calculus.ppt
Applications of Multivariable Calculus.ppt
 
Dividing integers
Dividing integersDividing integers
Dividing integers
 
Greedy method
Greedy methodGreedy method
Greedy method
 

Mehr von 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
 

Mehr von 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
 

ENEM602 Curve Fitting Techniques

  • 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.