MATH20411 PDEs and Vector Calculus B

Similar documents
McGill University April 20, Advanced Calculus for Engineers

MATH 423/ Note that the algebraic operations on the right hand side are vector subtraction and scalar multiplication.

UNIVERSITY OF MANITOBA

Multiple Integrals and Vector Calculus (Oxford Physics) Synopsis and Problem Sets; Hilary 2015

ENGI Partial Differentiation Page y f x

Math 23b Practice Final Summer 2011

MATH H53 : Final exam

Example 2.1. Draw the points with polar coordinates: (i) (3, π) (ii) (2, π/4) (iii) (6, 2π/4) We illustrate all on the following graph:

PRACTICE PROBLEMS. Please let me know if you find any mistakes in the text so that i can fix them. 1. Mixed partial derivatives.

Review Sheet for the Final

MATH 32A: MIDTERM 2 REVIEW. sin 2 u du z(t) = sin 2 t + cos 2 2

Print Your Name: Your Section:

Notes on multivariable calculus

SOLUTIONS TO THE FINAL EXAM. December 14, 2010, 9:00am-12:00 (3 hours)

Final Exam Review Exercise Set A, Math 1551, Fall 2017

MATH 19520/51 Class 5

SOLUTIONS TO HOMEWORK ASSIGNMENT #2, Math 253

Multiple Integrals and Vector Calculus: Synopsis

Review for the Final Exam

Name: ID.NO: Fall 97. PLEASE, BE NEAT AND SHOW ALL YOUR WORK; CIRCLE YOUR ANSWER. NO NOTES, BOOKS, CALCULATORS, TAPE PLAYERS, or COMPUTERS.

Coordinate systems and vectors in three spatial dimensions

Exercises for Multivariable Differential Calculus XM521

1.1 Single Variable Calculus versus Multivariable Calculus Rectangular Coordinate Systems... 4

AP Calculus Chapter 3 Testbank (Mr. Surowski)

Lecture Wise Questions from 23 to 45 By Virtualians.pk. Q105. What is the impact of double integration in finding out the area and volume of Regions?

MATH 18.01, FALL PROBLEM SET # 6 SOLUTIONS

18.02 Multivariable Calculus Fall 2007

6. Vector Integral Calculus in Space

Volumes of Solids of Revolution Lecture #6 a

MATH 228: Calculus III (FALL 2016) Sample Problems for FINAL EXAM SOLUTIONS

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

Math 265H: Calculus III Practice Midterm II: Fall 2014

Preliminaries Lectures. Dr. Abdulla Eid. Department of Mathematics MATHS 101: Calculus I

Week 7: Integration: Special Coordinates

14.1. Multiple Integration. Iterated Integrals and Area in the Plane. Iterated Integrals. Iterated Integrals. MAC2313 Calculus III - Chapter 14

Mathematics 1 Lecture Notes Chapter 1 Algebra Review

Staple or bind all pages together. DO NOT dog ear pages as a method to bind.

Review for the First Midterm Exam

Math 350 Solutions for Final Exam Page 1. Problem 1. (10 points) (a) Compute the line integral. F ds C. z dx + y dy + x dz C

Solutions of Math 53 Midterm Exam I

3.4 Conic sections. Such type of curves are called conics, because they arise from different slices through a cone

is any such piece, suppose we choose a in this piece and use σ ( xk, yk, zk) . If B

Ordinary Differential Equations (ODEs)

Topic Learning Outcomes Suggested Teaching Activities Resources On-Line Resources

Geometry and Motion Selected answers to Sections A and C Dwight Barkley 2016

3. On the grid below, sketch and label graphs of the following functions: y = sin x, y = cos x, and y = sin(x π/2). π/2 π 3π/2 2π 5π/2

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.

Geometry and Motion, MA 134 Week 1

Engineering Mechanics Prof. U. S. Dixit Department of Mechanical Engineering Indian Institute of Technology, Guwahati Kinematics

e x3 dx dy. 0 y x 2, 0 x 1.

MATH107 Vectors and Matrices

MATH2321, Calculus III for Science and Engineering, Fall Name (Printed) Print your name, the date, and then sign the exam on the line

Solutions to Math 41 Second Exam November 5, 2013

Math 263 Final. (b) The cross product is. i j k c. =< c 1, 1, 1 >

Mathematics (Course B) Lent Term 2005 Examples Sheet 2

4 Partial Differentiation

Derivatives and Integrals

Vector Calculus, Maths II

Summary: Curvilinear Coordinates

