15
Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections 7.1, 7.2, and 7.5 in the textbook - Try exercises in these slides; work on Assignment 0

Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

Lecture1Topics:

-  ReviewofDifferentialEquationsandIntegrationTechniques(7.1,7.2,and7.5)

ToDo:-  Reviewsections7.1,7.2,and7.5inthetextbook-  Tryexercisesintheseslides;workonAssignment0

Page 2: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

DifferentialEquations

Adifferentialequation(DE)isanequationthatinvolvesanunknownfunctionandoneormoreofitsderivatives.Examples:

y'= 2 + y y '+ 2xy = x2

y'= x 2 + ex

Page 3: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

DifferentialEquations

Asolutionofadifferentialequationisafunctionthat,alongwithitsderivatives,satisfiestheDE.Example:Showthatisthesolutionofthedifferentialequationwithinitialcondition.

z(t) =1+ 1+ 2t

dzdt

=1z −1

z(0) = 2.

Page 4: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

DifferentialEquations

Ingeneral,adifferentialequationhasawholefamilyofsolutions.Example:FindthegeneralsolutionoftheDE

-2.5 0 2.5 5 7.5 10

-5

5

10

y ' = 2x − 4.

Page 5: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

DifferentialEquations

Aninitialvalueproblem(IVP)providesaninitialconditionsoyoucanfindaparticularsolution.Example:FindtheuniquesolutionoftheIVP

y ' = 2x − 4, y(0) = 3. -2.5 0 2.5 5 7.5 10

-5

5

10

Page 6: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

Modeling:VerbalDescriptionsIVPs

Example:Writeadifferentialequationandaninitialconditiontodescribethefollowingevent:

Therelativerateofchangeofthepopulationofwildfoxesinanecosystemis0.75babyfoxesperfoxpermonth.Initially,thepopulationis68thousand..

Page 7: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

SolutionsforGeneralDEs

Ø  AlgebraicSolutionsØ  anexplicitformulaoralgorithmforthesolution(often,impossibletofind)

Ø  GeometricSolutionsØ  asketchofthesolutionobtainedfromanalyzingtheDE

Ø  NumericSolutionsØ  anapproximationofthesolutionusingtechnologyandandsomeestimationmethod,suchasEuler’smethod

Page 8: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

AlgebraicSolutions

Example1:Findthegeneralsolutionofthepure-timeDE

Example2:Findthegeneralsolutionofthepure-timeDE

y'= ln x

dydx

= 5e10x +1

1+ 25x 2

Page 9: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

AlgebraicSolutions

Example3:FindthesolutionoftheautonomousDEwithinitialcondition

dFdt

= 0.75FF (0) = 68000.

Page 10: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

MoreIntegrationPractice

Example:(a) (b)(c) (d)(e) (f)

x1+ x2 ∫ dx x2

1+ x2 ∫ dx

xe0.2 x∫ dx xe−x2

∫ dx

x ln x ∫ dx1x ln x

∫ dx

*Tocheckyouranswers,tryusinganonlineintegralevaluator.Forexample:https://www.integral-calculator.com/

Page 11: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

GeometricSolutions

Example:SketchthegraphofthesolutiontotheDEgivenaninitialconditionof

y ' = arctan x

y(0) =1.

Page 12: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

NumericSolutionsEuler’sMethodAlgorithm:AlgorithmInWords:nexttimestep=previoustimestep+stepsizenextapproximation=previousapproximation+rateofchangeofthefunctionxstepsize

tn+1 = tn + hyn+1 = yn + F(tn ,yn )h

Page 13: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

NumericSolutions

Example:ConsidertheIVPApproximateP(1)usingEuler’smethodandastepsizeofh=0.5.Note:WearenotabletofindanexactsolutionforthisIVP.

dPdt

= e−t2

, P(0) = 5

Page 14: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

NumericSolutions

Example:Calculations:

tn=tn-1+h Pn=approx.valueofsolutionattn

t0=0 P0=5

TableofApproximateValuesfortheSolutionP(t)oftheIVP

Page 15: Lecture 1 - ms.mcmaster.caclemene/1LT3E/lectures/1lt... · Lecture 1 Topics: - Review of Differential Equations and Integration Techniques (7.1, 7.2, and 7.5) To Do: - Review sections

NumericSolutions

GraphofApproximateSolution:

Plotpointsandconnectwithstraightlinesegments.

tn=tn-1+h Pn=approx.valueofsolutionattn

t0=0 P0=5

t1=0.5 P1=5.5

t2=1 P2=5.9