Direction Fields; Euler s Method

Similar documents
The diagram above shows a sketch of the curve C with parametric equations

Euler s Method for Approximating Solution Curves

Solved Examples. Parabola with vertex as origin and symmetrical about x-axis. We will find the area above the x-axis and double the area.

Name: Date: 1. Match the equation with its graph. Page 1

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6. ) is graphed below:

Find the specific function values. Complete parts (a) through (d) below. f (x,y,z) = x y y 2 + z = (Simplify your answer.) ID: 14.1.

Jim Lambers MAT 169 Fall Semester Lecture 33 Notes

Calculators ARE NOT Permitted On This Portion Of The Exam 28 Questions - 55 Minutes

GRAPHING WORKSHOP. A graph of an equation is an illustration of a set of points whose coordinates satisfy the equation.

C3 Numerical methods

Continuity and Tangent Lines for functions of two variables

6. Find the equation of the plane that passes through the point (-1,2,1) and contains the line x = y = z.

During the timed portion for Part A, you may work only on the problems in Part A.

True/False. MATH 1C: SAMPLE EXAM 1 c Jeffrey A. Anderson ANSWER KEY

AP Calculus AB Unit 2 Assessment

1) Find. a) b) c) d) e) 2) The function g is defined by the formula. Find the slope of the tangent line at x = 1. a) b) c) e) 3) Find.

Section 7.2 Volume: The Disk Method

First of all, we need to know what it means for a parameterize curve to be differentiable. FACT:

Section 1.1 The Distance and Midpoint Formulas

Math 126 Winter CHECK that your exam contains 8 problems.

Part I. Problems in this section are mostly short answer and multiple choice. Little partial credit will be given. 5 points each.

ENGI Parametric & Polar Curves Page 2-01

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6

Warm-Up. Write the standard equation of the circle with the given radius and center. 1) 9; (0,0) 2) 1; (0,5) 3) 4; (-8,-1) 4) 5; (4,2)

Polar (BC Only) They are necessary to find the derivative of a polar curve in x- and y-coordinates. The derivative

MATH 19520/51 Class 6

Surfaces and Partial Derivatives

SPM Add Math Form 5 Chapter 3 Integration

12.4 Rotations. Learning Objectives. Review Queue. Defining Rotations Rotations

MA 114 Worksheet #17: Average value of a function

Tangent Planes/Critical Points

Each point P in the xy-plane corresponds to an ordered pair (x, y) of real numbers called the coordinates of P.

Surfaces and Partial Derivatives

4 Visualization and. Approximation

SECTION 1.2 (e-book 2.3) Functions: Graphs & Properties

REVIEW I MATH 254 Calculus IV. Exam I (Friday, April 29) will cover sections

Did You Find a Parking Space?

The base of a solid is the region in the first quadrant bounded above by the line y = 2, below by

AP * Calculus Review. Area and Volume

LECTURE 18 - OPTIMIZATION

Chapter 10 Homework: Parametric Equations and Polar Coordinates

Chapter 5 Partial Differentiation

Objectives. Materials

Exam 3 SCORE. MA 114 Exam 3 Spring Section and/or TA:

Sec 4.1 Coordinates and Scatter Plots. Coordinate Plane: Formed by two real number lines that intersect at a right angle.

Math 21a Tangent Lines and Planes Fall, What do we know about the gradient f? Tangent Lines to Curves in the Plane.

Changing Variables in Multiple Integrals

Tangent line problems

QUADRATIC AND CUBIC GRAPHS

----- o Implicit Differentiation ID: A. dy r.---; d 2 Y 2. If- = '" 1-y- then - = dx 'dx 2. a c. -1 d. -2 e.

SHOW ALL NEEDED WORK IN YOUR NOTEBOOK.

PARAMETRIC EQUATIONS AND POLAR COORDINATES

B. Examples Set up the integral(s) needed to find the area of the region bounded by

Functions. Copyright Cengage Learning. All rights reserved.

Sec.4.1 Increasing and Decreasing Functions

Graphing Linear Equations

c x y f() f (x) Determine the Determine the Approximate c : Replacin on the AP exam: under-approximation

MAC2313 Final A. a. The vector r u r v lies in the tangent plane of S at a given point. b. S f(x, y, z) ds = R f(r(u, v)) r u r v du dv.