MTH 254 STUDY GUIDE Summary of Topics

JUST THE MATHS UNIT NUMBER INTEGRATION APPLICATIONS 10 (Second moments of an arc) A.J.Hobson

a Write down the coordinates of the point on the curve where t = 2. b Find the value of t at the point on the curve with coordinates ( 5 4, 8).

Plan for Beginning of Year 2: Summer assignment (summative) Cumulative Test Topics 1-4 (IB questions only/no retakes) IA!!

Lecture 13 - Wednesday April 29th

MATH 353 LECTURE NOTES: WEEK 1 FIRST ORDER ODES

Name: Instructor: Lecture time: TA: Section time:

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

1 + f 2 x + f 2 y dy dx, where f(x, y) = 2 + 3x + 4y, is

Figure 21:The polar and Cartesian coordinate systems.

APPM 2350 Final Exam points Monday December 17, 7:30am 10am, 2018


ES 111 Mathematical Methods in the Earth Sciences Lecture Outline 3 - Thurs 5th Oct 2017 Vectors and 3D geometry

Tangent Planes, Linear Approximations and Differentiability

Mathematics Revision Questions for the University of Bristol School of Physics

Taylor Series and stationary points

Note: Each problem is worth 14 points except numbers 5 and 6 which are 15 points. = 3 2

The University of British Columbia Final Examination - December 17, 2015 Mathematics 200 All Sections

Multiple Choice. Circle the best answer. No work needed. No partial credit available. is continuous.

Week 4: Differentiation for Functions of Several Variables

3.1 Day 1: The Derivative of a Function

ENGI Partial Differentiation Page y f x

An Introduction to Partial Differential Equations

1 The Derivative and Differrentiability

7.1 Indefinite Integrals Calculus

Course Notes Math 275 Boise State University. Shari Ultman

ENGI 9420 Lecture Notes 8 - PDEs Page 8.01

MULTIVARIABLE INTEGRATION

How to Use Calculus Like a Physicist

Implicit Differentiation and Related Rates

Project 1: Riemann Sums

MTH 234 Exam 2 November 21st, Without fully opening the exam, check that you have pages 1 through 12.

Review problems for the final exam Calculus III Fall 2003

MLC Practice Final Exam

Dr. Allen Back. Nov. 5, 2014

Math 273 (51) - Final

MA 441 Advanced Engineering Mathematics I Assignments - Spring 2014

Lecture Notes for MATH6106. March 25, 2010

Problem Solving 1: The Mathematics of 8.02 Part I. Coordinate Systems

THE WAVE EQUATION. F = T (x, t) j + T (x + x, t) j = T (sin(θ(x, t)) + sin(θ(x + x, t)))

MATH 6B Spring 2017 Vector Calculus II Study Guide Final Exam Chapters 8, 9, and Sections 11.1, 11.2, 11.7, 12.2, 12.3.

Transcription:

MATH2411 PDEs and Vector Calculus B Dr Stefan Güttel Acknowledgement The lecture notes and other course materials are based on notes provided by Dr Catherine Powell.

SECTION 1: Introctory Material MATH2411 To prepare for the more challenging topics that we will meet later in the course, we need to start off with some introctory material. In this section we will introce two new co-ordinate systems (cylindrical and spherical co-ordinates), and briefly review the meaning of partial differentiation and the chain rule for partial derivatives. By the end of this section, you should be able to convert Cartesian coordinates into cylindrical and spherical co-ordinates and convert partial differential equations presented in Cartesian co-ordinates to partial differential equations in alternative co-ordinate systems. For further reading and examples, take a look at the book Calculus by James Stewart (a recommended text for your first year calculus courses). It is recommended that you also review any notes you have from first year on polar co-ordinates and partial differentiation. 1.1. Co-ordinate Systems In three space dimensions, a point P may be represented in the Cartesian system by the co-ordinates (x, y, z) or as a vector of the form xi + yj + zk, where i = 1, j = 1, k = are the standard basis vectors in R 3. Cartesian co-ordinates are convenient to describe objects such as rectangles and bricks, or objects composed of different sized bricks. For example, we understand that the set of points {(x, y, z) x 1, y 1, z 1} describes the unit cube (a cube with sides of length one, with vertices at (,, ), (, 1, ), etc.). To describe objects and surfaces with curvature, such as circles, spheres, cylinders, cones etc., it is often simpler to work in alternative co-ordinate systems. 1 Revision: polar co-ordinates You already know that polar co-ordinates (r, θ) are useful for describing flat, circular geometries in two space dimensions. The Cartesian co-ordinates (x, y) of a point P tell us the distances to travel from the origin along the x and y axes to locate P. The co-ordinates (r, θ) give us the length of the line that connects P to the origin, and the angle between that line and the positive x-axis (measured in an anti-clockwise direction from the positive x-axis). Note that r and θ < 2π. Using basic trigonometry (see Figure 1), if we know the polar co-ordinates (r, θ), then the Cartesian co-ordinates are given by x = r cos θ, y = r sin θ. Similarly, if we know the Cartesian co-ordinates, then r = x 2 + y 2, θ = tan 1 (y/x). In three dimensions, there are two other useful co-ordinate systems: cylindrical and spherical coordinates. 2

