Numerical Methods for PDEs

Similar documents
Chapter 3 Second Order Linear Equations

UNIVERSITY of LIMERICK OLLSCOIL LUIMNIGH

Scientific Computing: An Introductory Survey

First order wave equations. Transport equation is conservation law with J = cu, u t + cu x = 0, < x <.

BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES

ENGI 4430 PDEs - d Alembert Solutions Page 11.01

AM 205: lecture 14. Last time: Boundary value problems Today: Numerical solution of PDEs

Introduction to Partial Differential Equations

Chapter 3. Second Order Linear PDEs

The method of lines (MOL) for the diffusion equation

PDEs, part 1: Introduction and elliptic PDEs

CLASSIFICATION AND PRINCIPLE OF SUPERPOSITION FOR SECOND ORDER LINEAR PDE

ENGI 9420 Lecture Notes 8 - PDEs Page 8.01

First order Partial Differential equations

LINEAR SECOND-ORDER EQUATIONS

INTRODUCTION TO PDEs

Additive Manufacturing Module 8

M.Sc. in Meteorology. Numerical Weather Prediction

Lecture 1. Finite difference and finite element methods. Partial differential equations (PDEs) Solving the heat equation numerically

Discretization of PDEs and Tools for the Parallel Solution of the Resulting Systems

Introduction to PDEs and Numerical Methods: Exam 1

Video 15: PDE Classification: Elliptic, Parabolic and Hyperbolic March Equations 11, / 20

LECTURE # 0 BASIC NOTATIONS AND CONCEPTS IN THE THEORY OF PARTIAL DIFFERENTIAL EQUATIONS (PDES)

Math 220A - Fall 2002 Homework 5 Solutions

Partial Differential Equations

Tutorial 2. Introduction to numerical schemes

PDEs, part 3: Hyperbolic PDEs

Classification of Second order PDEs

ENGI 9420 Lecture Notes 8 - PDEs Page 8.01

Mathematical Methods - Lecture 9

Chapter 5 Types of Governing Equations. Chapter 5: Governing Equations

Introduction to Differential Equations

[2] (a) Develop and describe the piecewise linear Galerkin finite element approximation of,

Differential equations, comprehensive exam topics and sample questions

(1) u (t) = f(t, u(t)), 0 t a.

ENGI 9420 Engineering Analysis Solutions to Additional Exercises

APPENDIX : PARTIAL FRACTIONS

Partial Differential Equations

Partial Differential Equations

Introduction of Partial Differential Equations and Boundary Value Problems

Chapter Two: Numerical Methods for Elliptic PDEs. 1 Finite Difference Methods for Elliptic PDEs

Math 46, Applied Math (Spring 2008): Final

MATH 425, FINAL EXAM SOLUTIONS

DIFFERENTIAL EQUATIONS

Hyperbolic PDEs. Chapter 6

Table of Contents. II. PDE classification II.1. Motivation and Examples. II.2. Classification. II.3. Well-posedness according to Hadamard

Lecture No 1 Introduction to Diffusion equations The heat equat

Numerical Solutions to Partial Differential Equations

LECTURE NOTES IN PARTIAL DIFFERENTIAL EQUATIONS. Fourth Edition, February by Tadeusz STYŠ. University of Botswana

1 Curvilinear Coordinates

OR MSc Maths Revision Course

Math 4263 Homework Set 1

Lecture 9 Approximations of Laplace s Equation, Finite Element Method. Mathématiques appliquées (MATH0504-1) B. Dewals, C.

Lecture 10. (2) Functions of two variables. Partial derivatives. Dan Nichols February 27, 2018

An Introduction to Numerical Methods for Differential Equations. Janet Peterson

Lecture Notes on PDEs

High order FEM vs. IgA by J.A.Evans, T.J.Hughes and A.Reali, 2014

A Note on Integral Transforms and Partial Differential Equations

Applied Mathematics 205. Unit III: Numerical Calculus. Lecturer: Dr. David Knezevic

Extra Problems and Examples

First, Second, and Third Order Finite-Volume Schemes for Diffusion

Welcome to Math 257/316 - Partial Differential Equations

Lecture Introduction

Problem Set 4 Issued: Wednesday, March 18, 2015 Due: Wednesday, April 8, 2015

Homework 3 solutions Math 136 Gyu Eun Lee 2016 April 15. R = b a

A space-time Trefftz method for the second order wave equation

Lecture 6: Introduction to Partial Differential Equations

Lecture 3 Partial Differential Equations

