0% found this document useful (0 votes)
62 views

Dr. Lê Xuân Đ I: Functions of Several Variables

This document provides an electronic lecture on functions of several variables. It begins with examples of functions with two or more variables from real world applications. It then defines and discusses domains, ranges, and graphs of functions of two variables. It also covers level curves and contour maps. The document continues with examples of quadric surfaces such as ellipsoids, paraboloids, hyperboloids, cylinders and cones. It concludes with applications of quadric surfaces and generating rectangular grids in 2D space using MatLab.

Uploaded by

Duong Tran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views

Dr. Lê Xuân Đ I: Functions of Several Variables

This document provides an electronic lecture on functions of several variables. It begins with examples of functions with two or more variables from real world applications. It then defines and discusses domains, ranges, and graphs of functions of two variables. It also covers level curves and contour maps. The document continues with examples of quadric surfaces such as ellipsoids, paraboloids, hyperboloids, cylinders and cones. It concludes with applications of quadric surfaces and generating rectangular grids in 2D space using MatLab.

Uploaded by

Duong Tran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 35

FUNCTIONS OF SEVERAL VARIABLES

ELECTRONIC VERSION OF LECTURE

Dr. Lê Xuân Đại


HoChiMinh City University of Technology
Faculty of Applied Science, Department of Applied Mathematics
Email: [email protected]

HCMC— 2018.
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 1 / 35
OUTLINE

1 FUNCTIONS OF SEVERAL VARIABLES

2 QUADRIC SURFACES

3 MATL AB

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 2 / 35


Functions of Several Variables Real World

EXAMPLE 1.1
The temperature T at a point on the surface
of the earth at any given time depends on the
longitude x and latitude y of the point. So T
is a function of the 2 variables x, y and we
denote it by T = f (x, y).
EXAMPLE 1.2
The volume V of a circular cylinder depends
on its radius R and its height h according to
the formula V = πR2h. So V is a function of R
and h.
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 3 / 35
Functions of Several Variables Functions of Two Variables

DEFINITION 1.1
A function f of two variables
f : D ⊂ R2 → R
(x, y) 7−→ z = f (x, y)

1
The set D is the domain of f and is
denoted by D(f ).
2
The set of values that f takes on
E = {z, ∃(x, y) ∈ D : z = f (x, y)} is called range
of f and is denoted by E(f ).
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 4 / 35
Functions of Several Variables Functions of Two Variables

Domain and range of function of two


variables

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 5 / 35


Functions of Several Variables Functions of Two Variables

EXAMPLE 1.3
y
Find the domain of function f (x, y) = arcsin ·
x
y
The function is defined if −1 É É 1 and
x
x 6= 0. So the domain
" of f is defined by the
−x É y É x, x > 0
inequalities
x É y É −x, x < 0

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 6 / 35


Functions of Several Variables Functions of Two Variables

EXAMPLE 1.4
Find thepdomain and range of function
f (x, y) = 9 − x2 − y 2
1
The domain of f (x, y) is
n o n o
2 2 2 2
D = (x, y) : 9−x −y Ê 0 = (x, y) : x +y É 9

2
The range of f (x, y) is
n q o
E = z : z = 9 − x2 − y 2 , (x, y) ∈ D =
n o
= z : 0 É z É 3 = [0, 3]
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 7 / 35
Functions of Several Variables Functions of Two Variables

p
Domain of f (x, y) = 9 − x2 − y 2

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 8 / 35


Functions of Several Variables Graphs of functions of two variables

The graph of a function f of two variables is


a surface S with equation z = f (x, y).

The graph of a function of two variables


Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 9 / 35
Functions of Several Variables Graphs of functions of two variables

EXAMPLE 1.5
Sketch the graph of the function
2
−y 2
z = f (x, y) = e−x .

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 10 / 35


Functions of Several Variables Level Curves

DEFINITION 1.2
The level curves of a function z = f (x, y) are
the curves with equation f (x, y) = k, where
k ∈ E(f ) is a constant.

The relation between level curves and


horizontal traces

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 11 / 35


Functions of Several Variables Level Curves

World mean sea-level temperatures in


January in degrees Celsius.

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 12 / 35


Functions of Several Variables Level Curves

EXAMPLE 1.6
Sketch thep level curves of the function
f (x, y) = 9 − x2 − y 2 , for the values k = 0, 1, 2, 3.

The level curves are


q
9 − x2 − y 2 = k ⇒ x2 + y 2 = 9 − k 2 .

This is a family of concentric


p circles with
center (0, 0) and radius 9 − k2 for the values
k = 0, 1, 2, 3.
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 13 / 35
Functions of Several Variables Level Curves

p
HÌNH: Contour map of f (x, y) = 9 − x2 − y 2 , where k = 0, 1, 2, 3.

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 14 / 35


Functions of Several Variables Functions of n variables

DEFINITION 1.3
A function of n variables
f : D ⊂ Rn → R

(x1 , x2 , . . . , xn ) 7−→ f (x1 , x2 , . . . , xn )


