Download as pdf or txt
Download as pdf or txt
You are on page 1of 100

Function of several variables

—————

Phan Thi Khanh Van


E-mail: khanhvanphan@hcmut.edu.vn

June 14, 2018

(Phan Thi Khanh Van) Function of several variables June 14, 2018 1 / 21
Table of contents

1 Function of several variables

2 Domain, Range

3 Graphs, level curves

(Phan Thi Khanh Van) Function of several variables June 14, 2018 2 / 21
Textbook: Calculus, James Stewart
Section: 14.1

(Phan Thi Khanh Van) Function of several variables June 14, 2018 3 / 21
Function of several variables

4 ways to represent a function

(Phan Thi Khanh Van) Function of several variables June 14, 2018 4 / 21
Function of several variables

4 ways to represent a function


1 verbally

(Phan Thi Khanh Van) Function of several variables June 14, 2018 4 / 21
Function of several variables

4 ways to represent a function


1 verbally (by a description in words)

(Phan Thi Khanh Van) Function of several variables June 14, 2018 4 / 21
Function of several variables

4 ways to represent a function


1 verbally (by a description in words)
2 numerically

(Phan Thi Khanh Van) Function of several variables June 14, 2018 4 / 21
Function of several variables

4 ways to represent a function


1 verbally (by a description in words)
2 numerically (by a table of values)

(Phan Thi Khanh Van) Function of several variables June 14, 2018 4 / 21
Function of several variables

4 ways to represent a function


1 verbally (by a description in words)
2 numerically (by a table of values)
3 algebraically

(Phan Thi Khanh Van) Function of several variables June 14, 2018 4 / 21
Function of several variables

4 ways to represent a function


1 verbally (by a description in words)
2 numerically (by a table of values)
3 algebraically (by an explicit formula)

(Phan Thi Khanh Van) Function of several variables June 14, 2018 4 / 21
Function of several variables

4 ways to represent a function


1 verbally (by a description in words)
2 numerically (by a table of values)
3 algebraically (by an explicit formula)
4 visually

(Phan Thi Khanh Van) Function of several variables June 14, 2018 4 / 21
Function of several variables

4 ways to represent a function


1 verbally (by a description in words)
2 numerically (by a table of values)
3 algebraically (by an explicit formula)
4 visually (by a graph or level curves)

(Phan Thi Khanh Van) Function of several variables June 14, 2018 4 / 21
Function of several variables

Example 1
The volume of a cone, with height h and radius of the
base r , is

(Phan Thi Khanh Van) Function of several variables June 14, 2018 5 / 21
Function of several variables

Example 1
The volume of a cone, with height h and radius of the
base r , is
π
V = r 2h
3

(Phan Thi Khanh Van) Function of several variables June 14, 2018 5 / 21
Function of several variables

Example 1
The volume of a cone, with height h and radius of the
base r , is
π
V = r 2h
3
- a function of 2 variables.

(Phan Thi Khanh Van) Function of several variables June 14, 2018 5 / 21
Function of several variables

Example 1
The volume of a cone, with height h and radius of the
base r , is
π
V = r 2h
3
- a function of 2 variables.
Example 2
The temperature T at a point on the surface of the earth
with the longitude x and latitude y at a time t:

(Phan Thi Khanh Van) Function of several variables June 14, 2018 5 / 21
Function of several variables

Example 1
The volume of a cone, with height h and radius of the
base r , is
π
V = r 2h
3
- a function of 2 variables.
Example 2
The temperature T at a point on the surface of the earth
with the longitude x and latitude y at a time t:

T = T (x, y , t)

(Phan Thi Khanh Van) Function of several variables June 14, 2018 5 / 21
Function of several variables

Example 1
The volume of a cone, with height h and radius of the
base r , is
π
V = r 2h
3
- a function of 2 variables.
Example 2
The temperature T at a point on the surface of the earth
with the longitude x and latitude y at a time t:

T = T (x, y , t)

- a function of 3 variables.
(Phan Thi Khanh Van) Function of several variables June 14, 2018 5 / 21
Function of several variables

Example 3: Wind-chill index


