SlideShare a Scribd company logo
1 of 20
Download to read offline
St. John's University of Tanzania
MAT210 NUMERICAL ANALYSIS
2013/14 Semester II
INTERPOLATION
Splines
Kaw, Chapter 5.05
MAT210 2013/14 Sem II 2 of 20
● Direct, Newton Divided Difference &
Lagrangian Interpolation
●
Two approaches for finding the same nth order
polynomial fit for all points in an data set
● Is splines just another way to do the same
●
NO!
● It is Piecewise polynomial interpolation
● Each piece can be linear, quadratic or cubic
Introduction
MAT210 2013/14 Sem II 3 of 20
How do we avoid this?
MAT210 2013/14 Sem II 4 of 20
By observing
● This function has distinct regions
●
The interval from x ≈ -1 to -0.5
● The interval from x ≈ -0.5 to -0.1
● The interval from x ≈ -0.1 to +0.1
● The interval from x ≈ 0.1 to 0.5
● The interval from x ≈ 0.5 to 1
Though there is some symmetry...
● It would be better to fit different functions
to different intervals
MAT210 2013/14 Sem II 5 of 20
Piecewise Polynomials
Rather than interpolating n+1 points with a
single polynomial of degree n, put different
polynomials on each interval
S(x)=
{
s0
(x) , x∈[x0
,x1)
s1
(x) , x∈[x1,
x2)
⋮
sn−1
(x) , x∈[xn−1
, xn]}where the sj are polynomials of (usually) small degree
MAT210 2013/14 Sem II 6 of 20
Interpretation
● Piecewise linear = connect the dots
●
Piecewise quadratic
= parabolas between the dots
● But wait
●
Two points uniquely define a line
– linear is understandable
●
Three points are needed for a parabola
– How is the other degree of freedom set?
MAT210 2013/14 Sem II 7 of 20
Splines
● In the connect the dots linear case,
the curve is not “smooth”
●
Add “smoothness” into the requirement
● Draftsmen achieved this smoothness with
splines - a flexible strip of metal or wood
MAT210 2013/14 Sem II 8 of 20
Splines
● In the connect the dots linear case,
the curve is not “smooth”
●
Add “smoothness” into the requirement
● Draftsmen achieved this smoothness with
splines - a flexible strip of metal or wood
●
Mathematicians achieve it by matching
derivatives at the end points of the intervals
MAT210 2013/14 Sem II 9 of 20
Linear Splines
MAT210 2013/14 Sem II 10 of 20
Linear Splines
Slope between points
MAT210 2013/14 Sem II 11 of 20
v(16) … Again
The linear case is unchanged
No surprise there
MAT210 2013/14 Sem II 12 of 20
Quadratic Splines
● Now things get interesting
● How to find all the coefficients?
●
3n coefficients, n equations, n continuity at
end points, whence the other n?
MAT210 2013/14 Sem II 13 of 20
2n from continuity
Each curve must pass through both endpoints
MAT210 2013/14 Sem II 14 of 20
n-1 from smoothness
a1
x
2
+b1
x+c1
⇒2a1
x+b1
a2
x2
+b2
x+c2
⇒2a2
x+b2
Must match at n-1 interior points
2 a1
xi
+b1
=2a2
xi
+b2
∀ i ∈ [1 ,n−1]
MAT210 2013/14 Sem II 15 of 20
One more assumption
● This is 3n unknowns and 3n -1 equations
●
Need to set one more condition
● Generally set the first spline to be linear
● a1 = 0
●
Now use any technique to solve
simultaneous linear equations
MAT210 2013/14 Sem II 16 of 20
Revisiting the Rocket
MAT210 2013/14 Sem II 17 of 20
The continuous derivatives
The draftsman is bending his spline!
MAT210 2013/14 Sem II 18 of 20
The Final Matrix
MAT210 2013/14 Sem II 19 of 20
The Solution
MAT210 2013/14 Sem II 20 of 20
Going Deeper
● The overall curve is smooth and the
accuracy can be quite good
●
Cubic is better, more common
– See that next time
● What about finding the distance traveled?
●
From 11 to 14s?
● From 11 to 16s?
● From 0 to 30s?

