PGE 310: Formulation and Solution of Geosystems Engineering Problems Dr. Matthew T. Balhoff Spring 2011 Notes Adapted from: Chapra, S., Canale, R. “Numerical.

Slides:



Advertisements
Similar presentations
Copyright © Cengage Learning. All rights reserved.
Advertisements

DERIVATIVES 3. DERIVATIVES In this chapter, we begin our study of differential calculus.  This is concerned with how one quantity changes in relation.
Boyce/DiPrima 9th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9th edition, by.
ECIV 301 Programming & Graphics Numerical Methods for Engineers.
A few words about convergence We have been looking at e a as our measure of convergence A more technical means of differentiating the speed of convergence.
Section 8.3 Slope Fields; Euler’s Method.  Calculus,10/E by Howard Anton, Irl Bivens, and Stephen Davis Copyright © 2009 by John Wiley & Sons, Inc. All.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Dr. Jie Zou PHY Chapter 7 Numerical Differentiation: 1 Lecture (I) 1 Ref: “Applied Numerical Methods with MATLAB for Engineers and Scientists”, Steven.
Implicit Differentiation. Objectives Students will be able to Calculate derivative of function defined implicitly. Determine the slope of the tangent.
1 Topic The Quadratic Formula. 2 Topic The Quadratic Formula California Standards: 19.0 Students know the quadratic formula and are familiar.
Many quadratic equations can not be solved by factoring. Other techniques are required to solve them. 7.1 – Completing the Square x 2 = 20 5x =
7.1 – Completing the Square
Calculus and Analytic Geometry II Cloud County Community College Spring, 2011 Instructor: Timothy L. Warkentin.
3 DERIVATIVES.
Boyce/DiPrima 9 th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
CMPS1371 Introduction to Computing for Engineers NUMERICAL METHODS.
First, some left-overs… Lazy languages Nesting 1.
Numerical Methods Applications of Loops: The power of MATLAB Mathematics + Coding 1.
Applied Calculus, 3/E by Deborah Hughes-Hallet Copyright 2006 by John Wiley & Sons. All rights reserved. Section 10.3: Slope Fields Section 10.3 Slope.
First, a little review: Consider: then: or It doesn’t matter whether the constant was 3 or -5, since when we take the derivative the constant disappears.
Copyright © Cengage Learning. All rights reserved. 4 Applications of Differentiation.
Slope Fields and Euler’s Method Copyright © Cengage Learning. All rights reserved Day
Differential Calculus The mathematics of teeny little amounts Differential Calculus 1 
Loop Application: Numerical Methods, Part 1 The power of Matlab Mathematics + Coding.
2.5 Implicit Differentiation
Applied Numerical Method for Engineers and Scientists
NEWTON’S METHOD/ MATLAB GRAPHICAL USER INTERFACE Caitlyn Davis-McDaniel and Dr. Scott Sarra Department of Mathematics, Marshall University, Huntington,
CSE 3802 / ECE 3431 Numerical Methods in Scientific Computation
Boyce/DiPrima 9 th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9 th edition, by.
Extreme Values of Functions Sec. 4.1 Notes. The textbook gives the following example at the start of chapter 4: The mileage of a certain car can be approximated.
–1 –2 We’ve plotted points on graphs before… Plot the following points on the empty grid at the top of your worksheet.
Numerical Methods Part: False-Position Method of Solving a Nonlinear Equation
Problem of the Day No calculator! What is the instantaneous rate of change at x = 2 of f(x) = x2 - 2 ? x - 1 A) -2 C) 1/2 E) 6 B) 1/6 D) 2.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Introduction Course Outline.
Newton’s Method, Root Finding with MATLAB and Excel
MECN 3500 Inter - Bayamon Lecture 6 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
AUGUST 2. MATH 104 Calculus I Review of previous material…. …methods and applications of integration, differential equations ………..
Applications of Loops: The power of MATLAB Mathematics + Coding
ANTIDERIVATIVES Definition: reverse operation of finding a derivative.
§3.6 Newton’s Method. The student will learn about
Notes Over 5.6 Quadratic Formula
Econ 201/202 Review of Essential Math and Graphing Skills.
Linearization, Newton’s Method
Warm up Problems More With Integrals It can be helpful to guess and adjust Ex.
Sections 3.8, 4.6, and 6.1 Numerical Techniques. For our last PowerPoint of the year we will take a quick tour of some numerical techniques that we have.
Econ 201/202 Review of Essential Math and Graphing Skills.
The formulae for the roots of a 3rd degree polynomial are given below
The Quadratic Formula November 1, Quadratic Formula Methods to Solve Quadratics Equations Factoring But factoring is only “nice” when there are.
Algebra 2 Perfect Squares Lesson 4-6 Part 1. Goals Goal To solve quadratic equations by finding square roots. To solve a perfect square trinomial equation.
P2 Chapter 8 CIE Centre A-level Pure Maths © Adam Gibson.
§ 4.2 The Exponential Function e x.
Solving Quadratic Equations by the Quadratic Formula
Solving Quadratic Equations by the Quadratic Formula
Boyce/DiPrima 9th ed, Ch 2.7: Numerical Approximations: Euler’s Method Elementary Differential Equations and Boundary Value Problems, 9th edition, by.
Implicit Differentiation
Numerical Methods: Euler’s and Advanced Euler’s (Heun’s) Methods
Warmup Solve:
Warmup Solve:
Quick Review 2012 Pearson Education, Inc..
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Quadratic Formula.
Applied Numerical Methods
Copyright © Cengage Learning. All rights reserved.
Solving Quadratic Equations by the Quadratic Formula
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
MATH 1910 Chapter 3 Section 8 Newton’s Method.
Reading Between the Lines!
Solving Quadratic Equations by the Quadratic Formula
Presentation transcript:

