Introduction
A temperature or concentration can vary from place to place. A single measurement describes one location, but understanding the whole region requires a model that assigns a value to every location in that region. In multivariable calculus, such a model is a scalar field.
For example, a temperature field might assign a temperature to each point in a room, while a concentration field might assign a dissolved-substance concentration to each point in a lake. The field's input is a position; its output is one number. This differs from a vector field, whose output at each position is a vector.
To use a scalar model responsibly, keep track of its domain, the units of its inputs and outputs, and what its graph or contours actually show. In particular, a formula may have values outside the region where the model is intended to apply, but those values are not automatically part of the model.
Definition and units
For a field over a flat region, a position is often written \((x,y)\), and the model is written \(T(x,y)\) or \(C(x,y)\). For a field throughout a three-dimensional region, a position is written \((x,y,z)\). The letters \(T\) and \(C\) are common choices for temperature and concentration, but the essential point is that the output is a single scalar value.
The coordinates need units too. If \(x\) and \(y\) measure distances in metres, then a formula involving \(x\) and \(y\) must be interpreted using metre-valued coordinates. The output units are determined by the modeled quantity. When a formula adds terms, those terms must represent quantities with compatible units; a numerical model often has coefficients that carry units even when the units are not written beside every coefficient.
Evaluating a field at a location
To find a field value at a specified point, substitute that point's coordinates into the formula. The result describes the modeled quantity at that location, not an average over a region. Before substituting, check that the location is in the domain. If it is outside the domain, the model as stated does not assign a value there.
Worked Example: Temperature on a rectangular floor
A room's floor is modeled by \(D=[-4,4]\times[-4,4]\), with \(x\) and \(y\) measured in metres. Suppose the temperature, in degrees Celsius, is \(T(x,y)=22+0.5x-y\). Find the modeled temperatures at \((4,2)\) and \((-2,-1)\).
Both points lie in the stated square domain because each coordinate is between \(-4\) and \(4\). At the first point, substitute \(x=4\) and \(y=2\):
At the second point, substitute \(x=-2\) and \(y=-1\):
As a check, substituting each point into the original expression gives \(22\) in both cases. The equal temperatures do not mean the two locations are the same; they lie on the same temperature contour, as the contour equation below will show.
Contours show where a field has a fixed value
A contour, also called a level curve for a field on a plane, consists of positions where the field takes one specified value. To find the contour for a value \(k\), set the formula equal to \(k\) and solve for the positions. The contour in the model is restricted to its domain: it is the set of solutions that belong to \(D\).
For the room model, set \(T(x,y)=k\). Rearranging gives \(y=0.5x+22-k\). Thus the contour at a fixed temperature is a line, but only the part of that line lying in the square floor domain belongs to the model. For instance, the \(22\,^\circ\mathrm{C}\) contour is \(y=0.5x\), restricted to \(-4\leq x\leq4\) and \(-4\leq y\leq4\). Both points evaluated in the example satisfy \(y=0.5x\): for \((4,2)\), \(2=0.5(4)\); for \((-2,-1)\), \(-1=0.5(-2)\).
Several labeled contours give a compact picture of how a field varies. Each label states the field value along that contour. A contour plot does not directly show the field's height above the floor; it shows which locations share a value. The spacing and arrangement of contours can help reveal spatial patterns, but the labels are necessary to know which values the curves represent.
A concentration field with circular contours
Worked Example: Concentration around a source
Consider a concentration model on the disk \(D=\{(x,y):x^2+y^2\leq9\}\), where distances are measured in metres and concentration is measured in milligrams per litre:
At the source location \((0,0)\),
At \((1,2)\), which is in the disk because \(1^2+2^2=5\leq9\),
Now find the contour where the concentration is \(6\ \mathrm{mg/L}\). Set \(C(x,y)=6\):
This is a circle of radius \(2\) metres centered at the origin. The model domain is the disk \(x^2+y^2\leq9\), which contains the entire circle \(x^2+y^2=4\). Therefore the \(6\ \mathrm{mg/L}\) contour in this domain is the full circle, not a clipped portion. Check the point \((2,0)\) on it: \(C(2,0)=10-4-0=6\ \mathrm{mg/L}\), as required.
The formula depends on \(x^2+y^2\), so positions at the same distance from the origin receive the same value. This explains why the contours are circles centered at the origin. The model's values are also nonnegative throughout its stated domain: \(x^2+y^2\leq9\) implies \(C(x,y)=10-(x^2+y^2)\geq1\ \mathrm{mg/L}\).
Graphing a scalar field
For a scalar field of two spatial variables, its graph is a surface in three-dimensional coordinate space. The horizontal coordinates record the physical position \((x,y)\), and the vertical coordinate records the field value. A graph therefore displays both location and value, while a contour plot displays the locations having selected values.
For a scalar field of three spatial variables, its full graph would require four coordinates: three for position and one for the scalar value. Such a graph is not directly drawable in ordinary three-dimensional space. Labeled level surfaces, slices, or selected values are more practical ways to communicate its pattern. In either case, a visualization must respect the field's specified domain.
Worked Example: Reading a graph and contour from a temperature model
Let a temperature field on the unit disk \(D=\{(x,y):x^2+y^2\leq1\}\) be \(T(x,y)=25-x^2-2y^2\), with temperature in degrees Celsius. The graph is the surface \(z=25-x^2-2y^2\) above that disk. Evaluate selected locations and identify the \(24\,^\circ\mathrm{C}\) contour.
At the center,
At \((1,0)\), a point on the domain boundary,
At \((0,1)\), also on the boundary,
These samples show that the modeled temperature is lower at those boundary locations than at the center, with a stronger decrease in the \(y\)-direction than in the \(x\)-direction. For the \(24\,^\circ\mathrm{C}\) contour, solve
This ellipse lies entirely in the unit disk: on the ellipse, \(x^2+y^2=1-y^2\leq1\). Thus the full ellipse is the contour in the stated domain. The point \((1,0)\) lies on it, and substitution into the field gives \(24\,^\circ\mathrm{C}\), verifying the label. The surface graph and this labeled ellipse are two different views of the same model.
Why the contour equation works
The algebra behind a contour plot is direct, but it is useful to state why solving \(f(\mathbf{x})=k\) gives precisely the positions with value \(k\). This also makes the domain restriction explicit.
A position \(\mathbf{x}\) is eligible only if \(\mathbf{x}\in D\), because the field is defined on \(D\).
Among those positions, keep exactly the ones satisfying \(f(\mathbf{x})=k\).
The resulting set \(\{\mathbf{x}\in D:f(\mathbf{x})=k\}\) is the level set; in a planar domain, it is the contour for value \(k\).
This is a complete justification because the definition of a contour is precisely the set of domain positions at which the field equals the chosen value. Solving the equation finds all such positions, and intersecting with the domain excludes solutions where the model is not defined.
Common pitfalls and model checks
A common mistake is to solve the contour equation and report the unrestricted curve, even when part of it lies outside the model domain. For example, suppose the field \(C(x,y)=10-x^2-y^2\) is defined only on \(x^2+y^2\leq1\). Solving for \(C=6\) still gives \(x^2+y^2=4\), but that circle has no points in the domain. Reporting it as a contour of this restricted model is incorrect: the actual level set is the empty set. The correction is to intersect the equation's solutions with the stated domain before describing the contour.
Another frequent error is confusing the field value with a coordinate. In a graph of a temperature field, \(x\) and \(y\) specify location, while the vertical coordinate represents temperature; it is not a third spatial coordinate in the room. In a contour plot, the labels represent temperatures or concentrations, not distances between curves.
Before interpreting a model, check that each requested point lies in its domain, substitute coordinates carefully (especially negative values), retain the output units, and verify any contour by substituting a point on it into the original field formula. These checks are simple but protect against interpreting an algebraically correct expression as a physically meaningful result outside its stated setting.
Why scalar models are useful
A scalar field organizes many local measurements into one spatial description. It can help identify where a temperature reaches a target, compare concentration at two locations, or summarize how a quantity changes across a region. A formula makes numerical evaluation and contour equations possible; a table records selected samples; and a graph or contour plot makes the overall pattern easier to see.
These representations answer related but distinct questions. A point evaluation asks, “What value does the model assign here?” A contour asks, “Where does the model assign this fixed value?” A surface graph asks, “How do the values sit above the spatial domain?” Choosing the appropriate view helps make the model's meaning clear without claiming more than the domain and formula support.
Check Your Understanding
Use the definitions and checks in this tutorial to answer the following.
- For \(T(x,y)=18+x-2y\) on \([-2,2]\times[-2,2]\), what temperature does the model assign to \((1,-1)\), and what are the output units if \(T\) is measured in degrees Celsius?
- For \(C(x,y)=8-x^2-y^2\) on the disk \(x^2+y^2\leq4\), find the equation of the \(4\)-unit contour. Is it the full circle within this domain?
- In a graph of a two-variable temperature field, what do the two horizontal coordinates and the vertical coordinate represent?
- Why must solutions of \(f(\mathbf{x})=k\) be restricted to the stated domain when identifying a contour?
- What calculation can verify that a point lies on a contour labeled \(k\)?