In regions with severe winter weather, the wind-chill index
is used to describe the apparent severity of the cold. This
index W is a subjective temperature that depends on the
actual temperature T and the wind speed v .

(Phan Thi Khanh Van) Function of several variables June 14, 2018 6 / 21
Function of several variables

Example 3: Wind-chill index


In regions with severe winter weather, the wind-chill index
is used to describe the apparent severity of the cold. This
index W is a subjective temperature that depends on the
actual temperature T and the wind speed v .

W = W (T , v )

(Phan Thi Khanh Van) Function of several variables June 14, 2018 6 / 21
Function of several variables

Example 3: Wind-chill index


In regions with severe winter weather, the wind-chill index
is used to describe the apparent severity of the cold. This
index W is a subjective temperature that depends on the
actual temperature T and the wind speed v .

W = W (T , v )

- a function of 2 variables.

(Phan Thi Khanh Van) Function of several variables June 14, 2018 6 / 21
Function of several variables

The table records values of W (by the National Weather


Service of the US & the Meteorological Service of Canada)

(Phan Thi Khanh Van) Function of several variables June 14, 2018 7 / 21
Function of several variables

The table records values of W (by the National Weather


Service of the US & the Meteorological Service of Canada)

W (−5o C , 30km/h)

(Phan Thi Khanh Van) Function of several variables June 14, 2018 7 / 21
Function of several variables

The table records values of W (by the National Weather


Service of the US & the Meteorological Service of Canada)

W (−5o C , 30km/h)= −13o C

(Phan Thi Khanh Van) Function of several variables June 14, 2018 7 / 21
Function of several variables

The table records values of W (by the National Weather


Service of the US & the Meteorological Service of Canada)

W (−5o C , 30km/h)= −13o C (with no wind)

(Phan Thi Khanh Van) Function of several variables June 14, 2018 7 / 21
Function of several variables

The table records values of W (by the National Weather


Service of the US & the Meteorological Service of Canada)

W (−5o C , 30km/h)= −13o C (with no wind)


= W (−10o C , 5km/h)
(Phan Thi Khanh Van) Function of several variables June 14, 2018 7 / 21
Function of several variables

Example 4: Cobb-Douglas model


In 1928 Charles Cobb and Paul Douglas published a study
in which they modeled the growth of the American
economy during the period 1899 - 1922.

(Phan Thi Khanh Van) Function of several variables June 14, 2018 8 / 21
Function of several variables

Example 4: Cobb-Douglas model


In 1928 Charles Cobb and Paul Douglas published a study
in which they modeled the growth of the American
economy during the period 1899 - 1922.
The function they used to model production was of the
form
P(L, K ) = bLα K 1−α

(Phan Thi Khanh Van) Function of several variables June 14, 2018 8 / 21
Function of several variables

Example 4: Cobb-Douglas model


In 1928 Charles Cobb and Paul Douglas published a study
in which they modeled the growth of the American
economy during the period 1899 - 1922.
The function they used to model production was of the
form
P(L, K ) = bLα K 1−α
P - the total production (the monetary value of all
goods produced in a year)

(Phan Thi Khanh Van) Function of several variables June 14, 2018 8 / 21
Function of several variables

Example 4: Cobb-Douglas model


In 1928 Charles Cobb and Paul Douglas published a study
in which they modeled the growth of the American
economy during the period 1899 - 1922.
The function they used to model production was of the
form
P(L, K ) = bLα K 1−α
P - the total production (the monetary value of all
goods produced in a year)
L - the amount of labor (the total number of
person-hours worked in a year)

(Phan Thi Khanh Van) Function of several variables June 14, 2018 8 / 21
Function of several variables

Example 4: Cobb-Douglas model


In 1928 Charles Cobb and Paul Douglas published a study
in which they modeled the growth of the American
economy during the period 1899 - 1922.
The function they used to model production was of the
form
P(L, K ) = bLα K 1−α
P - the total production (the monetary value of all
goods produced in a year)
L - the amount of labor (the total number of
person-hours worked in a year)
K - the amount of capital invested (the monetary
worth of all machinery, equipment, and buildings).
(Phan Thi Khanh Van) Function of several variables June 14, 2018 8 / 21
Function of several variables