More Related Content

What's hot

Solving Quadratics by Completing the Square
Solving Quadratics by Completing the SquareSolving Quadratics by Completing the Square
Solving Quadratics by Completing the Squareswartzje
 
March 31, 2014
March 31, 2014March 31, 2014
March 31, 2014khyps13
 
Diapositivas yahir villamizar
Diapositivas yahir villamizarDiapositivas yahir villamizar
Diapositivas yahir villamizarYahirVillamizar
 
1.3.2C Equations of Lines
1.3.2C Equations of Lines1.3.2C Equations of Lines
1.3.2C Equations of Linessmiller5
 
Identifying slope and y intercept
Identifying slope and y interceptIdentifying slope and y intercept
Identifying slope and y interceptrobertleichner
 
Diapositivas yahir villamizar
Diapositivas yahir villamizarDiapositivas yahir villamizar
Diapositivas yahir villamizarYahirVillamizar
 
February 3, 2015
February 3, 2015February 3, 2015
February 3, 2015khyps13
 
Multiplying polynomials
Multiplying polynomialsMultiplying polynomials
Multiplying polynomials41326204
 
Mod 4 Project by Mateo C
Mod 4 Project by Mateo CMod 4 Project by Mateo C
Mod 4 Project by Mateo CLeah Kicinski
 
5.5 parallel perp lines
5.5 parallel perp lines5.5 parallel perp lines
5.5 parallel perp linescageke
 
Equations of graphs
Equations of graphsEquations of graphs
Equations of graphsPalash Dey
 
Graphing lines using slopeintercept
Graphing lines using slopeinterceptGraphing lines using slopeintercept
Graphing lines using slopeinterceptluna dionson
 
Algebraic expressions
Algebraic expressionsAlgebraic expressions
Algebraic expressionsSiyavula
 
7 1solve By Graphing
7 1solve By Graphing7 1solve By Graphing
7 1solve By Graphingtaco40
 
Synthetic Division
Synthetic DivisionSynthetic Division
Synthetic Divisionoudesign
 
Slope and y intercept
Slope and y interceptSlope and y intercept
Slope and y interceptbillingssr
 

What's hot (20)

Solving Quadratics by Completing the Square
Solving Quadratics by Completing the SquareSolving Quadratics by Completing the Square
Solving Quadratics by Completing the Square
 
March 31, 2014
March 31, 2014March 31, 2014
March 31, 2014
 
Math1000 section2.2
Math1000 section2.2Math1000 section2.2
Math1000 section2.2
 
Completing the square
Completing the squareCompleting the square
Completing the square
 
Diapositivas yahir villamizar
Diapositivas yahir villamizarDiapositivas yahir villamizar
Diapositivas yahir villamizar
 
N queen puzzle
N queen puzzleN queen puzzle
N queen puzzle
 
1.3.2C Equations of Lines
1.3.2C Equations of Lines1.3.2C Equations of Lines
1.3.2C Equations of Lines
 
Identifying slope and y intercept
Identifying slope and y interceptIdentifying slope and y intercept
Identifying slope and y intercept
 
Writing linear equations
Writing linear equationsWriting linear equations
Writing linear equations
 
Diapositivas yahir villamizar
Diapositivas yahir villamizarDiapositivas yahir villamizar
Diapositivas yahir villamizar
 
February 3, 2015
February 3, 2015February 3, 2015
February 3, 2015
 
Multiplying polynomials
Multiplying polynomialsMultiplying polynomials
Multiplying polynomials
 
Mod 4 Project by Mateo C
Mod 4 Project by Mateo CMod 4 Project by Mateo C
Mod 4 Project by Mateo C
 
5.5 parallel perp lines
5.5 parallel perp lines5.5 parallel perp lines
5.5 parallel perp lines
 