y r θ x Figure 1: In R 2, a point can be represented by Cartesian co-ordinates (x, y) or polar co-ordinates (r, θ). Cylindrical co-ordinates These are a natural extension of polar co-ordinates to three dimensions. Any point P in R 3 can be represented by (r, θ, z) where 1 (r, θ) are the standard polar co-ordinates of the point that is the projection of P onto the x-y plane, and z is the height (above or below the x-y plane) of P. Viewed another way, this says that any point P in three dimensions can be thought of as lying on the surface of a cylinder of some radius r, of infinite height, with the z-axis running through the centre. The co-ordinates θ and z tell us where on the surface of the cylinder the point is located. Figure 2: In R 3, a point can be represented by cylindrical co-ordinates (r, θ, z) or spherical co-ordinates (ρ, θ, φ). 1 Note that some textbooks use different letters in place of r and θ for cylindrical co-ordinates. We will use the notation that is consistent with what we already know for polar co-ordinates. 3

With the aid of simple trigonometry (see Figure 2), if we know the cylindrical co-ordinates of a point P then the Cartesian co-ordinates are given by: x = r cos θ, y = r sin θ, z = z. Similarly, if we know the Cartesian co-ordinates, the cylindrical co-ordinates are given by r = x 2 + y 2, θ = tan 1 (y/x), z = z. The co-ordinate z is the same in both systems. As with polar co-ordinates, we must be careful when applying tan 1. Recall that tan is a periodic function, so there are infinitely many values θ such that tan(θ) is equal to a given value of y/x. The value of θ we want must lie in the range [, 2π). Example. Find the cylindrical co-ordinates of the point (x, y, z) = (3, 3, 1). Answer: Clearly, z = 1 and r = 9 + 9 = 18. Direct calculation (using a calculator) gives: This is outside the desired range. In fact, we have θ = tan 1 ( 3/3) = tan 1 ( 1) = π/4. tan 1 ( 1) = π/4 + nπ, for any n N. Here, θ = π/4 + 2π = 7π/4 (or 315 degrees). Sketch a diagram to convince yourself that this is the correct value! There are also plenty more examples to try on Exercise Sheet 1. Spherical co-ordinates These co-ordinates are useful for geometries with radial symmetry (e.g., spheres). Any point P can be thought of as lying on the surface of a sphere, of some radius ρ, centred at the origin (see Figure 2). If (x, y, z) are the Cartesian co-ordinates of P then the distance from P to the origin is ρ = x 2 + y 2 + z 2. This is the radius of the sphere upon whose surface P lies. We need to supply two other co-ordinates (angles) to uniquely specify the location of P. The spherical co-ordinates are (ρ, θ, φ), where ρ is the distance from P to the origin. θ is the same angle used in the polar and cylindrical systems. That is, if we project P onto the (x, y) plane, θ is the angle measured anti-clockwise from the positive x-axis to the line joining the projected point to the origin. φ is the angle between the positive z-axis and the line connecting P to the origin. Note that ρ > (if ρ = then we are at the origin), θ < 2π, and φ π. You might like to think about the angles φ and θ as longitude and latitude. With some basic trigonometry, we find r = ρ sin φ and so x = ρ sin φ cos θ, y = ρ sin φ sin θ. 4

