SlideShare a Scribd company logo
1 of 18
More Multivariable Calculus:
Least Squares, ODEs and Local
Extrema, and Newton’s Method
Dr. Jeff Morgan
Department of Mathematics
University of Houston
jmorgan@math.uh.edu
Shameless Advertisement
• Houston Area Calculus Teachers
Association – http://www.HoustonACT.org
• Houston Area Teachers of Statistics –
http://www.HoustonATS.org
• Online practice AP Calculus and Statistics
Exams – April and May 2009. See the
links above.
• UH High School Mathematics Contest –
http://mathcontest.uh.edu
Technology Tool Tips
• PDF Annotator
• Mimio Notebook
• WinPlot
• Bamboo Tablet
Linear Least Squares
Example 1: Consider the problem of finding a line that
fits the data:
x = 0 1 2 3 4 5 6 8 9 11 12 15
y = 1 2 4 3.5 5 4 7 9 12 17 22 29
Question: How can calculus be used to determine
how we should proceed?
The General Process
Consider the problem of finding a line that fits the data:
x = x1 x2 x3 … xn
y = y1 y2 y3 … yn
Question: How can calculus be used to determine
how we should proceed?
Solution to Example 1 in Excel
• Select ranges to write updated values.
• Use the commands transpose, mmult and
minverse and select the data that the
commands will act on.
• Press ctrl+shift+enter.
Quadratic Least Squares
Example 2: Consider the problem of finding a parabola
that fits the data:
x = 0 1 2 3 -1 -2 -3 -4
y = 1 3.5 11 22 3 9 18 35
Question: How can calculus be used to determine
how we should proceed?
The General Process
Consider the problem of finding a parabola that fits the
data:
x = x1 x2 x3 … xn
y = y1 y2 y3 … yn
Question: How can calculus be used to determine
how we should proceed?
Solution to Example 2 in Excel
• Select ranges to write updated values.
• Use the commands transpose, mmult and
minverse and select the data that the
commands will act on.
• Press ctrl+shift+enter.
Displacement
(meters)
Force
(Newtons)
.01 .21
.02 .42
.03 .63
.05 .83
.06 1.0
.08 1.3
.10 1.5
.13 1.7
.16 1.9
.18 2.1
.21 2.3
.25 2.5
A rubber band is stretched and some
data is recorded relating force to
displacement. Determine whether this
data is best approximated using a linear,
quadratic or logarithmic least squares fit.
Note:
 
The logarithmic form is
ln 1 .
y a b x
  
Example 3:
Chain Rule, Directional Derivatives,
Gradients and Differential Equations
• Extending the one dimensional chain rule.
• Directional derivatives and their relation to the
gradient.
• Level sets and their relation to the gradient.
• Using ODEs to help sketch level sets in two
dimensions.
• Classifying the behavior of the gradient near
critical points.
• Using ODEs to find local extrema.
 
4 4
Describe the level sets of
( , ) 4 5 sin 1.
f x y x y x y xy
     
Example 4:
(Illustration with Winplot Implicit Plots)
 
4 4
Use the gradient descent method to approximate the minimum
value of
( , ) 4 5 sin 1
1 1
starting from a guess of , .
2 2
f x y x y x y xy
     
 

 
 
Example 5:
Question: How can we related this to
differential equations?
(Illustration with Winplot and Polking’s Java)
4 4
Describe the level sets of
( , ) 4 5 10sin( ) 1.
f x y x y x y xy
     
Example 6:
(Illustration with both implicit plots and ODEs)
4 4
Use differential equations to approximate the minimum
value of
( , ) 4 5 10sin( ) 1
1 1
starting from a guess of , .
2 2
f x y x y x y xy
     
 

 
 
Example 7:
(Illustration with Winplot and Polking’s Java)
What is Newton’s Method?
4 4
Use Newton's method to approximate the critical
values of ( , ) 4 5 10sin( ) 1.
f x y x y x y xy
     
Example 8:
(Illustration with Winplot and Excel)

More Related Content

Similar to Applications of Multivariable Calculus.ppt