Equations of graphs
Equations of graphsEquations of graphs
Equations of graphs
 
Graphing lines using slopeintercept
Graphing lines using slopeinterceptGraphing lines using slopeintercept
Graphing lines using slopeintercept
 
Algebraic expressions
Algebraic expressionsAlgebraic expressions
Algebraic expressions
 
7 1solve By Graphing
7 1solve By Graphing7 1solve By Graphing
7 1solve By Graphing
 
Synthetic Division
Synthetic DivisionSynthetic Division
Synthetic Division
 
Slope and y intercept
Slope and y interceptSlope and y intercept
Slope and y intercept
 

Similar to SJUT/MAT210/Interpolation/Splines 2013-14S2

SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2John Ham
 
SJUT/Mat210/Interpolation/Direct 2013-14S2
SJUT/Mat210/Interpolation/Direct 2013-14S2SJUT/Mat210/Interpolation/Direct 2013-14S2
SJUT/Mat210/Interpolation/Direct 2013-14S2John Ham
 
SJUT/Mat210/Regression/Intro 2013-14S2
SJUT/Mat210/Regression/Intro 2013-14S2SJUT/Mat210/Regression/Intro 2013-14S2
SJUT/Mat210/Regression/Intro 2013-14S2John Ham
 
MAT210/Integration/Basic 2013-14
MAT210/Integration/Basic 2013-14MAT210/Integration/Basic 2013-14
MAT210/Integration/Basic 2013-14John Ham
 
MAT210/DiffEq/ODE/FiniteDiff 2013-14
MAT210/DiffEq/ODE/FiniteDiff 2013-14MAT210/DiffEq/ODE/FiniteDiff 2013-14
MAT210/DiffEq/ODE/FiniteDiff 2013-14John Ham
 
MAT210/DiffEq/ODE/Euler 2013-14
MAT210/DiffEq/ODE/Euler 2013-14MAT210/DiffEq/ODE/Euler 2013-14
MAT210/DiffEq/ODE/Euler 2013-14John Ham
 

Similar to SJUT/MAT210/Interpolation/Splines 2013-14S2 (7)

SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2SJUT/Mat210/Regression/Linear 2013-14S2
SJUT/Mat210/Regression/Linear 2013-14S2
 
SJUT/Mat210/Interpolation/Direct 2013-14S2
SJUT/Mat210/Interpolation/Direct 2013-14S2SJUT/Mat210/Interpolation/Direct 2013-14S2
SJUT/Mat210/Interpolation/Direct 2013-14S2
 
SJUT/Mat210/Regression/Intro 2013-14S2
SJUT/Mat210/Regression/Intro 2013-14S2SJUT/Mat210/Regression/Intro 2013-14S2
SJUT/Mat210/Regression/Intro 2013-14S2
 
MAT210/Integration/Basic 2013-14
MAT210/Integration/Basic 2013-14MAT210/Integration/Basic 2013-14
MAT210/Integration/Basic 2013-14
 
MAT210/DiffEq/ODE/FiniteDiff 2013-14
MAT210/DiffEq/ODE/FiniteDiff 2013-14MAT210/DiffEq/ODE/FiniteDiff 2013-14
MAT210/DiffEq/ODE/FiniteDiff 2013-14
 
MAT210/DiffEq/ODE/Euler 2013-14
MAT210/DiffEq/ODE/Euler 2013-14MAT210/DiffEq/ODE/Euler 2013-14
MAT210/DiffEq/ODE/Euler 2013-14
 
ohu.pptx
ohu.pptxohu.pptx
ohu.pptx
 

Recently uploaded

Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 

Recently uploaded (20)

Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 