In addition z = ρ cos φ. Alternatively, if we know the Cartesian co-ordinates (x, y, z) then, ρ = x 2 + y 2 + z 2, θ = tan 1 (y/x). Clearly tan φ = r/z and so the angle φ can be calculated by ( ) x φ = tan 1 2 + y 2. z Example. Find the spherical co-ordinates of the point (x, y, z) = (3, 3, 1). Answer: We have ρ = 9 + 9 + 1 = 19 and we already know θ = 7π/4 (or 315 degrees, from the previous example). Finally, φ = tan 1 ( 18/ 1 ) = 1.3393 + nπ. The correct value is achieved with n = 1, giving φ = 1.823 radians (to 4 d.p.) or φ = 13.26 degrees (to two d.p). Now try the other examples on Exercise Sheet 1! You should now be able to describe standard surfaces like planes, cones, spheres etc in Cartesian, cylindrical and/or spherical co-ordinates. Sometimes, working in a particular co-ordinate system vastly simplifies the equation for the surface. Example. What surface is represented by the equation ρ = 2? How would the same surface be represented in Cartesian co-ordinates? Answer: ρ = 2 is the equation for a sphere of radius 2, centred at the origin. More precisely, ρ = 2 means the set of points (ρ, θ, φ) for which ρ = 2 is fixed and θ and φ take any of their permitted values. In Cartesian co-ordinates, the same surface is represented by the set of points (x, y, z) such that x 2 + y 2 + z 2 = 2. As you can see, the equation is far simpler in spherical co-ordinates. 1.2. Partial Differentiation A differential equation is an equation containing an unknown function, say u, and some of its derivatives. If u is a function of a single variable x, then the derivatives are dx, d 2 u dx 2, d 3 u dx 3,.... A differential equation associated with a function of single variable is called an ordinary differential equation or ODE. For example 2 d 2 u + λu =. dx2 2 You studied how to solve second-order ODEs with constant coefficients in the first year and it will be very important in this course that you remember how to do this. If you have forgotten, please revise it now. 5

The first derivative dx represents the rate of change of u with respect to x. A more formal definition is: the slope of the tangent line to the curve y = u(x) at a given point x. For example, consider the simple function u(x) = x 2. We all know the derivative is 2x. Using the formal definition, dx = lim u(x + h) u(x) (x + h) 2 x 2 = lim h h h h = lim h 2x + h = 2x. If u is a function of more than one variable, e.g., u(x, y), then there are other derivatives to consider. We can calculate the rate of change of u with respect to either x or y. The first partial derivatives are denoted,, or u x, u y, for short. There are three second partial derivatives, including 2 u = ( ), which is usually abbreviated to u xy, etc. Partial derivatives are rates of change with respect to one variable, whilst the other variables are held fixed. Example. Consider the function u(x, y) = ( x 2 + 3y 2) exp ( x 2 y 2). To find the partial derivative u x, recall that we treat y like a constant and differentiate as if u were only a function of x as follows = ( x 2 + 3y 2) ( 2x) exp ( x 2 y 2) + exp ( x 2 y 2) (2x) = ( 2x 2x 3 6xy 2) exp ( x 2 y 2) = 2x ( 1 x 2 3y 2) exp ( x 2 y 2). This is the rate of change of u with respect to x if y is kept fixed. For example, if y =, then Similarly, y= = 2x ( 1 x 2) exp ( x 2). is found by treating x as a constant, and differentiating with respect to y. Note that if u = u(x, y) is a function of two variables then fixing a value for y amounts to taking a cross-section through the surface z = u(x, y). The partial derivative u x actually gives the slope of the tangent to the curve that is that cross-section. We can plot the function u(x, y) from the above example easily in MATLAB, by fixing values for x and y and then interpreting z = u(x, y) as the output of the function. Try the following MATLAB commands. >> x=linspace(-4,4,64); y=linspace(-4,4,64); [xx,yy]=meshgrid(x,y); >> zz=(xx.^2+3.*yy.^2).*exp(-xx.^2-yy.^2); >> surf(xx,yy,zz); axis square; shg If we set y = then u(x, ) = x 2 exp( x 2 ) is a cross-section through the surface z = u(x, y) (this is shown in the right plot in Figure 3). In the example above, we found y=, which is the slope of the tangent line to this cross-section. 6

.4 1.8.3 z=u(x,y).6.4.2.2 4 2 y 2 4 4 2 x 2 4.1 4 2 2 4 x Figure 3: Left: MATLAB surf plot of the function u(x, y) = ( x 2 + 3y 2) exp ( x 2 y 2). Right: crosssection through z = u(x, y) at y =. Formally, the first partial derivatives of a function u of two variables x and y are given by = lim h u(x + h, y) u(x, y), h = lim h u(x, y + h) u(x, y). h Example. Use the above definition to find the first partial derivatives of the function u(x, y) = x 2 +y 2. Answer: Only the calculation for u x is shown here. u y is left as an exercise. We have = lim (x + h) 2 + y 2 ( x 2 + y 2) 2xh + h 2 = lim h h h h 1.3. The Chain Rule for Partial Derivatives = 2x. For functions of a single variable, we have the well-known chain rule. Suppose u is a function of t and t is a function of x. Then u is a function of x (because it depends on t) and dx = dt dt dx. Example. Suppose u = sin 2 (t) and x = sin t. Use the chain rule to find dx. Answer: Differentiating u with respect to t and x with respect to t (which is natural since u is given as a function of t and x is given as a function of t) gives Now, since 3 dt = 2 sin t cos t, dx dt dx = ( ) dx 1 dt, the chain rule gives 3 for functions of one variable only! dt = 2 sin t = 2x. dx = cos t. 7