Perspective in Informatics 3 - Assignment 2 - Answer Sheet
Perspective in Informatics 3 - Assignment 2 - Answer SheetPerspective in Informatics 3 - Assignment 2 - Answer Sheet
Perspective in Informatics 3 - Assignment 2 - Answer SheetHoang Nguyen Phong
 
Ijarcet vol-2-issue-4-1579-1582
Ijarcet vol-2-issue-4-1579-1582Ijarcet vol-2-issue-4-1579-1582
Ijarcet vol-2-issue-4-1579-1582Editor IJARCET
 
A Class of Continuous Implicit Seventh-eight method for solving y’ = f(x, y) ...
A Class of Continuous Implicit Seventh-eight method for solving y’ = f(x, y) ...A Class of Continuous Implicit Seventh-eight method for solving y’ = f(x, y) ...
A Class of Continuous Implicit Seventh-eight method for solving y’ = f(x, y) ...AI Publications
 
Global Optimization with Descending Region Algorithm
Global Optimization with Descending Region AlgorithmGlobal Optimization with Descending Region Algorithm
Global Optimization with Descending Region AlgorithmLoc Nguyen
 
Online machine learning in Streaming Applications
Online machine learning in Streaming ApplicationsOnline machine learning in Streaming Applications
Online machine learning in Streaming ApplicationsStavros Kontopoulos
 
Predict saturated thickness using tensor board visualization
Predict saturated thickness using tensor board visualizationPredict saturated thickness using tensor board visualization
Predict saturated thickness using tensor board visualizationVinh Nguyen
 
A Derivative Free High Ordered Hybrid Equation Solver
A Derivative Free High Ordered Hybrid Equation Solver  A Derivative Free High Ordered Hybrid Equation Solver
A Derivative Free High Ordered Hybrid Equation Solver Zac Darcy
 
Degree presentation: Indirect Inference Applied to Financial Econometrics
Degree presentation: Indirect Inference Applied to Financial EconometricsDegree presentation: Indirect Inference Applied to Financial Econometrics
Degree presentation: Indirect Inference Applied to Financial EconometricsJean Duchesne
 
Lecture_2_Stats.pdf
Lecture_2_Stats.pdfLecture_2_Stats.pdf
Lecture_2_Stats.pdfpaijitk
 
Econometric Methods for Labour Economics by Stephen Bazen
 Econometric Methods for Labour Economics by Stephen Bazen Econometric Methods for Labour Economics by Stephen Bazen
Econometric Methods for Labour Economics by Stephen BazenAnissa ATMANI
 
BASIC STATISTICS AND PROBABILITY.pptx
BASIC STATISTICS AND PROBABILITY.pptxBASIC STATISTICS AND PROBABILITY.pptx
BASIC STATISTICS AND PROBABILITY.pptxRanjuBijoy
 
Measures of Relative Standing and Boxplots
Measures of Relative Standing and BoxplotsMeasures of Relative Standing and Boxplots
Measures of Relative Standing and BoxplotsLong Beach City College
 
Data Science and Machine Learning with Tensorflow
 Data Science and Machine Learning with Tensorflow Data Science and Machine Learning with Tensorflow
Data Science and Machine Learning with TensorflowShubham Sharma
 
Data Science Interview Questions | Data Science Interview Questions And Answe...
Data Science Interview Questions | Data Science Interview Questions And Answe...Data Science Interview Questions | Data Science Interview Questions And Answe...
Data Science Interview Questions | Data Science Interview Questions And Answe...Simplilearn
 
Machine Learning on Azure - AzureConf
Machine Learning on Azure - AzureConfMachine Learning on Azure - AzureConf
Machine Learning on Azure - AzureConfSeth Juarez
 
Computational Giants_nhom.pptx
Computational Giants_nhom.pptxComputational Giants_nhom.pptx
Computational Giants_nhom.pptxThAnhonc
 
Introduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdfIntroduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdfTulasiramKandula1
 
Deep learning Unit1 BasicsAllllllll.pptx
Deep learning Unit1 BasicsAllllllll.pptxDeep learning Unit1 BasicsAllllllll.pptx
Deep learning Unit1 BasicsAllllllll.pptxFreefireGarena30
 