(Phan Thi Khanh Van) Function of several variables June 14, 2018 9 / 21
Function of several variables

They took the year 1899 as


a baseline and P, L, and K
for 1899 were each assigned
the value 100. The values
for other years were
expressed as percentages of
the 1899 figures.

(Phan Thi Khanh Van) Function of several variables June 14, 2018 9 / 21
Function of several variables

They took the year 1899 as


a baseline and P, L, and K
for 1899 were each assigned
the value 100. The values
for other years were
expressed as percentages of
the 1899 figures. Using the
method of least squares to
fit the data to the function
P(L, K ) = 1.01L0.75 K 0.25

(Phan Thi Khanh Van) Function of several variables June 14, 2018 9 / 21
Function of several variables

They took the year 1899 as


a baseline and P, L, and K
for 1899 were each assigned
the value 100. The values
for other years were
expressed as percentages of
the 1899 figures. Using the
method of least squares to
fit the data to the function
P(L, K ) = 1.01L0.75 K 0.25
In 1909:
P(143, 198) ' 156.67

(Phan Thi Khanh Van) Function of several variables June 14, 2018 9 / 21
Function of several variables

They took the year 1899 as


a baseline and P, L, and K
for 1899 were each assigned
the value 100. The values
for other years were
expressed as percentages of
the 1899 figures. Using the
method of least squares to
fit the data to the function
P(L, K ) = 1.01L0.75 K 0.25
In 1909:
P(143, 198) ' 156.67 (the
exact data: 155).
(Phan Thi Khanh Van) Function of several variables June 14, 2018 9 / 21
Domain, Range

Domain, Range
f :D→R ⊂R
(x, y ) → z = f (x, y )

(Phan Thi Khanh Van) Function of several variables June 14, 2018 10 / 21
Domain, Range

Domain, Range
f :D→R ⊂R
(x, y ) → z = f (x, y )

(Phan Thi Khanh Van) Function of several variables June 14, 2018 10 / 21
Domain, Range

Domain, Range
f :D→R ⊂R
(x, y ) → z = f (x, y )

D is domain.

(Phan Thi Khanh Van) Function of several variables June 14, 2018 10 / 21
Domain, Range

Domain, Range
f :D→R ⊂R
(x, y ) → z = f (x, y )

D is domain.
R is range.

(Phan Thi Khanh Van) Function of several variables June 14, 2018 10 / 21
Domain, Range

Example 5

4
x+y +1
Find the domain of the function f (x, y ) = x−1

(Phan Thi Khanh Van) Function of several variables June 14, 2018 11 / 21
Domain, Range

Example 5

4
x+y +1
Find the domain of the function f (x, y ) = x−1

(Phan Thi Khanh Van) Function of several variables June 14, 2018 11 / 21
Domain, Range

Example 5

4
x+y +1
Find the domain of the function f (x, y ) = x−1

f is defined

(Phan Thi Khanh Van) Function of several variables June 14, 2018 11 / 21
Domain, Range

Example 5

4
x+y +1
Find the domain of the function f (x, y ) = x−1