Tangent Lines and Linear Approximations Solutions

MEI Desmos Tasks for AS Pure

Curves, Tangent Planes, and Differentials ( ) Feb. 26, 2012 (Sun) Lecture 9. Partial Derivatives: Signs on Level Curves, Tangent

Critical and Inflection Points

Math 2260 Exam #1 Practice Problem Solutions

Math 8 Honors Coordinate Geometry part 3 Unit Updated July 29, 2016

We imagine the egg being the three dimensional solid defined by rotating this ellipse around the x-axis:

2.9 Linear Approximations and Differentials

f xx (x, y) = 6 + 6x f xy (x, y) = 0 f yy (x, y) = y In general, the quantity that we re interested in is

Euler s Method and Logistic Growth (BC Only)

Objectives. Materials

You may know these...

Differentiation. J. Gerlach November 2010

Test Name: Chapter 3 Review

Name: Class: Date: 1. Use Lagrange multipliers to find the maximum and minimum values of the function subject to the given constraint.

CS 130. Scan Conversion. Raster Graphics

2.2 Graphs Of Functions. Copyright Cengage Learning. All rights reserved.

Tangents of Parametric Curves

OpenGL Graphics System. 2D Graphics Primitives. Drawing 2D Graphics Primitives. 2D Graphics Primitives. Mathematical 2D Primitives.

13.1. Functions of Several Variables. Introduction to Functions of Several Variables. Functions of Several Variables. Objectives. Example 1 Solution

Exam 1 Review. MATH Intuitive Calculus Fall Name:. Show your reasoning. Use standard notation correctly.

Section 4.3: How Derivatives Affect the Shape of the Graph

Module 3: Stand Up Conics

Calculus II (Math 122) Final Exam, 11 December 2013

Volume by Slicing (Disks & Washers)

graphing_9.1.notebook March 15, 2019

University of California, Berkeley

2. Solve for x when x < 22. Write your answer in interval notation. 3. Find the distance between the points ( 1, 5) and (4, 3).

Without fully opening the exam, check that you have pages 1 through 11.

MATHEMATICS 9709/33 Paper 3 Pure Mathematics 3 (P3) October/November 2017

Polar Coordinates

UNIT 3B CREATING AND GRAPHING EQUATIONS Lesson 4: Solving Systems of Equations Instruction

Parametric and Polar Curves

Parametric and Polar Curves

8.2 Graph and Write Equations of Parabolas

Math 113 Calculus III Final Exam Practice Problems Spring 2003

Calculus III. Math 233 Spring In-term exam April 11th. Suggested solutions

SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.

[Anton, pp , pp ] & [Bourne, pp ]

Questions Q1. (a) Find the values of the constants A, B and C. (4) b) Hence find

Section 7D Systems of Linear Equations

NAME: Section # SSN: X X X X

Transcription:

Direction Fields; Euler s Method It frequently happens that we cannot solve first order systems dy (, ) dx = f xy or corresponding initial value problems in terms of formulas. Remarkably, however, this problem can be visualized in such a way that the rough behavior of the solutions can be determined by inspection. It is also true that this method leads to a useful way to determine solutions to initial value problems numerically.

If y(x) is a solution the DE Direction fields dy (, ) dx = f xy then, even if we do not have a formula for y(x) or knowledge of its overall behavior, we do know that when its graph goes through the point (x, y), the slope of the tangent line to the graph at that point will be the number f(x, y). This is because the slope of the tangent line is the derivative. Thus we decide to choose a grid of points in the plane, and at each point draw a small line segment whose slope is f(x, y).

If an initial condition is specified, such as the red point shown below, then the solution that goes through that point can be easily visualized, at least approximately. Initial point (x 0, y 0 )

If an initial condition is specified, such as the red point shown below, then the solution that goes through that point can be easily visualized, at least approximately.

In this way we can often determine if a solution is bounded or becomes infinite, and what its general shape is. One way to plot direction fields easily is to look at the curves f( xy, ) where c is a constant. Plot this curve for some fixed value of c, then observe that the slope f(x, y) is the same at every point of the curve. Compute the direction field line segment at one such point, and simply carry it to the other points in a parallel fashion. = c

