← Back to works

Gradient and level curves

Functions and analysis University concept

Prerequisites: Derivatives, Plane vectors University concept

Adjust parameters Hide parameters Scroll down to adjust

Parametric equations

The level curve of a function of two variables is the set of points where . The gradient is the vector of partial derivatives. It points where increases fastest, and it is orthogonal to the level curve through that point.

This page uses three standard examples: circular level curves (the gradient points outward along the radius), the saddle , and , whose level curves are rectangular hyperbolas. For the parallel level lines of the linear objective , see Level curves of the objective.

Interaction

  • Circle x²+y² / Saddle x²−y² / Hyperbola xy: switch among the three functions and watch the level curves change from circles into two families of hyperbolas
  • Level curve family: lay the neighboring level curves over the figure and compare them with the one through the test point
  • Drag the test point on the figure and read and . The gold arrow is the gradient. The faint line is the tangent to the level curve at . The two stay orthogonal
  • Move the test point to the origin and the gradient arrow disappears. The figure marks the critical point

What to notice

  • The gradient is orthogonal to the level curve. Along the tangent, hardly changes. Along the arrow, changes fastest.
  • The larger is, the more sharply the same displacement changes the function. In the readout, gets smaller near the origin, and at a critical point the arrow disappears.
  • On the circle, the gradient lies along the radius. On the saddle and on , the level curves are hyperbolas. The gradient is still orthogonal to the tangent there, but the direction is not necessarily along the radius.

Further reading

Comments

Comment with a GitHub account.

← Back to works