Euler’s method and so on… Euler’s method of approximation of a function y = f(x) is approximations. constructed from repeated applications of linear It.

Slides:



Advertisements
Similar presentations
NUMERICAL METHODS WITH C++ PROGRAMMING
Advertisements

Graphing Linear Equations in Two Variables The Graph of a linear equation in two variables is the graph of all the ordered pairs (x,y) that satisfy the.
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.
C1: The Equation of a Straight Line, lesson 2
Graphs of Linear Inequalities When the equal sign in a linear equation is replaced with an inequality sign, a linear inequality is formed. Solutions of.
Introduction This chapter gives you several methods which can be used to solve complicated equations to given levels of accuracy These are similar to.
GRAPHING LINEAR FUNCTIONS Graphing Straight Lines This presentation looks at two methods for graphing a line. 1.By finding and plotting points 2.Using.
Solving Systems of Equations by Graphing  What is a System of Equations?  Solving Linear Systems – The Graphing Method  Consistent Systems – one point.
5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off.
THE MODULUS FUNCTION.
SECTIONS B Chapter 2. Objectives To draw scatter plots. To find and use prediction equations. Using a graphing calculator to graph lines of regression.
HKDSE MATHEMATICS Ronald Hui Tak Sun Secondary School.
Ms. Battaglia AP Calculus. Estimate y(4) with a step size h=1, where y(x) is the solution to the initial value problem: y’ – y = 0 ; y(0) = 1.
Simultaneous equations Applying algebraic skills to linear equations I can… …solve simultaneous equations graphically …solve simultaneous equations algebraically.
MDFP Introduction to Mathematics Linear Functions 3 ways to graph a straight line.
Lesson 6-7 Scatter Plots and Lines of Best Fit. Scatter Plots A scatter plot is a graph that relates two different sets of data by plotting the data as.
Tangent Line Approximations Section 3.9 Notes. Given a function, f (x), we can find its tangent at x = a. The equation of the tangent line, which we’ll.
Linear Approximations. In this section we’re going to take a look at an application not of derivatives but of the tangent line to a function. Of course,
2-1: Graphing Linear Relations and Functions
3-1 Graphing Systems of Equations
Straight Line Graph revision
CHAPTER 3 NUMERICAL METHODS
Linear Functions January 11, 2017.
Objective: To construct equations of straight lines from given graphs
Straight Line Graph revision
Trapezoid Method and Iteration & Acceleration
Aim #8.1:How do we solve systems of equations with two variables?
Y-intercept: y-coordinate of the point where the graph intersects the y-axis. The x-coordinate of this point is always 0, i.e., (0, #). x-intercept: x-coordinate.
Day 41 – Equilateral triangle inscribed in a circle
Functions & Relations.
Section 3.6 Functions.
Please close your laptops
Intro to Functions.
With pairs of compasses!
Average Rates of Change
2-1: Graphing Linear Relations and Functions
Linear Functions SOL 8.14, SOL 8.16, SOL 8.17.
Basic Graphing Techniques
Katherine Han Period Linear Approximation Katherine Han Period
INTERPOLATION Prof. Samuel Okolie, Prof. Yinka Adekunle & Dr
Solving Systems of Equations by Graphing
Section Euler’s Method
1.2: Graphing Linear Relations and Functions
Finding A Better Final Discretized Equation
Entry Task Rewrite in Slope intercept form 2x – 4y = 10 y/9 + x/3 = 2y
Graphing Linear Equations
Lesson Objectives: I will be able to …
Objectives Identify linear functions and linear equations.
Linear Equations Muhammad Babar.
Know how to check all solutions
Graphing Linear Relations and Functions
2-1: Graphing Linear Relations and Functions
2-4: Writing Linear Equations Using Slope Intercept Form
Identifying Linear Functions
Objectives Identify linear functions and linear equations.
2-1: Graphing Linear Relations and Functions
Millburn Academy Maths department Higher Equation of a Line y = mx + c.
Numerical Integration
2-1: Graphing Linear Relations and Functions
Objectives Identify linear functions and linear equations.
Relations P.O.D. #34 Feb 18 Find each function value.  
Graphing Linear Relations and Functions
Ch5 Initial-Value Problems for ODE
2.2 Linear relations and functions.
Graphing Linear Relations and Functions
Gradients L.O. All pupils can find the gradient of linear graphs
Copyright © Cengage Learning. All rights reserved.
Linear approximation Median home prices in Austin
Lesson 4.1: Identifying linear functions
Presentation transcript:

Euler’s method and so on… Euler’s method of approximation of a function y = f(x) is approximations. constructed from repeated applications of linear It consists of generating a sequence of ordered pairs (x i, y i ). The sequence is generated in the following way.  (a, b) are the coordinates of the starting point  x 1 = ay 1 = b  x 2 = x 1 + hy 2  y 1 + f (x 1 ) × h where h is the step size  x 3 = x 2 + hy 3  y 2 + f (x 2 ) × h

Euler’s method Consider approximating the function f(x) = e x over the interval [2, 2.2].  Choose (2, e 2 ) as the coordinates of the starting point, i.e., (x 1, y 1 ) = (2, e 2 ). x y y = e x (2, e 2 )

Euler’s method  Choose a step size of 0.1, therefore h = 0.1 y x ( 2, e 2 ) ( 2.1, e 2.1 ) 0.1 f (x 1 ) × h = e 2 × 0.1 (  0.739) Gradient = e 2 The approximated value of the function when x = 2.1 is e e 2 = 1.1e 2 = e   x 2 = x 1 + h = = 2.1  f  (x) = e x, f  (x 1 ) = e 2.The straight line with gradient e 2 is drawn from the start point. (2.1, 8.128) The actual value of the function when x = 2.1 is e 2.1 (8.166…) y = e x

Euler’s method Gradient = e 2.1  The process can be repeated with a new start point at (2.1, 1.1e 2 ) y x f (x 2 ) × h = e 2.1 × 0.1 (  0.817) The approximated value of the function when x = 2.2 is 1.1e   x 3 = x 2 + h = = 2.2  f  (x 2 ) = e 2.1.The straight line with gradient e 2.1 is drawn from the new start point. (2.1, 1.1e 2 ) The actual value of the function when x = 2.2 is e 2.2 (9.025…) y = e x ( 2.2, e 2.2 ) (2.2, 8.945)

Euler’s method In summary: (x 1, y 1 ) = (2, e 2 ) Gradient = e 2 f (x 1 ) = e 2 (x 2, y 2 ) = (2.1, 8.128) y x y = e x ( 2.1, e 2.1 ) ( 2.2, e 2.2 ) f (x 2 ) = e 2.1 Gradient = e 2.1 (x 2, y 2 ) = (2.1, 8.128) (x 3, y 3 ) = (2.2, 8.945) (x 1, y 1 ) = ( 2, e 2 )