Partial Differential Equations

Numerical Analysis and Computer Science DN2255 Spring 2009 p. 1(8)

Propagation of discontinuities in solutions of First Order Partial Differential Equations

Finite Differences for Differential Equations 28 PART II. Finite Difference Methods for Differential Equations

DUHAMEL S PRINCIPLE FOR THE WAVE EQUATION HEAT EQUATION WITH EXPONENTIAL GROWTH or DECAY COOLING OF A SPHERE DIFFUSION IN A DISK SUMMARY of PDEs

Before we look at numerical methods, it is important to understand the types of equations we will be dealing with.

The Weierstrass Theory For Elliptic Functions. The Burn 2007

Numerical Analysis of Differential Equations Numerical Solution of Parabolic Equations

Lecture Notes on Partial Dierential Equations (PDE)/ MaSc 221+MaSc 225

Numerical Methods for Partial Differential Equations: an Overview.

Lecture 16: Relaxation methods

A space-time Trefftz method for the second order wave equation

A FAST SOLVER FOR ELLIPTIC EQUATIONS WITH HARMONIC COEFFICIENT APPROXIMATIONS

MAE/MSE502 Partial Differential Equations in Engineering. Spring 2019 Mon/Wed 6:00-7:15 PM Classroom: CAVC 101

Basic Aspects of Discretization

MATH 412 Fourier Series and PDE- Spring 2010 SOLUTIONS to HOMEWORK 5

3.4. Monotonicity of Advection Schemes

Finite difference method for elliptic problems: I

7 Hyperbolic Differential Equations

PDE and Boundary-Value Problems Winter Term 2014/2015

Boundary-value Problems in Rectangular Coordinates

An Accurate Fourier-Spectral Solver for Variable Coefficient Elliptic Equations

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 13

z x = f x (x, y, a, b), z y = f y (x, y, a, b). F(x, y, z, z x, z y ) = 0. This is a PDE for the unknown function of two independent variables.

SAMPLE FINAL EXAM SOLUTIONS

Final: Solutions Math 118A, Fall 2013

Solving PDEs with freefem++

MAE502/MSE502 Partial Differential Equations in Engineering. Spring 2012 Mon/Wed 5:00-6:15 PM

Existence Theory: Green s Functions

Math 5440 Problem Set 6 Solutions

Applied Mathematics 505b January 22, Today Denitions, survey of applications. Denition A PDE is an equation of the form F x 1 ;x 2 ::::;x n ;~u

Notes: Outline. Diffusive flux. Notes: Notes: Advection-diffusion

Transcription:

Numerical Methods for PDEs Partial Differential Equations (Lecture 1, Week 1) Markus Schmuck Department of Mathematics and Maxwell Institute for Mathematical Sciences Heriot-Watt University, Edinburgh Edinburgh, 12 January, 2015 1/ 11

Outline 1 Introduction 2 Classification of PDEs 3 Available numerical methods 2/ 11

Introduction and basic concepts This course consists of the following four Sections: 1. Partial Differential Equations and the Finite Difference Method 2. Parabolic PDEs 3. Hyperblic PDEs 4. Elliptic PDEs What is a partial differential equation? Definition. Equations which contain the partial derivatives of a function u(x, y) : R 2 R are called Partial Differential Equations (PDEs): ( F x, y, u, u x, u ) y, u = 0. x y 3/ 11

Introduction and basic concepts This course consists of the following four Sections: 1. Partial Differential Equations and the Finite Difference Method 2. Parabolic PDEs 3. Hyperblic PDEs 4. Elliptic PDEs What is a partial differential equation? Definition. Equations which contain the partial derivatives of a function u(x, y) : R 2 R are called Partial Differential Equations (PDEs): ( F x, y, u, u x, u ) y, u = 0. x y 3/ 11

