Euler’s Method CS 170: Computing for the Sciences and Mathematics.

Slides:



Advertisements
Similar presentations
Section 7.2: Direction Fields and Euler’s Methods Practice HW from Stewart Textbook (not to hand in) p. 511 # 1-13, odd.
Advertisements

Lesson 9-5 Logistic Equations. Logistic Equation We assume P(t) is constrained by limited resources so : Logistic differential equation for population.
COMPUTER MODELS IN BIOLOGY Bernie Roitberg and Greg Baker.
Homework Homework Assignment #19 Read Section 9.3 Page 521, Exercises: 1 – 41(EOO) Quiz next time Rogawski Calculus Copyright © 2008 W. H. Freeman and.
Differential Equations 7. The Logistic Equation 7.5.
Essential Question: How do you solve a system of inequalities by graphing?
Using Inverse Matrices Solving Systems. You can use the inverse of the coefficient matrix to find the solution. 3x + 2y = 7 4x - 5y = 11 Solve the system.
Section 6.1: Euler’s Method. Local Linearity and Differential Equations Slope at (2,0): Tangent line at (2,0): Not a good approximation. Consider smaller.
A Numerical Technique for Building a Solution to a DE or system of DE’s.
TODAY IN ALGEBRA…  Warm up: Find products of special polynomials  Learning Target: 9.4 You will solve polynomial equations in factored form  Independent.
Numerical Solutions to ODEs Nancy Griffeth January 14, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis.
TODAY IN GEOMETRY…  Additional “yellow notes” – half sheet  Learning Target : 10.7 You will write equations of circles in the coordinate plane.  Independent.
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
Chapter 7 – Solving Systems of Linear Equations 7.3 – Solving Linear Systems by Linear Combinations.
Chapter 7 – Solving Systems of Linear Equations
TODAY IN ALGEBRA…  Learning Goal: 7.2 You will solve systems of linear equations by Substitution  Independent Practice.
Chapter 4 – Graphing Linear Equations 4.7 – Solving Linear Equations Using Graphs.
TODAY IN ALGEBRA 2.0…  REVIEW: 7.5 Expand and Condense LOGs  COMPLETE: HW #6  Learning Target: 7.6 You will solve exponential equations by changing.
More Accurate Rate Estimation CS 170: Computing for the Sciences and Mathematics.
2.2 Unconstrained Growth. Malthusian Population Model The power of population is indefinitely greater than the power in the earth to produce subsistence.
Modeling Interaction: Predator-Prey and Beyond CS 170: Computing for the Sciences and Mathematics.
Solving Absolute Value Equations. Warm Up With a partner find the absolute value of the following:
CS 170: Computing for the Sciences and Mathematics
Essential Question: How do you solve a system of inequalities by graphing?
11-2 Solving Quadratic Equations By Graphing
TODAY IN ALGEBRA 2.0…  WARM UP: Write and solve equations using exponential GROWTH  Learning Target 1: 7.2 You will write and solve equations using exponential.
Suppose we are given a differential equation and initial condition: Then we can approximate the solution to the differential equation by its linearization.
Chapter 6 – Polynomials and Polynomial Functions 6.6 –Polynomials of Greater Degree.
TODAY IN ALGEBRA 2.0…  REVIEW: Solving Exponential Equations  Learning Target 1: 7.6 You will solve exponential equations by using logarithms  Independent.
Mathematical Modeling with Differential Equations Chapter 9: By, Will Alisberg Edited By Emily Moon.
Constrained Growth CS 170: Computing for the Sciences and Mathematics.
March 16, 2015 What are we doing today? Review One-Step Equations - HW – One-Step Equations Worksheet Due: End of Period Target To review one-step equations.
The mathematics behind STELLA Global population model reservoir converter flow connector This system represents a simple differential equation this is.
Particular Solutions to Differential Equations Unit 4 Day 2.
Elimination Method Day 2 Today’s Objective: I can solve a system using elimination.
Martin-Gay, Developmental Mathematics 1 Warm-Up #28 (Thursday, 11/12)
Problem of the Day - Calculator Let f be the function given by f(x) = 2e4x. For what value of x is the slope of the line tangent to the graph of f at (x,
TODAY IN ALGEBRA…  Warm Up: Review solving Multi-step equations  15 minutes: Finish Mid-Ch.3 Test  Learning Goal: 3.4 You will solve equations with.
PreCalculus 3-4 Solving Exponential and Logarithm Equations.
Lesson 9-2 Direction (Slope) Fields and Euler’s Method.
Announcements 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.
Solving Ordinary Differential Equations
5.2 Euler’s Method.
Absolute Value Equations
Bell Ringer Solve each for x.
Module 3.2 Unconstrained Growth and Decay
10.8 Systems of Second-Degree Equations and Inequalities
Scientific Computing Lab
Module 2.2 Unconstrained Growth and Decay
Local Linearity and Approximation
Section Euler’s Method
Differential Equations Growth and Decay
I CAN solve equations using the Quadratic Formula. lesson 9.4a.
Solving Exponential and Logarithm Equations
6.1 day 2 Euler’s Method Leonhard Euler made a huge number of contributions to mathematics, almost half after he was totally blind. (When this portrait.
Algebra 1 Section 6.4.
Euler’s Method Leonhard Euler made a huge number of contributions to mathematics, almost half after he was totally blind. (When this portrait was made.
Algebra 2 Ch.3 Notes Page 15 P Solving Systems Algebraically.
Solve Special Types of Linear Systems
HW: Maintenance Sheet DUE
Find a if: a2 + b2 = c2 1.) c=10, b= 8 2.) c=20,b=16 3.) a2+152=172
Choose the differential equation corresponding to this direction field
Choose the equation which solution is graphed and satisfies the initial condition y ( 0 ) = 8. {applet} {image}
Which equation does the function {image} satisfy ?
Module 3.3 Constrained Growth
Euler’s Method Leonhard Euler made a huge number of contributions to mathematics, almost half after he was totally blind. (When this portrait was made.
5. Euler’s Method.
Homework, red pen, pencil, assignment sheet, highlighter, module
Reading Between the Lines!
Solve by Substitution 2x + y = 7 3x + 3y = - 3.
Presentation transcript:

Euler’s Method CS 170: Computing for the Sciences and Mathematics

Administrivia Last time (in P265)  Basics of Algorithms and computation Today  More Maple  Euler’s method  HW #6 Due!  HW #7 assigned

Euler’s method Simplest simulation technique for solving differential equation Intuitive Some other methods faster and more accurate Error on order of ∆t  Cut ∆t in half  cut error by half

Euler’s Method Euler’s Method is a simulation technique. Example: unconstrained growth dP/dt = 0.1P with P 0 = 100 P(t) = P(t - ∆t ) + growth(t) ∆t (new = old + change) growth(t) is dP/dt = 0.1P(t - ∆t ) (change = r*P old )

Example dP/dt = 0.1P with P 0 = 100 and ∆t = 8

Approximating Unconstrained Growth initialize simulationLength, population, growthRate, ∆t numIterations  simulationLength / ∆t for i going from 1 to numIterations do the following: growth  growthRate * population population  population + growth * ∆t t  t + ∆t

Approximating Unconstrained Growth (Better) initialize simulationLength, population, growthRate, ∆t numIterations  simulationLength / ∆t for i going from 1 to numIterations do the following: growth  growthRate * population population  population + growth * ∆t t  i*∆t

Error Analytical solution: P = 100 e 0.10t After 100 time units: P = 2,202,647 Smaller ∆t  better estimation ∆t = 1estimate of P = 1,378,061 ∆t = 0.25estimate of P = 1,947,808 ∆t = 0.01estimate of P = 2,191,668 ∆t = 0.005estimate of P = 2,197,149

HOMEWORK! Homework 7  Maple Tutorial 2  Complete the worksheet’s questions and turn it in  Also complete Module 5.2’s Project 1 on page 167.  Due 11/1/2010 Thursday’s Class in P115