PGE 310: Formulation and Solution of Geosystems Engineering Problems Dr. Matthew T. Balhoff Spring 2011 Notes Adapted from: Chapra, S., Canale, R. “Numerical Methods for Engineers”, Mc-Graw Hill Co. (2010) Rectenwald, G. “Numerical Methods with MATLAB”Prentice-Hall (2000) Gilat, A., Subramaniam, V. “Numerical Methods for Engineers and Scientists” John Wiley and Sons Inc. (2011)

About Me Education/Research Experience –B.S. Chemical Engineering, Louisiana State University 2000 –Ph.D. Chemical Engineering, Louisiana State University 2005 –ICES Postdoctoral Fellow (CSM), UT-Austin –Assistant Professor, UT-Austin Research Interests –Flow and transport in porous media –Non-Newtonian flow –Pore-scale and Multi-scale modeling –NUMERICAL METHODS +=

What’s a Numerical Method ? Many math problems cannot be solved analytically (exactly) Numerical methods are approximate techniques Real-life problems in science and engineering require these numerical techniques Real world problems can take hours, days, or years to solve. A well written computer program (in MATLAB for example) can do it much faster.

Example 1: Roots of Equations A root of an equation is the value that results in a “zero” of the function Q: Find the root of the following quadratic equation

Example 1: Roots of Equations A root of an equation is the value that results in a “zero” of the function Q: Find the root of the following quadratic equation A: The quadratic formula is an EXACT method for solving the roots of a quadratic equation Answer can be found by plugging in a, b, and c.

Example 1. Roots of Equations Ideal gas law doesn’t always apply:

Example 1. Roots of Equations Ideal gas law doesn’t always apply: In petroleum engineering, we deal with gases far from ideal (P=50 bar, T=473K) Methane

Example 1. Roots of Equations Ideal gas law doesn’t always apply: In petroleum engineering, we deal with gases far from ideal (P=50 bar, T=473K) So how do we find the root of this function, where the quadratic equation doesn’t apply? (R= cm 3 -bar/mol-K) Methane

Example 1: Ideas? What would be a good guess, if we needed a “ballpark” figure?

Example 1: Ideas? What would be a good guess, if we needed a “ballpark” figure? How can we get very close to the “exact” solution by performing very few calculations?

Example 1: Ideas? What would be a good guess, if we needed a “ballpark” figure? How can we get very close to the “exact” solution by performing very few calculations?

Root ~ 755 Could have plotted points

Example 2. Differentiation Derivative: “the slope of the line tangent to the curve”. But we seem to forget about that once we learn some fancy tricks to find the derivative Q: What is the derivative (dy/dx) at x = 1?

Example 2. Differentiation Derivative: “the slope of the line tangent to the curve”. But we seem to forget about that once we learn some fancy tricks to find the derivative Q: What is the derivative (dydx) at x = 1? But how do we find the derivative of a really complicated function – or one that isn’t described by an equation?

dy/dx = slope = -2

Example 3: Integration Integral: The area under the curve But then we learned some fancy tricks in Calculus Find the Integral:

Example 3: Integration Integral: The area under the curve But then we learned some fancy tricks in Calculus Find the Integral: These “tricks” don’t always work in the real world and we need APPROXIMATE methods

w 1 = 1/4 H 1 = y(0) Area 1 = H 1 *w 1 Add areas of triangles to approximate area under the curve Area 2 = H 2 *w 2

w 1 = 1/4 H 1 = y(0) Area 1 = H 1 *w 1 Add areas of triangles to approximate area under the curve Area 2 = H 2 *w 2 Some error

We get a better answer by using more rectangles

Compare Answers 4 Rectangles: Area = Rectangles: Area= Rectangles: Area = ,000,000 Rectangles = Actual = 4/3

Great. Now what’s the computer for? Numerical methods can require lots of computational effort –Root solving method may take lots of iterations before it converges –We might have to differentiate millions of equations –We might need thousands of little rectangles Computers can solve these problems a lot faster if we program them right We’ll have to learn some programming (in Matlab) before moving on to learning advanced numerical techniques Matlab isn’t hard, it just requires PRACTICE. Don’t get intimidated