SlideShare a Scribd company logo
1 of 16
Download to read offline
1
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
2
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Measured Data
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Polynomial Fit!
3
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Line Fit!
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Which is better?
4
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
5
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
6
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 10 +=
If you have two points
1101 xaay +=
2102 xaay += 





=












2
1
1
0
2
1
1
1
y
y
a
a
x
x
7
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Solving for the constants!
12
12
1
12
2112
0 &
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.
8
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Third-Order Polynomial
3
3
2
210 xaxaxaay +++=
For the four points
3
13
2
121101 xaxaxaay +++=
3
23
2
222102 xaxaxaay +++=
3
33
2
323103 xaxaxaay +++=
3
43
2
424104 xaxaxaay +++=
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
In Matrix Form














=




























4
3
2
1
3
2
1
0
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.
9
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Example
• Find a 3rd order
polynomial to
interpolate the
function described by
the given points
162
51
20
1-1
Yx
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
10
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 Interpolation
Polynomial
11
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
For the two points
( )110 xxbby −+=
( ) 0111101 byxxbby =⇒−+=
( )1
12
12
1 xx
xx
yy
yy −





−
−
+=
( )⇒−+= 12102 xxbby
( ) ( )
( )12
12
112112
xx
yy
bxxbyy
−
−
=⇒−+=
12
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Homework
• Show that the polynomial obtained by
solving a set of equations is equivalent to
that obtained by Newton method
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
For the three points
( ) ( )
( )( )213
121
xxxxb
xxbbxf
−−+
−+=
10 yb =
12
12
1
xx
yy
b
−
−
=
13
12
12
23
23
2
xx
xx
yy
xx
yy
b
−
−
−
−
−
−
=
13
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Using a table
y3x3
y2x2
y1x1
yixi
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 xxxxb
xxxxbxxbbxf
−−++
−−+−+=
...... 1
212110
14
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Example
• Find a 3rd order
polynomial to
interpolate the
function described by
the given points using
Newton’s method
162
51
20
1-1
Yx
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Newton’s Method
• Newton’s methods defines the polynomial in the
form:
( ) ( ) ( )( )
( )( )( )3213
212110
xxxxxxb
xxxxbxxbbxf
−−−+
−−+−+=
( ) ( ) ( )( )
( )( )( )11
11
3
210
−++
++++=
xxxb
xxbxbbxf
15
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Newton’s Method
162
1151
4320
1111-1
Yx
ENEM602 Spring 2007
Dr. Eng. Mohammad Tawfik
Newton’s Method
• Finally:
( ) ( ) ( )( )
( )( )( )11
111
−++
++++=
xxx
xxxxf
( ) ( ) ( ) ( )xxxxxxf −+++++= 32
11
( ) 32
2 xxxxf +++=
16
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

BSC_Computer Science_Discrete Mathematics_Unit-I
BSC_Computer Science_Discrete Mathematics_Unit-IBSC_Computer Science_Discrete Mathematics_Unit-I
BSC_Computer Science_Discrete Mathematics_Unit-IRai University
 
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
 
A course on integral calculus
A course on integral calculusA course on integral calculus
A course on integral calculusGAURAV SAHA
 
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
 
A uniform distribution has density function find n (1)
A uniform distribution has density function find n (1)A uniform distribution has density function find n (1)
A uniform distribution has density function find n (1)Nadeem Uddin
 
Properties of coefficient of correlation
Properties of coefficient of correlationProperties of coefficient of correlation
Properties of coefficient of correlationNadeem Uddin
 
MCA_UNIT-1_Computer Oriented Numerical Statistical Methods
MCA_UNIT-1_Computer Oriented Numerical Statistical MethodsMCA_UNIT-1_Computer Oriented Numerical Statistical Methods
MCA_UNIT-1_Computer Oriented Numerical Statistical MethodsRai University
 
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
 
Direct and indirect methods
Direct and indirect methodsDirect and indirect methods
Direct and indirect methodsEjaz hussain
 
B.Tech-II_Unit-III
B.Tech-II_Unit-IIIB.Tech-II_Unit-III
B.Tech-II_Unit-IIIKundan Kumar
 
New Two-Step Method with Fifth-Order Convergence for Solving Nonlinear Equations
New Two-Step Method with Fifth-Order Convergence for Solving Nonlinear EquationsNew Two-Step Method with Fifth-Order Convergence for Solving Nonlinear Equations
New Two-Step Method with Fifth-Order Convergence for Solving Nonlinear Equationsinventionjournals
 