or u = f (x1, x2, . . . , xn).
EXAMPLE 1.7
The temperature T at a point on the surface of the
earth depends on the longitude x and latitude y of the
point and on the time t. So we can write T = f (x, y, t).

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 15 / 35


Quadric Surfaces Ellipsoid

ELLIPSOID

x2 y 2 z2
+ + = 1, (a, b, c ∈ R)
a2 b2 c2

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 16 / 35


Quadric Surfaces Elliptic Paraboloid

ELLIPTIC PARABOLOID

x2 y 2
z= 2+ 2
a b

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 17 / 35


Quadric Surfaces Hyperbolic Paraboloid

HYPERBOLIC PARABOLOID

x2 y 2
z= 2− 2
a b

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 18 / 35


Quadric Surfaces Hyperboloid

HYPERBOLOID

x2 y 2 z2
Hyperboloid of one sheet 2 + 2 − 2 = 1
a b c

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 19 / 35


Quadric Surfaces Hyperboloid

HYPERBOLOID

x2 y 2 z2
Hyperboloid of two Sheets 2 + 2 − 2 = −1
a b c

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 20 / 35


Quadric Surfaces Cylinders

CYLINDERS

x2 y 2
Elliptic Cylinder 2 + 2 = 1, z ∈ R
a b

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 21 / 35


Quadric Surfaces Cylinders

CYLINDERS

Parabolic Cylinder y 2 = 2px, z ∈ R

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 22 / 35


Quadric Surfaces Cone

CONE

x2 y 2 z2
+ =
a2 b2 c2

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 23 / 35


Quadric Surfaces Applications of Quadric Surfaces

APPLICATIONS OF QUADRIC SURFACES

Circular Paraboloids are used to collect and


reflect light, sound, and radio and television
signals.
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 24 / 35
Quadric Surfaces Applications of Quadric Surfaces

Cooling towers for nuclear reactors are


usually designed in the shape of
hyperboloids of one sheet for reasons of
structural stability.
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 25 / 35
MatLab Rectangular grid in 2-D space

[X , Y ] = meshgrid(x, y)

replicates the grid vectors x and y to


produce a full grid.
Example. x = [−1 0 1]; y = [−2 − 1 0 1 2];
[X , Y ] = meshgrid(x, y).
−1 0 1 −2 −2 −2
−1 0 1 −1 −1 −1
X = −1 0 1 ,Y = 0 0 0
−1 0 1 1 1 1
−1 0 1 2 2 2
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 26 / 35
MatLab Rectangular grid in 2-D space

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 27 / 35


MatLab Mesh, surf, surfc

mesh(X,Y,Z), surf(X,Y,Z),
surfc(X,Y,Z) (surface with level curves)
Example.
x = linspace(0, 2 ∗ pi, 50); y = linspace(0, pi, 50);
[X , Y ] = meshgrid(x, y);
Z = sin(X ). ∗ cos(Y + pi/2);
mesh(X , Y , Z) (or surf (X , Y , Z) or surfc(X , Y , Z))
xlabel(0 x0 ); ylabel(0 y 0 ); zlabel(0 z0 );
axis([0 2 ∗ pi 0 pi − 1 1])

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 28 / 35


MatLab Mesh, surf, surfc

Sketch graph³ of the surface


π´
z = sin(x) cos y + using mesh
2
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 29 / 35
MatLab Mesh, surf, surfc

Sketch graph ³ ofπthe


´ surface
z = sin(x) cos y + using surf
2
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 30 / 35
MatLab Mesh, surf, surfc

Sketch graph³ ofπthe


´ surface
z = sin(x) cos y + using surfc
2
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 31 / 35
MatLab Sketch level curves using Contour, Contourf

Contour(X,Y,Z) or Contourf(X,Y,Z),
Example.
x = linspace(0, 2 ∗ pi, 30); y = linspace(0, pi, 30);
[X , Y ] = meshgrid(x, y);
Z = sin(X ). ∗ cos(Y + pi/2);
c = contour(X , Y , Z, [−1 : .1 : −0.1 0.1 : .1 : 1]);
clabel(c, [−1 : .2 : 1]);
xlabel(0 x0 ); ylabel(0 y 0 );
title(0 Contour of z = sin(x). ∗ cos(y + pi/2)0 );

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 32 / 35


MatLab Sketch level curves using Contour, Contourf

Sketch level ³curves of the surface


π´
z = sin(x) cos y + using contour
2
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 33 / 35
MatLab Sketch level curves using Contour, Contourf

c=contourf(X,Y,Z,[-1:0.1:-0.1 0.1:0.1:1],’–k’);

Sketch level³curves of the surface


π´
z = sin(x) cos y + using contourf
2
Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 34 / 35
MatLab Sketch level curves using Contour, Contourf

THANK YOU FOR YOUR ATTENTION

Dr. Lê Xuân Đại (HCMUT-OISP) FUNCTIONS OF SEVERAL VARIABLES HCMC— 2018. 35 / 35

You might also like