ArticleslgStudy

mathematics

Domain coloring

Domain coloring is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Domain coloring rather than just read about it. In short: In complex analysis, domain coloring or a color wheel graph is a technique for visualizing complex functions by assigning a color to each point of the complex plane. By assigning points on the complex plane to different colors and brightness, domain coloring allows for a function from the complex plane to itself, whose graph would normally require four spatial dimensions, to be easily represented and understood.

Domain coloring — main illustration
Domain coloring — illustration

Key takeaways

  • Domain coloring belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Domain coloring to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Domain coloring from memory before moving on to harder problems.

Reference excerpt

In complex analysis, domain coloring or a color wheel graph is a technique for visualizing complex functions by assigning a color to each point of the complex plane. By assigning points on the complex plane to different colors and brightness, domain coloring allows for a function from the complex plane to itself, whose graph would normally require four spatial dimensions, to be easily represented and understood. This provides insight to the fluidity of complex functions and shows natural geometric extensions of real functions.

Motivation A graph of a real function can be drawn in two dimensions because there are two represented variables, x and y. However, complex numbers are represented by two variables and therefore two dimensions; this means that representing a complex function (more precisely, a complex-valued function of one complex variable f:ℂ→ℂ) requires the visualization of four dimensions. One way to achieve that is with a Riemann surface, but another method is by domain coloring.

History The term "domain coloring" was coined by Frank Farris, possibly around 1998. There were many earlier uses of color to visualize complex functions, typically mapping argument (phase) to hue. Larry Crone used the method in the late 1980s. Dan Kucerovsky used it in 1990. The technique of using continuous color to map points from domain to codomain or image plane was used in 1999 by George Abdo and Paul Godfrey and colored grids were used in graphics by Doug Arnold that he dates to 1997.

Method

Representing a four dimensional complex mapping with only two variables is undesirable, as methods like projections can result in a loss of information. However, it is possible to add variables that keep the four-dimensional process without requiring a visualization of four dimensions. In this case, the two added variables are visual inputs such as color and brightness because they are naturally two variables easily processed and distinguished by the human eye. This assignment is called a "color function". There are many different color functions used. A common practice is to represent the complex argument, arg⁡z, (also known as "phase" or "angle") with a hue following the color wheel, and the magnitude by other means, such as brightness or saturation.