MCA_UNIT-2_Computer Oriented Numerical Statistical Methods
MCA_UNIT-2_Computer Oriented Numerical Statistical MethodsMCA_UNIT-2_Computer Oriented Numerical Statistical Methods
MCA_UNIT-2_Computer Oriented Numerical Statistical MethodsRai University
 
On The Numerical Solution of Picard Iteration Method for Fractional Integro -...
On The Numerical Solution of Picard Iteration Method for Fractional Integro -...On The Numerical Solution of Picard Iteration Method for Fractional Integro -...
On The Numerical Solution of Picard Iteration Method for Fractional Integro -...DavidIlejimi
 

What's hot (20)

BSC_Computer Science_Discrete Mathematics_Unit-I
BSC_Computer Science_Discrete Mathematics_Unit-IBSC_Computer Science_Discrete Mathematics_Unit-I
BSC_Computer Science_Discrete Mathematics_Unit-I
 
Gauss sediel
Gauss sedielGauss sediel
Gauss sediel
 
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
 
A course on integral calculus
A course on integral calculusA course on integral calculus
A course on integral calculus
 
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
 
A uniform distribution has density function find n (1)
A uniform distribution has density function find n (1)A uniform distribution has density function find n (1)
A uniform distribution has density function find n (1)
 
Properties of coefficient of correlation
Properties of coefficient of correlationProperties of coefficient of correlation
Properties of coefficient of correlation
 
MCA_UNIT-1_Computer Oriented Numerical Statistical Methods
MCA_UNIT-1_Computer Oriented Numerical Statistical MethodsMCA_UNIT-1_Computer Oriented Numerical Statistical Methods
MCA_UNIT-1_Computer Oriented Numerical Statistical Methods
 
Integral calculus
Integral calculusIntegral calculus
Integral calculus
 
Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5Btech_II_ engineering mathematics_unit5
Btech_II_ engineering mathematics_unit5
 
Gauss Jordan
Gauss JordanGauss Jordan
Gauss Jordan
 
B.Tech-II_Unit-V
B.Tech-II_Unit-VB.Tech-II_Unit-V
B.Tech-II_Unit-V
 
Direct and indirect methods
Direct and indirect methodsDirect and indirect methods
Direct and indirect methods
 
B.Tech-II_Unit-III
B.Tech-II_Unit-IIIB.Tech-II_Unit-III
B.Tech-II_Unit-III
 
New Two-Step Method with Fifth-Order Convergence for Solving Nonlinear Equations
New Two-Step Method with Fifth-Order Convergence for Solving Nonlinear EquationsNew Two-Step Method with Fifth-Order Convergence for Solving Nonlinear Equations
New Two-Step Method with Fifth-Order Convergence for Solving Nonlinear Equations
 
MCA_UNIT-2_Computer Oriented Numerical Statistical Methods
MCA_UNIT-2_Computer Oriented Numerical Statistical MethodsMCA_UNIT-2_Computer Oriented Numerical Statistical Methods
MCA_UNIT-2_Computer Oriented Numerical Statistical Methods
 
On The Numerical Solution of Picard Iteration Method for Fractional Integro -...
On The Numerical Solution of Picard Iteration Method for Fractional Integro -...On The Numerical Solution of Picard Iteration Method for Fractional Integro -...
On The Numerical Solution of Picard Iteration Method for Fractional Integro -...
 
merged_document
merged_documentmerged_document
merged_document
 
B.Tech-II_Unit-IV
B.Tech-II_Unit-IVB.Tech-II_Unit-IV
B.Tech-II_Unit-IV
 

Viewers also liked

Vibration Damping: Lecture Notes - UMD Spring 2001
Vibration Damping: Lecture Notes - UMD Spring 2001Vibration Damping: Lecture Notes - UMD Spring 2001
Vibration Damping: Lecture Notes - UMD Spring 2001Mohammad Tawfik
 
Finite Element Analysis of the Aeroelasticity Plates Under Thermal and Aerody...
Finite Element Analysis of the Aeroelasticity Plates Under Thermal and Aerody...Finite Element Analysis of the Aeroelasticity Plates Under Thermal and Aerody...
Finite Element Analysis of the Aeroelasticity Plates Under Thermal and Aerody...Mohammad Tawfik
 
