Skip to content
Tutorials Center
My learning

Topics

Lesson 1 of 39 ยท Getting Started

What Is Multivariable Calculus?

See why single-variable calculus is not enough, what changes with two or more inputs, and how this course is organized, with runnable Python examples.

In single-variable calculus you study functions such as f(x) = xยฒ, where one input produces one output. Real situations rarely work that way. The temperature in a room depends on where you stand (three coordinates) and on the time. The cost of a box depends on its length, width and height. The profit of a company depends on price, advertising and production. Multivariable calculus extends derivatives and integrals to functions with several inputs.

This course is aimed at university-level learners, but we build every idea from pictures and numbers first. You should be comfortable with ordinary derivatives, integrals and the chain rule. We use Python so you can check each idea on your own computer, or in the editors on this page.

From one input to many

A function of one variable maps a number to a number. A function of two variables maps a pair to a number:

Text
f(x, y) = xยฒ + yยฒ
f(1, 2) = 1 + 4 = 5

Its graph is a surface in three-dimensional space: above each point (x, y) of the plane you place a point at height z = f(x, y). A function of three variables, such as T(x, y, z), needs four dimensions to draw its graph, so we study it differently (with level surfaces, which you meet in a later lesson).

Python Evaluate a function of two variables

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

What can change when you add inputs?

In one variable there are only two directions to move: left or right. With two inputs you can move in infinitely many directions, and the rate of change depends on the direction you choose. That one fact explains most of the new ideas:

Single variable Several variables
Derivative f'(x) Partial derivatives and the gradient
Tangent line Tangent plane
Maximum or minimum: f'(x) = 0 Critical points, saddle points, Lagrange multipliers
Integral over an interval Double and triple integrals over regions
Fundamental theorem of calculus Green's, Stokes' and the divergence theorems

Why more variables?

Temperature Depends on place and time
Box cost Depends on three sides
Profit Depends on price and ads
1 / 3

A first taste: slopes in different directions

Take the surface z = xยฒ + yยฒ, a bowl. Stand at the point (1, 1). If you walk in the x direction the height changes at a different rate than if you walk in the y direction or along the diagonal. Let us measure rates numerically with a small step h.

Python Rate of change depends on direction

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The numbers differ, and walking west gives a negative rate. The diagonal rate is larger than either axis rate because you gain height in both coordinates at once. In the lessons on partial derivatives and the gradient, you will learn to compute all of these exactly.

Setting up your tools

Throughout the course we use three Python libraries:

  • numpy for arrays and fast arithmetic on grids of points,
  • sympy for exact symbolic derivatives and integrals,
  • matplotlib for contour plots, surfaces and vector fields.
Python Check your tools

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

When a result surprises you, compute it two ways: once with sympy (exact) and once with numpy (numeric). If they agree, you can trust both.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which quantity is naturally a function of three variables?

    A position in space needs three coordinates, so the temperature at that position is a function of x, y and z.
  2. 2. What is the value of f(x, y) = xยฒ + yยฒ at the point (3, 4)?

    f(3, 4) = 9 + 16 = 25.
  3. 3. Why is the rate of change of z = f(x, y) not a single number at a point?

    The surface can rise in one direction and fall in another, so each direction has its own rate.
  4. 4. What replaces the tangent line when you go from y = f(x) to z = f(x, y)?

    A smooth surface looks flat when you zoom in, so the best linear approximation is a plane.

Summary

  • Multivariable calculus studies functions with two or more inputs.
  • The graph of z = f(x, y) is a surface; functions of three variables are studied through level surfaces.
  • With several inputs, the rate of change depends on direction.
  • Tangent lines become tangent planes, derivatives become partial derivatives and gradients, and integrals run over regions.
  • Python (numpy, sympy, matplotlib) lets us test every idea.

Next: Functions of Several Variables