Simple color function The following example colors the origin in black, 1 in green, −1 in magenta, and a point at infinity in white: {H=arg⁡z+2π/3,S=100%,L=ℓ(|z|). Where H is hue, S is saturation, and L is lightness. There are a number of choices for the function ℓ:[0,∞)→[0,1). ℓ should be strictly monotonic and continuous. Another desirable property is ℓ(1/r)=1−ℓ(r) such that the inverse of a function is exactly as light as the original function is dark (and the other way around). Possible choices include

ℓ1(r)=2πarctan⁡(r) and ℓ2(r)=rara+1 (with some parameter a>0). With a=2, this corresponds to the stereographic projection onto the Riemann sphere. A widespread choice which does not have this property is the function ℓ3(r)=1−a|r| (with some parameter 0<a<1) which for a=1/2 and 0≤r≤1 is very close to ℓ1. This approach uses the HSL (hue, saturation, lightness) color model. Saturation is always set at the maximum of 100%. Vivid colors of the rainbow are rotating in a continuous way on the complex unit circle, so the sixth roots of unity (starting with 1) are: green, cyan, blue, magenta, red, and yellow. Since the HSL color space is not perceptually uniform, one can see streaks of perceived brightness at yellow, cyan, and magenta (even though their absolute values are the same as red, green, and blue) and a halo around L = ⁠1/2⁠. More modern color spaces, e.g., the Lab color space or CIECAM02, correct this, making the images more accurate and less saturated.

Discontinuous color changing Many color graphs have discontinuities, where instead of evenly changing brightness and color, it suddenly changes, even when the function itself is still smooth. This is done for a variety of reasons such as showing more detail or highlighting certain aspects of a function, like level sets.

Magnitude growth

Unlike the argument, which has finite range, the magnitude of a complex number can range from 0 to ∞. Therefore, in functions that have large ranges of magnitude, changes in magnitude can sometimes be hard to differentiate when a very large change is also pictured in the graph. This can be remedied with a discontinuous color function which shows a repeating brightness pattern for the magnitude based on a given equation. This allows smaller changes to be easily seen as well as larger changes that "discontinuously jump" to a higher magnitude. In the graph on the right, these discontinuities occur in circles around the center, and show a dimming of the graph that can then start becoming brighter again. A similar color function has been used for the graph on top of the article. Equations that determine the discontinuities may be linear, such as for every integer magnitude, exponential equations such as every magnitude 2n where n is an integer, or any other equation.

Highlighting properties Discontinuities may be placed where outputs have a certain property to highlight which parts of the graph have that property. For instance, a graph may, instead of showing the color cyan, jump from green to blue. This causes a discontinuity that is easy to spot, and can highlight lines such as where the argument is zero. Discontinuities may also affect large portions of a graph, such as a graph where the color wheel divides the graph into quadrants. In this way, it is easy to show where each quadrant ends up with relations to others.

Limitations People who experience color blindness may have trouble interpreting such graphs when they are made with standard color maps. This issue can be partially fixed by creating alternate versions using color maps that fit within the color space discernible to those with color blindness. For example, for use by those with total deuteranopia, a color map based on blue/grey/yellow may be more readable than the conventional map based on blue/green/red.

References

Illustrations

Domain coloring: A domain coloring graph of the function
.mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}.mw-parser-output .sfrac{white-space:nowrap}.mw-parser-output .sfrac.tion,.mw-parser-output .sfrac .tion{display:inline-block;vertical-align:-0.5em;font-size:85%;text-align:center;margin-left:.1em;margin-right:.1em}.mw-parser-output .sfrac .num{display:block;border-bottom:1px solid}.mw-parser-output .sfrac .den{display:block;line-height:1.5em}.mw-parser-output .sr-only{border:0;clip:rect(0,0,0,0);clip-path:polygon(0px 0px,0px 0px,0px 0px);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}⁠(z2 − 1)(z − 2 − i)2/z2 + 2 + 2i⁠. Darker spots mark moduli near zero, brighter spots are farther away from the origin. The color encodes the argument. The function has zeros for ±1, (2 + i) and poles at ±−2−2i.
A domain coloring graph of the function .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}.mw-parser-output .sfrac{white-space:nowrap}.mw-parser-output .sfrac.tion,.mw-parser-output .sfrac .tion{display:inline-block;vertical-align:-0.5em;font-size:85%;text-align:center;margin-left:.1em;margin-right:.1em}.mw-parser-output .sfrac .num{display:block;border-bottom:1px solid}.mw-parser-output .sfrac .den{display:block;line-height:1.5em}.mw-parser-output .sr-only{border:0;clip:rect(0,0,0,0);clip-path:polygon(0px 0px,0px 0px,0px 0px);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}⁠(z2 − 1)(z − 2 − i)2/z2 + 2 + 2i⁠. Darker spots mark moduli near zero, brighter spots are farther away from the origin. The color encodes the argument. The function has zeros for ±1, (2 + i) and poles at ±−2−2i.
Domain coloring illustration
Domain coloring illustration
Domain coloring: A discontinuous color function. In the graph, each discontinuity occurs when |z|=2n for integers n.
A discontinuous color function. In the graph, each discontinuity occurs when |z|=2n for integers n.

Worked examples

Example 1 — a first encounter with Domain coloring

Start with the simplest possible case. Write down what Domain coloring claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Domain coloring before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Domain coloring ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Domain coloring

In research
Domain coloring appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Domain coloring in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Domain coloring is common in secondary-school and first-year university syllabi. It links to neighbouring topics Complex analysis, Numerical function drawing, so understanding it makes those chapters shorter.
In everyday life
Look for Domain coloring outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Domain coloring” →

How to study Domain coloring in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Domain coloring means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Domain coloring out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Domain coloring in simple terms?

In complex analysis, domain coloring or a color wheel graph is a technique for visualizing complex functions by assigning a color to each point of the complex plane. By assigning points on the complex plane to different colors and brightness, domain coloring allows for a function from the complex p…

Why does Domain coloring matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Domain coloring?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Domain coloring.

Tags

  • Complex analysis
  • Numerical function drawing

Keep exploring