Airfoils and Wings: Airfoils
Airfoils and Wings: AirfoilsAirfoils and Wings: Airfoils
Airfoils and Wings: AirfoilsMohammad Tawfik
 
Definition of Basic Quantities
Definition of Basic QuantitiesDefinition of Basic Quantities
Definition of Basic QuantitiesMohammad Tawfik
 
Finite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal LoadingFinite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal LoadingMohammad Tawfik
 
Viscoelastic Damping: Lecture Notes 140202
Viscoelastic Damping: Lecture Notes 140202Viscoelastic Damping: Lecture Notes 140202
Viscoelastic Damping: Lecture Notes 140202Mohammad Tawfik
 
FEM: Introduction and Weighted Residual Methods
FEM: Introduction and Weighted Residual MethodsFEM: Introduction and Weighted Residual Methods
FEM: Introduction and Weighted Residual MethodsMohammad Tawfik
 
Krok 2 - 2010 Question Paper (Stomatology)
Krok 2 - 2010 Question Paper (Stomatology)Krok 2 - 2010 Question Paper (Stomatology)
Krok 2 - 2010 Question Paper (Stomatology)Eneutron
 
Newmark Time Integration
Newmark Time IntegrationNewmark Time Integration
Newmark Time IntegrationMohammad Tawfik
 
FEM: Stationary Functional Approach
FEM: Stationary Functional ApproachFEM: Stationary Functional Approach
FEM: Stationary Functional ApproachMohammad Tawfik
 
FEM: Nonlinear Beam Deflection Model (with Temperature)
FEM: Nonlinear Beam Deflection Model (with Temperature)FEM: Nonlinear Beam Deflection Model (with Temperature)
FEM: Nonlinear Beam Deflection Model (with Temperature)Mohammad Tawfik
 
Mechanics Of Composite Materials
Mechanics Of Composite MaterialsMechanics Of Composite Materials
Mechanics Of Composite MaterialsReddy Srikanth
 

Viewers also liked (20)

Vibration Damping: Lecture Notes - UMD Spring 2001
Vibration Damping: Lecture Notes - UMD Spring 2001Vibration Damping: Lecture Notes - UMD Spring 2001
Vibration Damping: Lecture Notes - UMD Spring 2001
 
Trusses!
Trusses!Trusses!
Trusses!
 
Finite Element Analysis of the Aeroelasticity Plates Under Thermal and Aerody...
Finite Element Analysis of the Aeroelasticity Plates Under Thermal and Aerody...Finite Element Analysis of the Aeroelasticity Plates Under Thermal and Aerody...
Finite Element Analysis of the Aeroelasticity Plates Under Thermal and Aerody...
 
Airfoils and Wings: Airfoils
Airfoils and Wings: AirfoilsAirfoils and Wings: Airfoils
Airfoils and Wings: Airfoils
 
Definition of Basic Quantities
Definition of Basic QuantitiesDefinition of Basic Quantities
Definition of Basic Quantities
 
Finite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal LoadingFinite Element Analysis of the Beams Under Thermal Loading
Finite Element Analysis of the Beams Under Thermal Loading
 
Piezo book
Piezo bookPiezo book
Piezo book
 
Viscoelastic Damping: Lecture Notes 140202
Viscoelastic Damping: Lecture Notes 140202Viscoelastic Damping: Lecture Notes 140202
Viscoelastic Damping: Lecture Notes 140202
 
Education: Why? How?
Education: Why? How?Education: Why? How?
Education: Why? How?
 
FEM: Introduction and Weighted Residual Methods
FEM: Introduction and Weighted Residual MethodsFEM: Introduction and Weighted Residual Methods
FEM: Introduction and Weighted Residual Methods
 
Krok 2 - 2010 Question Paper (Stomatology)
Krok 2 - 2010 Question Paper (Stomatology)Krok 2 - 2010 Question Paper (Stomatology)
Krok 2 - 2010 Question Paper (Stomatology)
 
FEM: Beams
FEM: BeamsFEM: Beams
FEM: Beams
 
FEM: Element Equations
FEM: Element EquationsFEM: Element Equations
FEM: Element Equations
 
Initial valueproblems
Initial valueproblemsInitial valueproblems
Initial valueproblems
 
Regression
RegressionRegression
Regression
 