Examples of PDEs: i) 1st order PDE: u x = u x = 0. Solutions u(x, y) are invariant in x, hence u(x, y) = φ(y). ii) Linear transport or advection: { u t + cu x = 0, x R, t > 0 u(0, x) = u 0 (x), Solution u(t, x) = u 0 (x ct), since initial condition u t = u t = u 0 t = cu 0 u (x ct) = c x. 4/ 11

Examples of PDEs: i) 1st order PDE: u x = u x = 0. Solutions u(x, y) are invariant in x, hence u(x, y) = φ(y). ii) Linear transport or advection: { u t + cu x = 0, x R, t > 0 u(0, x) = u 0 (x), Solution u(t, x) = u 0 (x ct), since initial condition u t = u t = u 0 t = cu 0 u (x ct) = c x. 4/ 11

Examples of PDEs (continued): iii) Laplace equation: Let Ω R 2. Find the solution of u(x, y) := div ( u) := u xx + u yy = 0, which requires boundary conditions for uniqueness. Possible solutions are u(x, y) = x 2 y 2, u(x, y) = ln x 2 + y 2. iv) Wave equation: { u tt c 2 u xx = 0, x R, t > 0 u(0, x) = A(x) u t (0, x) = B(x), initial conditions Solution given by d Alembert s formula u(t, x) = 1 2 (A(x + ct) + A(x ct)) + 1 2c x+ct x ct B(ξ) dξ. 5/ 11

Examples of PDEs (continued): iii) Laplace equation: Let Ω R 2. Find the solution of u(x, y) := div ( u) := u xx + u yy = 0, which requires boundary conditions for uniqueness. Possible solutions are u(x, y) = x 2 y 2, u(x, y) = ln x 2 + y 2. iv) Wave equation: { u tt c 2 u xx = 0, x R, t > 0 u(0, x) = A(x) u t (0, x) = B(x), initial conditions Solution given by d Alembert s formula u(t, x) = 1 2 (A(x + ct) + A(x ct)) + 1 2c x+ct x ct B(ξ) dξ. 5/ 11

Examples of PDEs (continued) v) Diffusion equation: u t D u = 0, where D > 0 is the diffusion constant. v) Black-Scholes equation: v t + rsv s + 1 2 σ2 s 2 v ss = rv, where v(s, t) is the value of a share option, s is the share price, r is the interest rate, and σ is the share volatility. 6/ 11

Examples of PDEs (continued) v) Diffusion equation: u t D u = 0, where D > 0 is the diffusion constant. v) Black-Scholes equation: v t + rsv s + 1 2 σ2 s 2 v ss = rv, where v(s, t) is the value of a share option, s is the share price, r is the interest rate, and σ is the share volatility. 6/ 11

Classification of PDEs Definition. A linear PDE of the form is called a(x, y)u xx + 2b(x, y)u x,y + c(x, y)u yy + d(x, y)u x + e(x, y)u y + f (x, y)u = g, i) elliptic in (x, y) Ω, if ac b 2 > 0, ii) hyperbolic in (x, y) Ω, if ac b 2 < 0, iii) parabolic in (x, y) Ω, if ac b 2 = 0. The above linear PDE is elliptic (hyperbolic, parabolic) if it is elliptic (hyperbolic, parabolic) for all (x, y) Ω. (These definitions can be generalized to higher number of dimensions and other orders) 7/ 11

Classification of PDEs Definition. A linear PDE of the form is called a(x, y)u xx + 2b(x, y)u x,y + c(x, y)u yy + d(x, y)u x + e(x, y)u y + f (x, y)u = g, i) elliptic in (x, y) Ω, if ac b 2 > 0, ii) hyperbolic in (x, y) Ω, if ac b 2 < 0, iii) parabolic in (x, y) Ω, if ac b 2 = 0. The above linear PDE is elliptic (hyperbolic, parabolic) if it is elliptic (hyperbolic, parabolic) for all (x, y) Ω. (These definitions can be generalized to higher number of dimensions and other orders) 7/ 11

Classification of PDEs Definition. A linear PDE of the form is called a(x, y)u xx + 2b(x, y)u x,y + c(x, y)u yy + d(x, y)u x + e(x, y)u y + f (x, y)u = g, i) elliptic in (x, y) Ω, if ac b 2 > 0, ii) hyperbolic in (x, y) Ω, if ac b 2 < 0, iii) parabolic in (x, y) Ω, if ac b 2 = 0. The above linear PDE is elliptic (hyperbolic, parabolic) if it is elliptic (hyperbolic, parabolic) for all (x, y) Ω. (These definitions can be generalized to higher number of dimensions and other orders) 7/ 11

Classification of PDEs Definition. A linear PDE of the form is called a(x, y)u xx + 2b(x, y)u x,y + c(x, y)u yy + d(x, y)u x + e(x, y)u y + f (x, y)u = g, i) elliptic in (x, y) Ω, if ac b 2 > 0, ii) hyperbolic in (x, y) Ω, if ac b 2 < 0, iii) parabolic in (x, y) Ω, if ac b 2 = 0. The above linear PDE is elliptic (hyperbolic, parabolic) if it is elliptic (hyperbolic, parabolic) for all (x, y) Ω. (These definitions can be generalized to higher number of dimensions and other orders) 7/ 11

