14.1 - Functions of Several Variables

How to evaluate functions of several variables:

  • Identify the variables involved in the function and their respective domains.

  • Substitute the specific values of the variables into the function to calculate the output.

Example: Given

z=f(x,y)=sin⁡x+2cos⁡yz=f\left(x,y\right)=\sin x+2\cos y , evaluate f(π,π2)f\left(\pi,\frac{\pi}{2}\right) and f(3π2,π4)f\left(\frac{3\pi}{2},\frac{\pi}{4}\right)


  1. Calculate f(π,π2)f\left(\pi,\frac{\pi}{2}\right):

    • Substitute x=πx=\pi and y=π2y=\frac{\pi}{2} into the function.

    • This gives f(π,π2)=sin⁡(π)+2cos⁡(π2)=0+2⋅0=0.f\left(\pi,\frac{\pi}{2}\right)=\sin(\pi)+2\cos\left(\frac{\pi}{2}\right) = 0 + 2 \cdot 0 = 0.

  2. For f(3π2,π4)f\left(\frac{3\pi}{2},\frac{\pi}{4}\right) :

    • Substitute x=3π2x=\frac{3\pi}{2} and y=π4y=\frac{\pi}{4}.

    • This results in f(3π2,π4)=sin⁡(3π2)+2cos⁡(π4)=−1+2⋅22=−1+2.f\left(\frac{3\pi}{2},\frac{\pi}{4}\right)=\sin\left(\frac{3\pi}{2}\right)+2\cos\left(\frac{\pi}{4}\right)= -1 + 2 \cdot \frac{\sqrt{2}}{2} = -1 + \sqrt{2}.


How to describe and sketch the domain of a function of several variables step by step:

Example: f(x,y)=y−x2f\left(x,y\right)=\sqrt{y-x^2}

  1. Identify the Function: Begin with the function f(x,y)=expressionf(x,y) = \text{expression}. For our example, this is f(x,y)=y−x2f\left(x,y\right)=\sqrt{y-x^2} .

  2. Determine the Constraints: Find the conditions under which the function is defined. For f(x,y)=y−x2f\left(x,y\right)=\sqrt{y-x^2} , the expression inside the square root must be non-negative, resulting in the inequality y−x2 ≥0y - x^2 \text{ } \geq 0 or equivalently, y ≥x2y \text{ } \geq x^2.

  3. Express y in terms of x: Rearranging the constraint gives y ≥x2y \text{ } \geq x^2. This defines the region above the parabola y=x2y = x^2 on the xy-plane.

  4. Sketch the Boundary: Draw the curve of the parabola y=x2y = x^2 on the coordinate axes. This is a standard upward-opening parabola.

  5. Shade the Region: Shade the area above the parabola, indicating that all points in this region satisfy the condition y ≥x2y \text{ } \geq x^2, hence forming the domain of the function.

  6. State the Domain: Conclusively, represent the domain of f(x,y)f(x,y) as D=(x,y)∣y≥x2D = {(x,y) | y \geq x^2 }. To summarize, all points in the domain can be expressed mathematically, indicating that for any value of xx, the corresponding yy values must be greater than or equal to the values determined by the parabola.

How to sketch level curves of a function of several variables step by step:

Example: Given z=f(x,y)=x2+y2z=f\left(x,y\right)=x^2+y^2 , sketch level curves of ff when z=0,z=4z=0,z=4 and z=25z=25

  1. Set the Function Equal to the Desired Level: For each value of zz, set the equation z=x2+y2z = x^2 + y^2 equal to that level. For example, for z=4z=4, you will have the equation 4=x2+y24 = x^2 + y^2.


  2. Rearrange the Equation: Rearranging gives you the equation of a circle: x2+y2=4x^2 + y^2 = 4 for z=4z=4, and similarly x2+y2=0x^2 + y^2 = 0 for z=0z=0 and x2+y2=25x^2 + y^2 = 25 for z=25z=25.

  3. Identify the Shape: Recognize that the level curves for z=kz = k (where kk is a positive constant) will be circles centered at the origin with radius radius=sqrt(k)\text{radius} = \text{sqrt}(k). Therefore, for z=4z=4, the radius is 22; for z=25z=25 , the radius is 55; and for z=0z=0, there is only a point at the origin.

  4. Draw the Level Curves: Graph all identified level curves on the Cartesian plane, with circles drawn for z=4z=4 and z=25z=25, showing their expanding radius, while indicating that the level curve for z=0z=0 is simply the origin.


How to describe Level Surfaces of a Function of several variables.

Example: Describe the level surfaces of

w=f(x,y,z)=x2+y2+z2w=f\left(x,y,z\right)=\sqrt{x^2+y^2+z^2} whenw=0,w=2,w=6w=0,w=2,w=6

  • For w=0w=0: The level surface is the point at the origin, (0,0,0)(0, 0, 0).

  • For w=2w=2: The level surface is a sphere centered at the origin with radius 22, defined by the equation x2+y2+z2=4x^2+y^2+z^2=4.

  • For w=6w=6: The level surface is a sphere centered at the origin with radius 66, defined by the equation x2+y2+z2=36x^2+y^2+z^2=36.

  • General case: For any value of ww, the level surface is a sphere centered at the origin with radius ww, represented by the equation x2+y2+z2=w2x^2+y^2+z^2=w^2.


The domain of a function is assumed to be the largest set for which the defining rule generates real​ numbers, unless the domain is otherwise specified explicitly. Review the definition of the natural logarithm function to determine where it is defined.

The natural logarithm function, denoted as ln(x)\text{ln}(x), is defined for all real numbers x>0x>0, which implies that the domain of the function must exclude any values of xx that are less than or equal to zero.