Newmark Time Integration
Newmark Time IntegrationNewmark Time Integration
Newmark Time Integration
 
FEM: Stationary Functional Approach
FEM: Stationary Functional ApproachFEM: Stationary Functional Approach
FEM: Stationary Functional Approach
 
FEM: Nonlinear Beam Deflection Model (with Temperature)
FEM: Nonlinear Beam Deflection Model (with Temperature)FEM: Nonlinear Beam Deflection Model (with Temperature)
FEM: Nonlinear Beam Deflection Model (with Temperature)
 
Vibration Absorber
Vibration AbsorberVibration Absorber
Vibration Absorber
 
Mechanics Of Composite Materials
Mechanics Of Composite MaterialsMechanics Of Composite Materials
Mechanics Of Composite Materials
 

Similar to 07 interpolationnewton

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 numerical integration 2
08 numerical integration 208 numerical integration 2
08 numerical integration 2Mohammad Tawfik
 
Onlinetest360.com quantitative aptitude PDF
Onlinetest360.com quantitative aptitude PDFOnlinetest360.com quantitative aptitude PDF
Onlinetest360.com quantitative aptitude PDFonlinetest
 
Dividing integers
Dividing integersDividing integers
Dividing integersbweldon
 
11 initial value problems system
11 initial value problems   system11 initial value problems   system
11 initial value problems systemMohammad Tawfik
 
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
 
Are-you-Ready-For-Calculus-w-Analytic-Geometry-Mth-173.pptx
Are-you-Ready-For-Calculus-w-Analytic-Geometry-Mth-173.pptxAre-you-Ready-For-Calculus-w-Analytic-Geometry-Mth-173.pptx
Are-you-Ready-For-Calculus-w-Analytic-Geometry-Mth-173.pptxShehzadAhmed90
 
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
 
Physics 1.1 Scientific Notation
Physics 1.1 Scientific NotationPhysics 1.1 Scientific Notation
Physics 1.1 Scientific NotationJohnPaul Kennedy
 
Design of experiments .pdf
Design of experiments .pdfDesign of experiments .pdf
Design of experiments .pdfahp2011
 
Feb. 14th, 2014
Feb. 14th, 2014Feb. 14th, 2014
Feb. 14th, 2014khyps13
 
Applications of Multivariable Calculus.ppt
Applications of Multivariable Calculus.pptApplications of Multivariable Calculus.ppt
Applications of Multivariable Calculus.pptsaiprashanth973626
 
Chapter 15 - Methods and Applications of Integration
Chapter 15 - Methods and Applications of IntegrationChapter 15 - Methods and Applications of Integration
Chapter 15 - Methods and Applications of IntegrationMuhammad Bilal Khairuddin
 
Introductory maths analysis chapter 15 official
Introductory maths analysis   chapter 15 officialIntroductory maths analysis   chapter 15 official
Introductory maths analysis chapter 15 officialEvert Sandye Taasiringan
 
Chapter15 methodsandapplicationsofintegration-151007044206-lva1-app6891
Chapter15 methodsandapplicationsofintegration-151007044206-lva1-app6891Chapter15 methodsandapplicationsofintegration-151007044206-lva1-app6891
Chapter15 methodsandapplicationsofintegration-151007044206-lva1-app6891Cleophas Rwemera
 

Similar to 07 interpolationnewton (20)

08 numerical integration
08 numerical integration08 numerical integration
08 numerical integration
 
09 numerical integration
09 numerical integration09 numerical integration
09 numerical integration
 
03 open methods
03 open methods03 open methods
03 open methods
 
08 numerical integration 2
08 numerical integration 208 numerical integration 2
08 numerical integration 2
 
Onlinetest360.com quantitative aptitude PDF
Onlinetest360.com quantitative aptitude PDFOnlinetest360.com quantitative aptitude PDF
Onlinetest360.com quantitative aptitude PDF
 
Dividing integers
Dividing integersDividing integers
Dividing integers
 
11 initial value problems system
11 initial value problems   system11 initial value problems   system
11 initial value problems system
 
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...
 
Are-you-Ready-For-Calculus-w-Analytic-Geometry-Mth-173.pptx
Are-you-Ready-For-Calculus-w-Analytic-Geometry-Mth-173.pptxAre-you-Ready-For-Calculus-w-Analytic-Geometry-Mth-173.pptx
Are-you-Ready-For-Calculus-w-Analytic-Geometry-Mth-173.pptx
 
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
 