Predictive Modelling
Predictive ModellingPredictive Modelling
Predictive ModellingRajiv Advani
 

Similar to Applications of Multivariable Calculus.ppt (20)

Perspective in Informatics 3 - Assignment 2 - Answer Sheet
Perspective in Informatics 3 - Assignment 2 - Answer SheetPerspective in Informatics 3 - Assignment 2 - Answer Sheet
Perspective in Informatics 3 - Assignment 2 - Answer Sheet
 
Ijarcet vol-2-issue-4-1579-1582
Ijarcet vol-2-issue-4-1579-1582Ijarcet vol-2-issue-4-1579-1582
Ijarcet vol-2-issue-4-1579-1582
 
A Class of Continuous Implicit Seventh-eight method for solving y’ = f(x, y) ...
A Class of Continuous Implicit Seventh-eight method for solving y’ = f(x, y) ...A Class of Continuous Implicit Seventh-eight method for solving y’ = f(x, y) ...
A Class of Continuous Implicit Seventh-eight method for solving y’ = f(x, y) ...
 
Global Optimization with Descending Region Algorithm
Global Optimization with Descending Region AlgorithmGlobal Optimization with Descending Region Algorithm
Global Optimization with Descending Region Algorithm
 
Online machine learning in Streaming Applications
Online machine learning in Streaming ApplicationsOnline machine learning in Streaming Applications
Online machine learning in Streaming Applications
 
Predict saturated thickness using tensor board visualization
Predict saturated thickness using tensor board visualizationPredict saturated thickness using tensor board visualization
Predict saturated thickness using tensor board visualization
 
A Derivative Free High Ordered Hybrid Equation Solver
A Derivative Free High Ordered Hybrid Equation Solver  A Derivative Free High Ordered Hybrid Equation Solver
A Derivative Free High Ordered Hybrid Equation Solver
 
Degree presentation: Indirect Inference Applied to Financial Econometrics
Degree presentation: Indirect Inference Applied to Financial EconometricsDegree presentation: Indirect Inference Applied to Financial Econometrics
Degree presentation: Indirect Inference Applied to Financial Econometrics
 
Lecture_2_Stats.pdf
Lecture_2_Stats.pdfLecture_2_Stats.pdf
Lecture_2_Stats.pdf
 
mean of grouped data.pptx
mean of grouped data.pptxmean of grouped data.pptx
mean of grouped data.pptx
 
Econometric Methods for Labour Economics by Stephen Bazen
 Econometric Methods for Labour Economics by Stephen Bazen Econometric Methods for Labour Economics by Stephen Bazen
Econometric Methods for Labour Economics by Stephen Bazen
 
BASIC STATISTICS AND PROBABILITY.pptx
BASIC STATISTICS AND PROBABILITY.pptxBASIC STATISTICS AND PROBABILITY.pptx
BASIC STATISTICS AND PROBABILITY.pptx
 
Measures of Relative Standing and Boxplots
Measures of Relative Standing and BoxplotsMeasures of Relative Standing and Boxplots
Measures of Relative Standing and Boxplots
 
Data Science and Machine Learning with Tensorflow
 Data Science and Machine Learning with Tensorflow Data Science and Machine Learning with Tensorflow
Data Science and Machine Learning with Tensorflow
 
Data Science Interview Questions | Data Science Interview Questions And Answe...
Data Science Interview Questions | Data Science Interview Questions And Answe...Data Science Interview Questions | Data Science Interview Questions And Answe...
Data Science Interview Questions | Data Science Interview Questions And Answe...
 
Machine Learning on Azure - AzureConf
Machine Learning on Azure - AzureConfMachine Learning on Azure - AzureConf
Machine Learning on Azure - AzureConf
 
Computational Giants_nhom.pptx
Computational Giants_nhom.pptxComputational Giants_nhom.pptx
Computational Giants_nhom.pptx
 
Introduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdfIntroduction to computing Processing and performance.pdf
Introduction to computing Processing and performance.pdf
 
Deep learning Unit1 BasicsAllllllll.pptx
Deep learning Unit1 BasicsAllllllll.pptxDeep learning Unit1 BasicsAllllllll.pptx
Deep learning Unit1 BasicsAllllllll.pptx
 
