Colourful complex functions

Standard

Recently I became curious about functions defined from \mathbb{C} to \mathbb{C} and I asked myself following question:

How would the complex functions look like if we try to plot them?

Graphs of complex functions lie in \mathbb{C}^2, which can be identified in a natural way with \mathbb{R}^4, real four-dimensional space.

So I jumped to SageMath  and plotted z^2


sage: f(z) = z^2
sage: complex_plot(f, (-5, 5), (-5, 5))

z^2

graph of z^2 plotted using SageMath Version 7.0

 

Now this looked like an enigma to me. What do the colours stand for? As usual, there is an interesting entry about this on Wikipedia, Colour wheel graphs of complex functions.

I digged further and discovered that these are called “2D colour maps” and is one of many other ways of visualizing complex functions, like 3D models, 2D vector plots, 4D perspective projection,  conformal maps…

1024px-HSL_color_solid_cylinder_alpha_lowgamma

HLS Cylinder (By SharkDderivative [CC BY-SA 3.0 or GFDL], via Wikimedia Commons)

But what is the colour map? The colour map uses the HLS colour system (“hue-lightness-saturation”). HLS is a cylindrical-coordinate representations of points in an RGB color model.  In cylinder, the angle around the central vertical axis corresponds to “hue”(i.e. shade of a colour) , the distance from the axis corresponds to “saturation”, and the distance along the axis corresponds to “lightness”.

135px-Complex_number_illustration_modarg.svg

The argument φ and modulus r locate a point on an Argand diagram i.e. complex plane.(By Kan8eDie [CC BY-SA 3.0, CC BY-SA 3.0 or GFDL], via Wikimedia Commons)

The hue represents the argument (also called phase angle) of the complex number z. The absolute value (also called magnitude or modulus) is given by the lightness of the colour. All colours of the colour map have the maximal saturation (with respect to the given lightness).

hsl-color-wheel

HLS Colour Wheel (source: iliasky.com)

Positive real numbers always appear red. The primary colours appear at phase angles  \frac{2 \pi}{3} (green) and \frac{4\pi}{3} (blue). The subtractive colours yellow, cyan, and magenta have the phases \frac{\pi}{3}, \pi, and \frac{5\pi}{3}.

The poles of a complex function are white, the zeros are black.

Finally, to conclude [from : Visual quantum mechanics : selected topics with computer-generated animations of quantum-mechanical phenomena by Bernd Thaller.]

This colour map is obtained by a stereographic projection from the surface of the three-dimensional colour space (in the hue-lightness-saturation system) onto the complex plane.

An appropriately colored surface graphics or a density graphics can give a useful graphical representation of a complex valued function. Another example of complex valued function, a wave function, is given here:

color1234

Visualizations of a wave function in two dimensions. The left graphic shows the function as a “density plot” with additional contour lines for the absolute value. In the three-dimensional surface plot the height of the surface gives the absolute value of the wave function. (By Bernd Thaller, created using Mathematica. © 2000 Springer-Verlag New York, Inc.)

For more such graphs, visit Bernd Thaller’s Gallery of complex functions .

 

 

 

Advertisements

7 responses »

  1. Pingback: Repelling Numbers | Gaurish4Math

  2. Pingback: Dimension clarification | Gaurish4Math

  3. Pingback: Imaginary Angles | Gaurish4Math

    • Thanks for link, it is also in same spirit as my blog post. 🙂

      But in the linked webpage, it says: “…..they don’t mean much but are certainly fun to look at..”, which is not completely true since such functions can be thought as example of wave functions.

      Tumblr is really “the” hub of beautiful mathematical image blogs.

      Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s