SJUT/MAT210/Interpolation/Splines 2013-14S2

  • 1. St. John's University of Tanzania MAT210 NUMERICAL ANALYSIS 2013/14 Semester II INTERPOLATION Splines Kaw, Chapter 5.05
  • 2. MAT210 2013/14 Sem II 2 of 20 ● Direct, Newton Divided Difference & Lagrangian Interpolation ● Two approaches for finding the same nth order polynomial fit for all points in an data set ● Is splines just another way to do the same ● NO! ● It is Piecewise polynomial interpolation ● Each piece can be linear, quadratic or cubic Introduction
  • 3. MAT210 2013/14 Sem II 3 of 20 How do we avoid this?
  • 4. MAT210 2013/14 Sem II 4 of 20 By observing ● This function has distinct regions ● The interval from x ≈ -1 to -0.5 ● The interval from x ≈ -0.5 to -0.1 ● The interval from x ≈ -0.1 to +0.1 ● The interval from x ≈ 0.1 to 0.5 ● The interval from x ≈ 0.5 to 1 Though there is some symmetry... ● It would be better to fit different functions to different intervals
  • 5. MAT210 2013/14 Sem II 5 of 20 Piecewise Polynomials Rather than interpolating n+1 points with a single polynomial of degree n, put different polynomials on each interval S(x)= { s0 (x) , x∈[x0 ,x1) s1 (x) , x∈[x1, x2) ⋮ sn−1 (x) , x∈[xn−1 , xn]}where the sj are polynomials of (usually) small degree
  • 6. MAT210 2013/14 Sem II 6 of 20 Interpretation ● Piecewise linear = connect the dots ● Piecewise quadratic = parabolas between the dots ● But wait ● Two points uniquely define a line – linear is understandable ● Three points are needed for a parabola – How is the other degree of freedom set?
  • 7. MAT210 2013/14 Sem II 7 of 20 Splines ● In the connect the dots linear case, the curve is not “smooth” ● Add “smoothness” into the requirement ● Draftsmen achieved this smoothness with splines - a flexible strip of metal or wood
  • 8. MAT210 2013/14 Sem II 8 of 20 Splines ● In the connect the dots linear case, the curve is not “smooth” ● Add “smoothness” into the requirement ● Draftsmen achieved this smoothness with splines - a flexible strip of metal or wood ● Mathematicians achieve it by matching derivatives at the end points of the intervals
  • 9. MAT210 2013/14 Sem II 9 of 20 Linear Splines
  • 10. MAT210 2013/14 Sem II 10 of 20 Linear Splines Slope between points
  • 11. MAT210 2013/14 Sem II 11 of 20 v(16) … Again The linear case is unchanged No surprise there
  • 12. MAT210 2013/14 Sem II 12 of 20 Quadratic Splines ● Now things get interesting ● How to find all the coefficients? ● 3n coefficients, n equations, n continuity at end points, whence the other n?
  • 13. MAT210 2013/14 Sem II 13 of 20 2n from continuity Each curve must pass through both endpoints
  • 14. MAT210 2013/14 Sem II 14 of 20 n-1 from smoothness a1 x 2 +b1 x+c1 ⇒2a1 x+b1 a2 x2 +b2 x+c2 ⇒2a2 x+b2 Must match at n-1 interior points 2 a1 xi +b1 =2a2 xi +b2 ∀ i ∈ [1 ,n−1]
  • 15. MAT210 2013/14 Sem II 15 of 20 One more assumption ● This is 3n unknowns and 3n -1 equations ● Need to set one more condition ● Generally set the first spline to be linear ● a1 = 0 ● Now use any technique to solve simultaneous linear equations
  • 16. MAT210 2013/14 Sem II 16 of 20 Revisiting the Rocket
  • 17. MAT210 2013/14 Sem II 17 of 20 The continuous derivatives The draftsman is bending his spline!
  • 18. MAT210 2013/14 Sem II 18 of 20 The Final Matrix
  • 19. MAT210 2013/14 Sem II 19 of 20 The Solution
  • 20. MAT210 2013/14 Sem II 20 of 20 Going Deeper ● The overall curve is smooth and the accuracy can be quite good ● Cubic is better, more common – See that next time ● What about finding the distance traveled? ● From 11 to 14s? ● From 11 to 16s? ● From 0 to 30s?