Predictive Modelling
Predictive ModellingPredictive Modelling
Predictive Modelling
 

Recently uploaded

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 

Recently uploaded (20)

Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 

Applications of Multivariable Calculus.ppt

  • 1. More Multivariable Calculus: Least Squares, ODEs and Local Extrema, and Newton’s Method Dr. Jeff Morgan Department of Mathematics University of Houston jmorgan@math.uh.edu
  • 2. Shameless Advertisement • Houston Area Calculus Teachers Association – http://www.HoustonACT.org • Houston Area Teachers of Statistics – http://www.HoustonATS.org • Online practice AP Calculus and Statistics Exams – April and May 2009. See the links above. • UH High School Mathematics Contest – http://mathcontest.uh.edu
  • 3. Technology Tool Tips • PDF Annotator • Mimio Notebook • WinPlot • Bamboo Tablet
  • 4. Linear Least Squares Example 1: Consider the problem of finding a line that fits the data: x = 0 1 2 3 4 5 6 8 9 11 12 15 y = 1 2 4 3.5 5 4 7 9 12 17 22 29 Question: How can calculus be used to determine how we should proceed?
  • 5. The General Process Consider the problem of finding a line that fits the data: x = x1 x2 x3 … xn y = y1 y2 y3 … yn Question: How can calculus be used to determine how we should proceed?
  • 6. Solution to Example 1 in Excel • Select ranges to write updated values. • Use the commands transpose, mmult and minverse and select the data that the commands will act on. • Press ctrl+shift+enter.
  • 7. Quadratic Least Squares Example 2: Consider the problem of finding a parabola that fits the data: x = 0 1 2 3 -1 -2 -3 -4 y = 1 3.5 11 22 3 9 18 35 Question: How can calculus be used to determine how we should proceed?
  • 8. The General Process Consider the problem of finding a parabola that fits the data: x = x1 x2 x3 … xn y = y1 y2 y3 … yn Question: How can calculus be used to determine how we should proceed?
  • 9. Solution to Example 2 in Excel • Select ranges to write updated values. • Use the commands transpose, mmult and minverse and select the data that the commands will act on. • Press ctrl+shift+enter.
  • 10. Displacement (meters) Force (Newtons) .01 .21 .02 .42 .03 .63 .05 .83 .06 1.0 .08 1.3 .10 1.5 .13 1.7 .16 1.9 .18 2.1 .21 2.3 .25 2.5 A rubber band is stretched and some data is recorded relating force to displacement. Determine whether this data is best approximated using a linear, quadratic or logarithmic least squares fit. Note:   The logarithmic form is ln 1 . y a b x    Example 3:
  • 11. Chain Rule, Directional Derivatives, Gradients and Differential Equations • Extending the one dimensional chain rule. • Directional derivatives and their relation to the gradient. • Level sets and their relation to the gradient. • Using ODEs to help sketch level sets in two dimensions. • Classifying the behavior of the gradient near critical points. • Using ODEs to find local extrema.
  • 12.   4 4 Describe the level sets of ( , ) 4 5 sin 1. f x y x y x y xy       Example 4: (Illustration with Winplot Implicit Plots)
  • 13.   4 4 Use the gradient descent method to approximate the minimum value of ( , ) 4 5 sin 1 1 1 starting from a guess of , . 2 2 f x y x y x y xy              Example 5:
  • 14. Question: How can we related this to differential equations? (Illustration with Winplot and Polking’s Java)
  • 15. 4 4 Describe the level sets of ( , ) 4 5 10sin( ) 1. f x y x y x y xy       Example 6: (Illustration with both implicit plots and ODEs)
  • 16. 4 4 Use differential equations to approximate the minimum value of ( , ) 4 5 10sin( ) 1 1 1 starting from a guess of , . 2 2 f x y x y x y xy              Example 7: (Illustration with Winplot and Polking’s Java)
  • 18. 4 4 Use Newton's method to approximate the critical values of ( , ) 4 5 10sin( ) 1. f x y x y x y xy       Example 8: (Illustration with Winplot and Excel)