Tutorials › Calculus III › Scalar Fields as Assignments of Numbers to Points

Vector Fields and Flow · Tutorial 700 of 999

Scalar Fields as Assignments of Numbers to Points

Understand scalar fields as rules that give one numerical value to each point, and distinguish the point’s coordinates from the field’s output.

Beginner 9 min read

What You'll Learn

  • Define a scalar field on a region as a function with real-number outputs.
  • Distinguish a point’s input coordinates from the scalar value assigned to it.
  • Interpret inputs and outputs in temperature, height, and concentration models.
  • Keep physical units consistent in field formulas and their values.
  • Recognize why a rule assigning multiple outputs to one point is not a scalar field.

From Points to Numerical Values

A physical quantity can vary from place to place. The temperature may differ across a room, the height of a landscape may change across a map, and the concentration of a substance may vary throughout a container. To describe such variation, we need a rule that associates a number with each location under consideration.

In calculus, a quantity assigned to points in a region is called a field. When the assigned quantity is a single real number, it is a scalar field. The point is the input; the number assigned to that point is the output.

This distinction is important. A location in a floor plan might be specified by two coordinates, while the temperature at that location is one number, measured in degrees. The coordinates tell us where we are; the field value tells us what quantity is assigned there.

Definition of a Scalar Field

Definition: Let \(D\) be a region in \(\mathbb{R}^n\), where \(n\) is a positive integer. A scalar field on \(D\) is a function \(f:D\to\mathbb{R}\). Thus, for every point \(\mathbf{p}\) in \(D\), the rule assigns exactly one real number \(f(\mathbf{p})\).

The region \(D\) is the set of allowed input points. If the points are in a plane, we commonly write a point as \((x,y)\), and the field may be written \(f(x,y)\). If the points are in three-dimensional space, we commonly write \((x,y,z)\), and use \(f(x,y,z)\). The number of coordinates describes the input point; it does not determine how many numbers the field returns.

For example, a two-coordinate input \((x,y)\) can produce one temperature value. In notation, \(T(x,y)\) is real-valued: it produces one number, even though its input has two coordinates. Similarly, a field \(C(x,y,z)\) may take three coordinates as input and still return just one number.

Key distinction: A scalar field has a point as its input and one real number as its output. The coordinates belong to the input; they are not themselves the field’s output.

Why the Assignment Must Be Unambiguous

A scalar field is a function, so it must assign exactly one output to each input point. This requirement is what makes the rule usable: once the location is specified, there is a definite scalar value associated with it.

To see why the requirement matters, suppose a proposed temperature rule assigned \(21\) degrees to a particular point in one part of its description, but \(24\) degrees to that very same point elsewhere. It would not describe a single well-defined temperature at that location. By contrast, two different points may have the same temperature. The rule remains a function in that case, because each input still has only one output.

$$ \text{For each } \mathbf{p}\in D,\quad \text{there is exactly one } f(\mathbf{p})\in\mathbb{R}. $$

This is the defining condition, not a claim that different points must have different values. A field can assign the same number to many locations; it must only avoid assigning two different numbers to the same location.

Worked Example: Temperature Across a Floor

Worked Example: Temperature Across a Floor

Suppose \(x\) and \(y\) measure position in metres across a rectangular floor, with \(0\leq x\leq 4\) and \(0\leq y\leq 3\). A simple temperature model is

$$ T(x,y)=18+2\frac{x}{1\text{ m}}-\frac{y}{1\text{ m}}\quad \text{degrees Celsius}. $$

The input is a floor location \((x,y)\); the output is one temperature. Consider the location \((2\text{ m},1\text{ m})\). Its input coordinates are \(x=2\text{ m}\) and \(y=1\text{ m}\). Substitution gives

$$ T(2\text{ m},1\text{ m}) =18+2\frac{2\text{ m}}{1\text{ m}}-\frac{1\text{ m}}{1\text{ m}} =18+4-1 =21\text{ degrees Celsius}. $$

The output is \(21\) degrees Celsius, not the coordinate pair \((2,1)\). The coordinate pair identifies the location where the temperature is assigned.

The formula is a model of the temperature distribution. Its inputs are positions in the specified floor region, and each allowed position receives one numerical temperature. The units make the roles especially clear: metres describe the input coordinates, while degrees Celsius describe the output.

Worked Example: Height Over a Plot

Worked Example: Height Over a Plot

Suppose a plot is described by horizontal coordinates \(x,y\), measured in metres, with \(0\leq x\leq 2\text{ m}\) and \(0\leq y\leq 3\text{ m}\). Let its height above a reference level be modeled by