(Of course, we could also have made the substitution x = sin t immediately to give u = x 2 and then differentiated with respect to x straightforwardly.) A similar rule holds for functions of more than one variable. Here, we ll focus on functions of two variables. Suppose u = u(s, t) and s = s(x, y), and t = (x, y). Then, u is a function of x and y through its dependence on s and t. The chain rule gives: = t t + s s, = t t + s s. Notice that there are two terms in each expression. This is because the function u depends on x and y in two distinct ways: via s and via t. Example. Suppose u = t sin s and s = x 2 + y 2, t = 2x + 4y. Use the chain rule to find Answer: Applying the chain rule gives = 2 sin s + 2xt cos s = 2 sin ( x 2 + y 2) + 2x (2x + 4y) cos ( x 2 + y 2), = 4 sin s + 2yt cos s = 4 sin ( x 2 + y 2) + 2y (2x + 4y) cos ( x 2 + y 2). and. Note that for functions of more than one variable, it is very important to realise that in general t ( t 1! ) For instance, suppose x and t are both functions of two variables, say x depends on t and s, and t depends on x and y. Then, t is the rate of change of x with respect to t when s is fixed but t is the rate of change of t with respect to x when y is fixed. We can use the chain rule to convert derivatives in one co-ordinate system to partial derivatives in another co-ordinate system. Example. Suppose that a calculation or a given equation involves the partial derivatives and where x and y are understood to be Cartesian co-ordinates. Now suppose that it is preferable to think of u as a function of polar co-ordinates. Convert the derivatives and into derivatives with respect to r and θ. Answer: We know that r and θ are both functions of x and y. That is, r = x 2 + y 2, θ = tan 1 (y/x). When viewed as a function of polar co-ordinates, u depends on x via its dependence on r and θ. Hence, the chain rule gives: Similarly, = r r + θ θ. = r r + θ θ. Differentiating the expressions for r and θ with respect to x and y gives (exercise) = cos θ r sin θ r θ, 8

and similarly, = sin θ r + cos θ r θ. Laplace s equation is a classical differential equation that we will study later in the course. [See the handout on classical PDEs.] In two dimensions, this is written as 2 u 2 + 2 u 2 =. To convert this equation into say, polar co-ordinates, we need to convert the second derivatives with respect to x and y into derivatives with respect to r and θ. Given the above expressions for the first derivatives, you can now attempt this (see the last question on Exercise Sheet 1). 1.4. Solutions to PDEs Solutions to ODEs usually have arbitrary constants in them. For example, consider the first-order ODE, dx = λx. To solve this, we can integrate both sides with respect to x to obtain u(x) = λx dx = λx2 2 + C, where C is any constant (note that this is an indefinite integral). In addition, consider dv dx = λv. The solution is v(x) = Ce λx, where C is any constant. In both cases, infinitely many solutions exist. To obtain a unique solution, extra conditions are needed. For example, if we know that u() = 1 in the first example, then λ() + C = 1 C = 1, and so the unique solution is u(x) = λx2 2 + 1. Solutions to partial differential equations (PDEs) contain arbitrary functions in place of arbitrary constants. For example, consider the simple PDE = where we assume that u is a function of x and y. Integrating both sides with respect to x gives u(x, y) = dx = C(y), where C(y) is an arbitrary function of y (this acts like a constant when differentiating with respect to x). Check - any function of y (only) that you can think of satisfies the above partial differential 9

equation. To obtain a unique solution, we need extra conditions such as u(x, ) = f(x) or u(x, 1) = g(x) where f(x), g(x) are specified functions. Example. Find the unique solution u(x, t) to the PDE = t + 1 such that u(, t) = f(t). Answer: Integrating with respect to x gives u(x, t) = xt + x + C(t), where C(t) is an arbitrary function of t. Since u(, t) = f(t), we know C(t) = f(t) (a specific function) so the unique solution is u(x, t) = x(t + 1) + f(t). 1