Examples: i) Laplace equation: Let Ω R 2. The equation u(x, y) = u xx + u yy = 0, is elliptic, since a = c = 1, b = 0 ac b 2 = 1. ii) Wave equation: The equation u tt c 2 u xx = 0, is hyperbolic, since a = 1, c = 1, b = 0 ac b 2 = 1 8/ 11

Examples: i) Laplace equation: Let Ω R 2. The equation u(x, y) = u xx + u yy = 0, is elliptic, since a = c = 1, b = 0 ac b 2 = 1. ii) Wave equation: The equation u tt c 2 u xx = 0, is hyperbolic, since a = 1, c = 1, b = 0 ac b 2 = 1 8/ 11

Examples (continued) iii) The diffusion equation u t D u = 0, and the Black-Scholes equation v t + rsv s + 1 2 σ2 s 2 v ss = rv, are parabolic, since a = 1, b = c = d = 0, e = 1 (for diffusion) and a = 1, b = c = 0, d = e = 1 (for Black-Scholes) ac b 2 = 0. 9/ 11

Main numerical methods: (Advantages/Disadvantages) 1. Finite Diference (FD) Methods. Find discrete solutions on a (often rectangular) grid/mesh. (Simple / Complicated Domains, Discretised classical solutions) 2. Finite Element (FE) Methods. A class of Galerkin methods which are based on a partition of the domain into small finite elements. (Better in irregular domains / More complex to set up and analyze) 3. Spectral Methods. Solutions are approximated by a truncated expansion in the eigenfunctions of some linear operator (e.g. a truncated Fourier Series). (Highly accurate for problems with smooth solutions/ Not so useful on irregular domains or for problems with discontinuities) 10/ 11 Numerical Methods for PDEs Why? Often, no exact analytical solutions available Provide a systematic approximation of exact solutions (e.g error quantificiation)

Main numerical methods: (Advantages/Disadvantages) 1. Finite Diference (FD) Methods. Find discrete solutions on a (often rectangular) grid/mesh. (Simple / Complicated Domains, Discretised classical solutions) 2. Finite Element (FE) Methods. A class of Galerkin methods which are based on a partition of the domain into small finite elements. (Better in irregular domains / More complex to set up and analyze) 3. Spectral Methods. Solutions are approximated by a truncated expansion in the eigenfunctions of some linear operator (e.g. a truncated Fourier Series). (Highly accurate for problems with smooth solutions/ Not so useful on irregular domains or for problems with discontinuities) 10/ 11 Numerical Methods for PDEs Why? Often, no exact analytical solutions available Provide a systematic approximation of exact solutions (e.g error quantificiation)

Main numerical methods: (Advantages/Disadvantages) 1. Finite Diference (FD) Methods. Find discrete solutions on a (often rectangular) grid/mesh. (Simple / Complicated Domains, Discretised classical solutions) 2. Finite Element (FE) Methods. A class of Galerkin methods which are based on a partition of the domain into small finite elements. (Better in irregular domains / More complex to set up and analyze) 3. Spectral Methods. Solutions are approximated by a truncated expansion in the eigenfunctions of some linear operator (e.g. a truncated Fourier Series). (Highly accurate for problems with smooth solutions/ Not so useful on irregular domains or for problems with discontinuities) 10/ 11 Numerical Methods for PDEs Why? Often, no exact analytical solutions available Provide a systematic approximation of exact solutions (e.g error quantificiation)

Main numerical methods: (Advantages/Disadvantages) 1. Finite Diference (FD) Methods. Find discrete solutions on a (often rectangular) grid/mesh. (Simple / Complicated Domains, Discretised classical solutions) 2. Finite Element (FE) Methods. A class of Galerkin methods which are based on a partition of the domain into small finite elements. (Better in irregular domains / More complex to set up and analyze) 3. Spectral Methods. Solutions are approximated by a truncated expansion in the eigenfunctions of some linear operator (e.g. a truncated Fourier Series). (Highly accurate for problems with smooth solutions/ Not so useful on irregular domains or for problems with discontinuities) 10/ 11 Numerical Methods for PDEs Why? Often, no exact analytical solutions available Provide a systematic approximation of exact solutions (e.g error quantificiation)

Summary of learning targets: 1. What is a PDE? 2. What types of PDEs exist and how are they classified? 3. What kind of numerical methods can be used? Advantages and disadvantages between them? 11/ 11