$$ h(x,y)= \left[ 6-\left(\frac{x}{2\text{ m}}\right)^2 -\left(\frac{y}{3\text{ m}}\right)^2 \right]\text{ m}. $$

Here the input is a point on the horizontal plot. The output is one height, measured in metres. At the point \((1\text{ m},1.5\text{ m})\), the two dimensionless ratios are

$$ \frac{x}{2\text{ m}}=\frac{1\text{ m}}{2\text{ m}}=\frac12, \qquad \frac{y}{3\text{ m}}=\frac{1.5\text{ m}}{3\text{ m}}=\frac12. $$

Therefore the assigned height is

$$ h(1\text{ m},1.5\text{ m}) = \left[6-\left(\frac12\right)^2-\left(\frac12\right)^2\right]\text{ m} = \left[6-\frac14-\frac14\right]\text{ m} = 5.5\text{ m}. $$

The input is the two-coordinate location \((1\text{ m},1.5\text{ m})\); the output is the single height \(5.5\text{ m}\).

Worked Example: Concentration in a Container

Worked Example: Concentration in a Container

Suppose \(x,y,z\) are coordinates in metres inside a container, with \(0\leq x\leq2\text{ m}\), \(0\leq y\leq1\text{ m}\), and \(0\leq z\leq2\text{ m}\). Consider the concentration model

$$ C(x,y,z)= \left[ 12-\frac{x}{1\text{ m}} -2\frac{y}{1\text{ m}} -\frac{z}{1\text{ m}} \right]\text{ mg/L}. $$

The input is a three-coordinate location in the container. The output is one concentration value in milligrams per litre. At \((1\text{ m},0.5\text{ m},2\text{ m})\), calculate each coordinate contribution:

$$ \frac{x}{1\text{ m}}=1,\qquad 2\frac{y}{1\text{ m}}=2(0.5)=1,\qquad \frac{z}{1\text{ m}}=2. $$

Thus

$$ C(1\text{ m},0.5\text{ m},2\text{ m}) = [12-1-1-2]\text{ mg/L} = 8\text{ mg/L}. $$

The location has three coordinates, but the field assigns it one number: \(8\text{ mg/L}\).

How to Read a Scalar-Field Formula

When you see a formula for a scalar field, separate three pieces of information:

  1. The input region: which points are being considered.
  2. The input coordinates: how a point in that region is specified.
  3. The output quantity: the single real number assigned to each input point.

For \(T(x,y)\), the symbols \(x\) and \(y\) represent the input coordinates, and \(T\) represents the assigned scalar value. For \(C(x,y,z)\), there are three input coordinates, but still only one output. The name of the field often hints at the physical meaning of that output: \(T\) for temperature, \(h\) for height, or \(C\) for concentration.

In applications, the output also has units appropriate to the quantity being modeled. Temperature might be measured in degrees Celsius, height in metres, and concentration in milligrams per litre. A numerical formula without context may still define a real-valued function, but units explain what its numbers represent.

A Common Mistake: Treating Coordinates as the Value

A frequent error is to confuse the input point with the output assigned to it. For the temperature model above, one might incorrectly write

$$ T(2\text{ m},1\text{ m})=(2,1). $$

This is wrong because \((2\text{ m},1\text{ m})\) is the input location, not a temperature. The formula assigns a scalar to that location. Substituting into the rule gives the corrected result:

$$ T(2\text{ m},1\text{ m})=21\text{ degrees Celsius}. $$

A related mistake is to assume that two coordinates mean two outputs. The number of input coordinates tells us how the location is specified; the word scalar tells us that the output is one number.

Why Scalar Fields Are Useful

Scalar fields provide a compact language for describing quantities that vary with position. Instead of listing a separate measurement at every point, a field gives a rule that can represent the quantity throughout a region. A temperature field describes temperature by location, a height field describes elevation over a horizontal area, and a concentration field describes concentration throughout a volume.

The same mathematical idea applies across these different settings: choose a region of points, use coordinates to specify each point, and assign one real number to it. The physical interpretation changes, but the input-output structure remains the same. That structure is the starting point for studying how quantities vary across space.

Check Your Understanding

For each question, focus on distinguishing the input point from the scalar value assigned to it.

  1. In a field \(f(x,y)\), what do \(x\) and \(y\) represent, and how many real-number outputs does the field assign to an allowed input?
  2. A temperature field takes a location \((3,2)\) as input and assigns \(19\) degrees Celsius. Identify the input and the output, including what the output measures.
  3. Can two different points have the same scalar-field value? Explain why this does or does not violate the definition.
  4. A proposed rule assigns two different concentration values to the same location. Which requirement for a scalar field does it fail?
  5. In a height field \(h(x,y)\), does the pair \((x,y)\) represent the height? Explain the difference between the coordinates and the output.