Example. Plot the direction field corresponding to the DE dy y dx = Solution. The direction field has the same slope c at every point on the curve y = c. These curves are horizontal straight lines. Thus on the line y = 0 (the x-axis) the slopes are all 0, on the line y = 1, the slopes are all 1, on y = 2, they are all 2, and so on.

y = 1 y = 1/2 y = 0 y = 1

The integral curves that correspond to the initial conditions y(0) = 0 (green), y(0) = 1 (red), and y(0) = 1, (blue) are shown below.

Let us compare these results to the actual solutions of the equation dy y dx = corresponding to those three initial conditions. Here we can separate the equation to get Thus ln y = x + C, or dy dx y = y= Cex 1. The three initial conditions y(0) = 0, y(0) = 1, and y(0) = 1 give us the corresponding three solutions y= 0 y= ex y= ex

We compare below the graphs of the actual solutions with the approximate solutions derived from the direction field.

Below is the direction field for the DE y = x2+ y2. It is easily plotted by hand if we note that the curve x 2 + y 2 = c 2 is a circle of radius c and center (0, 0). Everywhere on such a circle, the slope of the line segments is c 2.

Finally, we add the solution if the initial condition is y(0) = 1.

Note that the previous DE y = x2+ y2 is neither separable nor linear, so we do not have any way to solve it at this point. Euler s Method for Computing Approximate Solutions to Initial Value Problems. Using the idea of direction fields, as demonstrated above, we can begin with a differential equation and an initial value point in the plane, and try to approximate the solution at a succession of points spaced h units apart, where h is small. These approximations will be gradually deviate from the true solution, but will be close if h is small, and we do not try to take too many steps.

Slope = f(x 1, y 1 ) Slope = f(x 0, y 0 ) h x 0 x 1 = x 0 +h x 2 = x 1 +h Begin at (x 0, y 0 ). The solution must move in the direction of a line of slope m = f(x 0, y 0 ). Move along that line to a new point (x 1, y 1 ), where x 1 = x 0 +h, and y 1 = y 0 +f(x 0, y 0 )h. At that point we move in the direction of a line with slope m = f(x 1, y 1 ) to a new point (x 2, y 2 ), where x 2 = x 1 +h, and y 2 = y 1 +f(x 1, y 1 )h.

Slope = f(x 2, y 2 ) Slope = f(x 1, y 1 ) Slope = f(x 3, y 3 ) Slope = f(x 0, y 0 ) h x 0 x 1 = x 0 +h x 2 = x 1 +h x 3 = x 2 +h Thus we generate a sequence of x locations x 1 = x 0 +h, x 2 = x 1 +h, x 3 = x 2 +h, x 4 = x 3 +h, And a sequence of corresponding y locations y 1 = y 0 +f(x 0, y 0 )h, y 2 = y 1 +f(x 1, y 1 )h, y 3 = y 2 +f(x 2, y 2 )h,

Here is a table of Euler s method for the initial value problem y = y xy ; (0) = 2; h= 0.1 n x n y n f(x n, y n )h y n+1 0 0 2.00000 0.20000 2.20000 1 0.1 2.20000 0.21000 2.41000 2 0.2 2.41000 0.22100 2.63100 3 0.3 2.63100 0.23310 2.86410 4 0.4 2.86410 0.24641 3.11051 5 0.5 3.11051 0.26105 3.27156 6 0.6 3.37156 0.27716 3.64872 7 0.7 3.64872 0.29487 3.94359 8 0.8 3.94359 0.31436 4.25795 9 0.9 4.25795 0.33579 4.59374

Here is a table indicating the error that occurs. x Exact Solution Euler Approx. Error Percent Error 0 2.00000 2.00000 0.00000 0.00 0.1 2.20517 2.20000 0.00517 0.23 0.2 2.42140 2.41000 0.01140 0.47 0.3 2.64986 2.63100 0.01886 0.71 0.4 2.89182 2.86410 0.02772 0.96 0.5 3.14872 3.11051 0.03821 1.21 0.6 3.42212 3.37156 0.05056 1.48 0.7 3.71375 3.64872 0.06503 1.75 0.8 4.02554 3.94359 0.08195 2.04 0.9 4.35960 4.25795 0.10165 2.33