f is(defined
x +y +1≥0

x 6= 1

(Phan Thi Khanh Van) Function of several variables June 14, 2018 11 / 21
Domain, Range

Example 5

4
x+y +1
Find the domain of the function f (x, y ) = x−1

f is(defined
x +y +1≥0

x 6= 1
The domain of f is the
upper half plane w.r.t the
line x + y + 1 = 0,
excluding the line x = 1.

(Phan Thi Khanh Van) Function of several variables June 14, 2018 11 / 21
Domain, Range

Example 6
Find the domain of the function
f (x, y ) = y sin x + ln(y 2 − x)

(Phan Thi Khanh Van) Function of several variables June 14, 2018 12 / 21
Domain, Range

Example 6
Find the domain of the function
f (x, y ) = y sin x + ln(y 2 − x)

(Phan Thi Khanh Van) Function of several variables June 14, 2018 12 / 21
Domain, Range

Example 6
Find the domain of the function
f (x, y ) = y sin x + ln(y 2 − x)

f is defined

(Phan Thi Khanh Van) Function of several variables June 14, 2018 12 / 21
Domain, Range

Example 6
Find the domain of the function
f (x, y ) = y sin x + ln(y 2 − x)

f is defined ⇔ y 2 > x

(Phan Thi Khanh Van) Function of several variables June 14, 2018 12 / 21
Domain, Range

Example 6
Find the domain of the function
f (x, y ) = y sin x + ln(y 2 − x)

f is defined ⇔ y 2 > x
The domain of f is the set
of points to the left of the
parabola x − y 2 .

(Phan Thi Khanh Van) Function of several variables June 14, 2018 12 / 21
Domain, Range

Example 7
Find the domain,
p range of the function
f (x, y ) = 9 − x 2 − y 2

(Phan Thi Khanh Van) Function of several variables June 14, 2018 13 / 21
Domain, Range

Example 7
Find the domain,
p range of the function
f (x, y ) = 9 − x 2 − y 2

(Phan Thi Khanh Van) Function of several variables June 14, 2018 13 / 21
Domain, Range

Example 7
Find the domain,
p range of the function
f (x, y ) = 9 − x 2 − y 2

f is defined

(Phan Thi Khanh Van) Function of several variables June 14, 2018 13 / 21
Domain, Range

Example 7
Find the domain,
p range of the function
f (x, y ) = 9 − x 2 − y 2

f is defined
⇔ 9 − x2 − y2 ≥ 0

(Phan Thi Khanh Van) Function of several variables June 14, 2018 13 / 21
Domain, Range

Example 7
Find the domain,
p range of the function
f (x, y ) = 9 − x 2 − y 2

f is defined
⇔ 9 − x2 − y2 ≥ 0
The domain of f is the disk
whose center is at O and
radius is 3.

(Phan Thi Khanh Van) Function of several variables June 14, 2018 13 / 21
Domain, Range

Example 7
Find the domain,
p range of the function
f (x, y ) = 9 − x 2 − y 2

f is defined
⇔ 9 − x2 − y2 ≥ 0
The domain of f is the disk
whose center is at O and
radius is 3.
We have
p
0 ≤ 9 − x 2 − y 2 ≤ 3.

(Phan Thi Khanh Van) Function of several variables June 14, 2018 13 / 21
Domain, Range

Example 7
Find the domain,
p range of the function
f (x, y ) = 9 − x 2 − y 2

f is defined
⇔ 9 − x2 − y2 ≥ 0
The domain of f is the disk
whose center is at O and
radius is 3.
We have
p
0 ≤ 9 − x 2 − y 2 ≤ 3. So
the range of f is [0, 3].

(Phan Thi Khanh Van) Function of several variables June 14, 2018 13 / 21
Graphs, level curves

Graph

(Phan Thi Khanh Van) Function of several variables June 14, 2018 14 / 21
Graphs, level curves

Graph

(Phan Thi Khanh Van) Function of several variables June 14, 2018 14 / 21
Graphs, level curves

Graph

f :D→R ⊂R

(Phan Thi Khanh Van) Function of several variables June 14, 2018 14 / 21
Graphs, level curves

Graph

f :D→R ⊂R
Graph of f is the set:
S = {(x, y , z) ∈ R3 |z = f (x, y ), (x, y ) ∈ D}.
(Phan Thi Khanh Van) Function of several variables June 14, 2018 14 / 21
Graphs, level curves

Example 8
Sketch the graph of the function
z = f (x, y ) = 6 − 3x − 2y

(Phan Thi Khanh Van) Function of several variables June 14, 2018 15 / 21
Graphs, level curves

Example 8
Sketch the graph of the function
z = f (x, y ) = 6 − 3x − 2y

(Phan Thi Khanh Van) Function of several variables June 14, 2018 15 / 21
Graphs, level curves

Example 8
Sketch the graph of the function
z = f (x, y ) = 6 − 3x − 2y

3x + 2y + z = 6: the graph
of f is a plane.

(Phan Thi Khanh Van) Function of several variables June 14, 2018 15 / 21
Graphs, level curves

Example 8
Sketch the graph of the function
z = f (x, y ) = 6 − 3x − 2y

3x + 2y + z = 6: the graph
of f is a plane.
x intercept:

(Phan Thi Khanh Van) Function of several variables June 14, 2018 15 / 21
Graphs, level curves

Example 8
Sketch the graph of the function
z = f (x, y ) = 6 − 3x − 2y

3x + 2y + z = 6: the graph
of f is a plane.
x intercept:
y =z =0

(Phan Thi Khanh Van) Function of several variables June 14, 2018 15 / 21
Graphs, level curves

Example 8
Sketch the graph of the function
z = f (x, y ) = 6 − 3x − 2y

3x + 2y + z = 6: the graph
of f is a plane.
x intercept:
y = z = 0⇒ x = 2

(Phan Thi Khanh Van) Function of several variables June 14, 2018 15 / 21
Graphs, level curves

Example 8
Sketch the graph of the function
z = f (x, y ) = 6 − 3x − 2y

3x + 2y + z = 6: the graph
of f is a plane.
x intercept:
y = z = 0⇒ x = 2
y intercept:

(Phan Thi Khanh Van) Function of several variables June 14, 2018 15 / 21
Graphs, level curves

Example 8
Sketch the graph of the function
z = f (x, y ) = 6 − 3x − 2y

3x + 2y + z = 6: the graph
of f is a plane.
x intercept:
y = z = 0⇒ x = 2
y intercept:
x =z =0

(Phan Thi Khanh Van) Function of several variables June 14, 2018 15 / 21
Graphs, level curves

Example 8
Sketch the graph of the function
z = f (x, y ) = 6 − 3x − 2y

3x + 2y + z = 6: the graph
of f is a plane.
x intercept:
y = z = 0⇒ x = 2
y intercept:
x = z = 0⇒ y = 3

(Phan Thi Khanh Van) Function of several variables June 14, 2018 15 / 21
Graphs, level curves

Example 8
Sketch the graph of the function
z = f (x, y ) = 6 − 3x − 2y

3x + 2y + z = 6: the graph
of f is a plane.
x intercept:
y = z = 0⇒ x = 2
y intercept:
x = z = 0⇒ y = 3
z intercept:

(Phan Thi Khanh Van) Function of several variables June 14, 2018 15 / 21
Graphs, level curves

Example 8
Sketch the graph of the function
z = f (x, y ) = 6 − 3x − 2y

3x + 2y + z = 6: the graph
of f is a plane.
x intercept:
y = z = 0⇒ x = 2
y intercept:
x = z = 0⇒ y = 3
z intercept:
x =y =0

(Phan Thi Khanh Van) Function of several variables June 14, 2018 15 / 21
Graphs, level curves

Example 8
Sketch the graph of the function
z = f (x, y ) = 6 − 3x − 2y

3x + 2y + z = 6: the graph
of f is a plane.
x intercept:
y = z = 0⇒ x = 2
y intercept:
x = z = 0⇒ y = 3
z intercept:
x = y = 0⇒ z = 6

(Phan Thi Khanh Van) Function of several variables June 14, 2018 15 / 21
Graphs, level curves

Example 9
Sketch the graph
p of the function
z = f (x, y ) = 9 − x 2 − y 2

(Phan Thi Khanh Van) Function of several variables June 14, 2018 16 / 21
Graphs, level curves

Example 9
Sketch the graph
p of the function
z = f (x, y ) = 9 − x 2 − y 2

(Phan Thi Khanh Van) Function of several variables June 14, 2018 16 / 21
Graphs, level curves

Example 9
Sketch the graph
p of the function
z = f (x, y ) = 9 − x 2 − y 2

z ≥ 0, x 2 + y 2 + z 2 = 9:
the graph of f is the upper
hemisphere with center
(0, 0), radius 3.

(Phan Thi Khanh Van) Function of several variables June 14, 2018 16 / 21
Graphs, level curves

Example 10
Using Matlab to sketch the graphs
1 z = f (x, y ) = 1 + x 2 + 2y 2 - elliptic paraboloid

(Phan Thi Khanh Van) Function of several variables June 14, 2018 17 / 21
Graphs, level curves

Example 10
Using Matlab to sketch the graphs
1 z = f (x, y ) = 1 + x 2 + 2y 2 - elliptic paraboloid
2 z = f (x, y ) = x 2 − y 2 - hyperbolic paraboloid (saddle)

(Phan Thi Khanh Van) Function of several variables June 14, 2018 17 / 21
Graphs, level curves

Example 10
Using Matlab to sketch the graphs
1 z = f (x, y ) = 1 + x 2 + 2y 2 - elliptic paraboloid
2 z = f (x, y ) = x 2 − y 2 - hyperbolic paraboloid (saddle)
3 x 2 + y 2 = 1 - circular (elliptic) cylinder

(Phan Thi Khanh Van) Function of several variables June 14, 2018 17 / 21
Graphs, level curves

Example 10
Using Matlab to sketch the graphs
1 z = f (x, y ) = 1 + x 2 + 2y 2 - elliptic paraboloid
2 z = f (x, y ) = x 2 − y 2 - hyperbolic paraboloid (saddle)
3 x 2 + y 2 = 1 - circular (elliptic) cylinder
4 z 2 = x 2 + 2y 2 - cone

(Phan Thi Khanh Van) Function of several variables June 14, 2018 17 / 21
Graphs, level curves

Example 10
Using Matlab to sketch the graphs
1 z = f (x, y ) = 1 + x 2 + 2y 2 - elliptic paraboloid
2 z = f (x, y ) = x 2 − y 2 - hyperbolic paraboloid (saddle)
3 x 2 + y 2 = 1 - circular (elliptic) cylinder
4 z 2 = x 2 + 2y 2 - cone
5 x = z 2 + 1 - parabolic cylinder

(Phan Thi Khanh Van) Function of several variables June 14, 2018 17 / 21
Graphs, level curves

Example 10
Using Matlab to sketch the graphs
1 z = f (x, y ) = 1 + x 2 + 2y 2 - elliptic paraboloid
2 z = f (x, y ) = x 2 − y 2 - hyperbolic paraboloid (saddle)
3 x 2 + y 2 = 1 - circular (elliptic) cylinder
4 z 2 = x 2 + 2y 2 - cone
5 x = z 2 + 1 - parabolic cylinder
Commands in Matlab:

(Phan Thi Khanh Van) Function of several variables June 14, 2018 17 / 21
Graphs, level curves

Example 10
Using Matlab to sketch the graphs
1 z = f (x, y ) = 1 + x 2 + 2y 2 - elliptic paraboloid
2 z = f (x, y ) = x 2 − y 2 - hyperbolic paraboloid (saddle)
3 x 2 + y 2 = 1 - circular (elliptic) cylinder
4 z 2 = x 2 + 2y 2 - cone
5 x = z 2 + 1 - parabolic cylinder
Commands in Matlab:
syms x,y,z; z=1+xˆ2+yˆ2; ezsurf(z) or ezmesh(z);

(Phan Thi Khanh Van) Function of several variables June 14, 2018 17 / 21
Graphs, level curves

Example 10
Using Matlab to sketch the graphs
1 z = f (x, y ) = 1 + x 2 + 2y 2 - elliptic paraboloid
2 z = f (x, y ) = x 2 − y 2 - hyperbolic paraboloid (saddle)
3 x 2 + y 2 = 1 - circular (elliptic) cylinder
4 z 2 = x 2 + 2y 2 - cone
5 x = z 2 + 1 - parabolic cylinder
Commands in Matlab:
syms x,y,z; z=1+xˆ2+yˆ2; ezsurf(z) or ezmesh(z);
Creating a grid
[X,Y]=meshgrid(linspace(-2,2),linspace(-2,2));
Z=1+X.ˆ2+Y.ˆ2; mesh(X,Y,Z) or surf(X,Y,Z);
(Phan Thi Khanh Van) Function of several variables June 14, 2018 17 / 21
Graphs, level curves

Level curves

(Phan Thi Khanh Van) Function of several variables June 14, 2018 18 / 21
Graphs, level curves

Level curves

(Phan Thi Khanh Van) Function of several variables June 14, 2018 18 / 21
Graphs, level curves

Level curves

f :D→R ⊂R

(Phan Thi Khanh Van) Function of several variables June 14, 2018 18 / 21
Graphs, level curves

Level curves

f :D→R ⊂R
The level curves of a function f are the curves with
equations f (x, y ) = k, where k ∈ R is a constant. The
set of level curves is called contour map.
(Phan Thi Khanh Van) Function of several variables June 14, 2018 18 / 21
Graphs, level curves

Example 10
A contour map for a function f is shown in the figure.
Use it to estimate the values of f (2, 4), f (4, 1).

(Phan Thi Khanh Van) Function of several variables June 14, 2018 19 / 21
Graphs, level curves

Example 10
A contour map for a function f is shown in the figure.
Use it to estimate the values of f (2, 4), f (4, 1).

f (2, 4) ' 75

(Phan Thi Khanh Van) Function of several variables June 14, 2018 19 / 21
Graphs, level curves

Example 10
A contour map for a function f is shown in the figure.
Use it to estimate the values of f (2, 4), f (4, 1).

f (2, 4) ' 75
f (4, 1) ' 63

(Phan Thi Khanh Van) Function of several variables June 14, 2018 19 / 21
Graphs, level curves

Example 11
Sketch the level curves of f = x 2 + y 2 + 1. Using Matlab
to sketch again.

(Phan Thi Khanh Van) Function of several variables June 14, 2018 20 / 21
Graphs, level curves

Example 11
Sketch the level curves of f = x 2 + y 2 + 1. Using Matlab
to sketch again.
Commands in Matlab:

(Phan Thi Khanh Van) Function of several variables June 14, 2018 20 / 21
Graphs, level curves

Example 11
Sketch the level curves of f = x 2 + y 2 + 1. Using Matlab
to sketch again.
Commands in Matlab:
Creating a grid
[X,Y]=meshgrid(linspace(-3,3),linspace(-3,3));

(Phan Thi Khanh Van) Function of several variables June 14, 2018 20 / 21
Graphs, level curves

Example 11
Sketch the level curves of f = x 2 + y 2 + 1. Using Matlab
to sketch again.
Commands in Matlab:
Creating a grid
[X,Y]=meshgrid(linspace(-3,3),linspace(-3,3));
Assigning function
Z=1+X.ˆ2+Y.ˆ2;

(Phan Thi Khanh Van) Function of several variables June 14, 2018 20 / 21
Graphs, level curves

Example 11
Sketch the level curves of f = x 2 + y 2 + 1. Using Matlab
to sketch again.
Commands in Matlab:
Creating a grid
[X,Y]=meshgrid(linspace(-3,3),linspace(-3,3));
Assigning function
Z=1+X.ˆ2+Y.ˆ2;
Sketch the contour map
contour(X,Y,Z);

(Phan Thi Khanh Van) Function of several variables June 14, 2018 20 / 21
Graphs, level curves

Example 12
Sketch the level surfaces of f = x 2 + y 2 + z 2 .

(Phan Thi Khanh Van) Function of several variables June 14, 2018 21 / 21
Graphs, level curves

Example 12
Sketch the level surfaces of f = x 2 + y 2 + z 2 .
x 2 + y 2 + z 2 = k:

(Phan Thi Khanh Van) Function of several variables June 14, 2018 21 / 21
Graphs, level curves

Example 12
Sketch the level surfaces of f = x 2 + y 2 + z 2 .
x 2 + y 2 + z 2 = k: the √
level surfaces are spheres with
center (0, 0, 0), radius k

(Phan Thi Khanh Van) Function of several variables June 14, 2018 21 / 21
Graphs, level curves

Example 12
Sketch the level surfaces of f = x 2 + y 2 + z 2 .
x 2 + y 2 + z 2 = k: the √
level surfaces are spheres with
center (0, 0, 0), radius k

(Phan Thi Khanh Van) Function of several variables June 14, 2018 21 / 21

You might also like