Greedy method
Greedy methodGreedy method
Greedy method
 
Physics 1.1 Scientific Notation
Physics 1.1 Scientific NotationPhysics 1.1 Scientific Notation
Physics 1.1 Scientific Notation
 
Design of experiments .pdf
Design of experiments .pdfDesign of experiments .pdf
Design of experiments .pdf
 
Feb. 14th, 2014
Feb. 14th, 2014Feb. 14th, 2014
Feb. 14th, 2014
 
Applications of Multivariable Calculus.ppt
Applications of Multivariable Calculus.pptApplications of Multivariable Calculus.ppt
Applications of Multivariable Calculus.ppt
 
Chapter 15 - Methods and Applications of Integration
Chapter 15 - Methods and Applications of IntegrationChapter 15 - Methods and Applications of Integration
Chapter 15 - Methods and Applications of Integration
 
Introductory maths analysis chapter 15 official
Introductory maths analysis   chapter 15 officialIntroductory maths analysis   chapter 15 official
Introductory maths analysis chapter 15 official
 
Chapter15 methodsandapplicationsofintegration-151007044206-lva1-app6891
Chapter15 methodsandapplicationsofintegration-151007044206-lva1-app6891Chapter15 methodsandapplicationsofintegration-151007044206-lva1-app6891
Chapter15 methodsandapplicationsofintegration-151007044206-lva1-app6891
 

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
 

07 interpolationnewton

  • 1. 1 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
  • 2. 2 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Measured Data ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Polynomial Fit!
  • 3. 3 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Line Fit! ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Which is better?
  • 4. 4 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
  • 5. 5 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
  • 6. 6 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 10 += If you have two points 1101 xaay += 2102 xaay +=       =             2 1 1 0 2 1 1 1 y y a a x x
  • 7. 7 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Solving for the constants! 12 12 1 12 2112 0 & 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.
  • 8. 8 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Third-Order Polynomial 3 3 2 210 xaxaxaay +++= For the four points 3 13 2 121101 xaxaxaay +++= 3 23 2 222102 xaxaxaay +++= 3 33 2 323103 xaxaxaay +++= 3 43 2 424104 xaxaxaay +++= ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik In Matrix Form               =                             4 3 2 1 3 2 1 0 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.
  • 9. 9 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Example • Find a 3rd order polynomial to interpolate the function described by the given points 162 51 20 1-1 Yx 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
  • 10. 10 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 Interpolation Polynomial
  • 11. 11 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 For the two points ( )110 xxbby −+= ( ) 0111101 byxxbby =⇒−+= ( )1 12 12 1 xx xx yy yy −      − − += ( )⇒−+= 12102 xxbby ( ) ( ) ( )12 12 112112 xx yy bxxbyy − − =⇒−+=
  • 12. 12 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Homework • Show that the polynomial obtained by solving a set of equations is equivalent to that obtained by Newton method ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik For the three points ( ) ( ) ( )( )213 121 xxxxb xxbbxf −−+ −+= 10 yb = 12 12 1 xx yy b − − = 13 12 12 23 23 2 xx xx yy xx yy b − − − − − − =
  • 13. 13 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Using a table y3x3 y2x2 y1x1 yixi 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 xxxxb xxxxbxxbbxf −−++ −−+−+= ...... 1 212110
  • 14. 14 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Example • Find a 3rd order polynomial to interpolate the function described by the given points using Newton’s method 162 51 20 1-1 Yx ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Newton’s Method • Newton’s methods defines the polynomial in the form: ( ) ( ) ( )( ) ( )( )( )3213 212110 xxxxxxb xxxxbxxbbxf −−−+ −−+−+= ( ) ( ) ( )( ) ( )( )( )11 11 3 210 −++ ++++= xxxb xxbxbbxf
  • 15. 15 ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Newton’s Method 162 1151 4320 1111-1 Yx ENEM602 Spring 2007 Dr. Eng. Mohammad Tawfik Newton’s Method • Finally: ( ) ( ) ( )( ) ( )( )( )11 111 −++ ++++= xxx xxxxf ( ) ( ) ( ) ( )xxxxxxf −+++++= 32 11 ( ) 32 2 xxxxf +++=
  • 16. 16 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.