Calculus: How To Really Understand A Function - An illustration showing a 2-dimensional cartesian x-y plane. There is a circle in the upper-right quadrant. The text above it says "NOT A FUNCTION". There is another curve that is convex in upper-left quadrant and concave in the lower-right quadrant. It looks like a wave. The text above it says "FUNCTION".

In calculus, arguably one of the most basic concepts is that of the function. The term ‘function’ was originally used for the first time by Gottfried Wilhelm Leibniz in 1673 to describe the “functional” properties of mathematical curves.

Over the years, this concept has evolved and expanded to become one of the most fundamental concepts in not just calculus but the whole of mathematics. In this essay, I will be diving into a deep discussion about how to really understand the notion of a function.

To this end, I will start by introducing its conventional use in continuous mathematics. Here, I will also be lingering upon some of the key technical characteristics and terms in relation to functions.

Then, I will proceed to expand the notion of a function to the world of discrete/discontinuous mathematics. Finally, I will try to generalise the concept as to how mathematics uses it today.

I’ve noticed that due to various technical and rhetorical reasons, young students are not exposed to the complete nature of functions. On the other hand, as students transform into advanced practitioners, they often get used to computational devices to handle ‘functions’ without having covered its entire domain (pun totally intended).

The aim of this essay is, then, to try and fill this gap. Without any further ado, let us begin.

This essay is supported by Generatebg

A product with a beautiful background featuring the sponsor: Generatebg - a service that generates high-resolution backgrounds in just one click. The description says "No more costly photographers" and displays a "Get Started" button beneath the description.

The Basics of a Function from Traditional Calculus

As far as Leibniz and co. were concerned, a function started as nothing but a relation between two variables. While we are on the topic of ‘variables’, there are a couple of points that might be of interest to you.

It is convention in mathematics to use letters from the end of the English alphabet (x, y, z, etc.) to refer to variables, whereas letters from the beginning of the English alphabet (a, b, c, etc.) are used to refer to constants.

For example, consider the equation equation of a line:

y = ax + b

Here, ‘x’ and ‘y’ are variables, whereas ‘a’ and ‘b’ are constants. This example also holds another subtle convention that is dear to ‘functions’.

You see, ‘x’ is often used to denote the independent variable, whereas ‘y’ is used to denote the dependent variable (whose value depends on x’s value). For instance, assuming the constants (a = 1) and (b = 2), the value of ‘y’ depends on the value of ‘x’ as follows:

y = f(1) = 1*(1) + 2 = 3

y = f(2) = 1*(2) + 2 = 4

y = f(3) = 1*(3) + 2 = 5

You might recognise the ‘f(x)’ from in the above expressions. This also comes from the convention that the dependent variable can be expressed as as a ‘function of’ the independent variable.

The above expressions are examples of an explicit function of x. Here is an example of an implicit function of x using the line equation:

y — ax — b = 0

You could easily arrive at the explicit form using algebraic manipulation.

More Basics and More Examples

Here is another example of a function:

y = x²

Here, let us assume that ‘y’ refers to the area of a square and ‘x’ refers to its side length. This function is also an example of a one-to-one function as the dependency of the variables goes both ways.

Calculus: How To Really Understand A Function — An illustration showing a pink square with side length ‘x’. The area of the square is shaded using black lines. The area of the square is defined as ‘y’.
Area of a square — illustration created by the author

However, when we keep the convention that ‘x’ refers to the independent variable and ‘y’ refers to the dependent variable, the reversed equation looks as follows:

y = √x

where y = side-length of the square and x = area of the square.

Note that functions need not necessarily have a one-to-one relationship. Consider a right-angled triangle with sides ‘x’ and ‘y’ (not necessarily equal), and hypotenuse ‘z’. Using the Pythagorean theorem, the hypotenuse could be calculated using the following equation:

z = f(x, y) = √(x² + y²)

Calculus: How To Really Understand A Function — An illustration showing a right-angled triangle with base ‘x’, height ‘y’, and hypotenuse ‘z’.
A right-angled triangle — illustration created by the author

Here, knowing the value of the sides ‘x’ and ‘y’, we can uniquely determine the hypotenuse ‘z’. However, knowing the value of ‘z’, we cannot uniquely determine ‘x’ and ‘y’.

Furthermore, note that the hypotenuse is also a function of two variables. Such a function is known as a two-variable function.

A function can have any number of independent variables. An example of a three-variable function would be the equation of the volume of a three-dimensional room given its length, width and height.

Similarly, an example of a four-variable function would be the equation of the volume of a four-dimensional hyper-room. And so on.


Visualising Functions on the Cartesian Plane

As the notion of a function evolved through history, mathematicians agreed at some point (relatively recently) that for any ‘relation’ to be considered a valid function, each possible value of the independent variable should uniquely lead to/map with one dependent variable value only.

To practically illustrate this important point, consider the function [y = f(x) = x²] plotted on the Cartesian plane. The two-dimensional Cartesian plane (named after its inventor René Descartes) consists of a horizontal x-axis, a vertical y-axis, and an origin (representing zero) where the axes meet.

Calculus: How To Really Understand A Function — A plot showing the curve of the function y=x², for x values ranging from -10 to +10, and y values ranging from -60 to +100. The curve however, appears to be a U-shaped parabola that touches the origin (0,0) at its lowest point. The x-axis is also referred to as the ‘domain’, and the y-axis is also referred to as the ‘range’.
A plot of the function y=x² — illustration created by the author

Note that each x-value is associated with a unique y-value as far as the function curve is concerned. Say that you draw a vertical line from any possible point on the x-axis. If that line cuts the plotted curve in more than one point, then the curve does not represent a function.

Here is an example of a curve that is not a function:

Calculus: How To Really Understand A Function — An illustrative plot showing a Cartesian plane with a circle in the right quadrant. A dotted vertical line drawn from the x-axis cuts this curve at two points (one lower point and one upper point). Consequently, this curve is not a function.
A curve that is not a function — illustration created by the author (plot not to scale)

Notice, however, that the same value of the dependent variable (y) may be mapped to the different x-values. But not the other way around. The following curve, for instance, represents a valid function.

Calculus: How To Really Understand A Function — An illustration showing a 2-dimensional cartesian x-y plane. There is a curve that is convex in upper-left quadrant and concave in the lower-right quadrant. It looks like a wave. Each x value corresponding to this curve is uniquely mapped to a single y-value only. Hence, it is a valid function.
A curve that is a valid function — illustration created by the author (plot not to scale)

Continuity, Domain, and Range

The Cartesian plane is useful to visualise continuous functions. The mathematics that deals with continuous functions is appropriately called continuous mathematics.

A high-school teacher might define a two-dimensional continuous function as follows:

“A two-dimensional function is continuous if you can plot its curve on a two-dimensional Cartesian plane using a pen/pencil without lifting your hand.”

This, of course, is not the strict mathematical definition for continuity. For the purposes of this essay, however, it suffices. I’ll cover the strict definition in a later essay if the need arises.

With the rise of function-analysis as a sub-field and visualisation on the Cartesian plane, mathematicians felt the need to generalise the definition of a function some more. Thus, the terms ‘Domain’ and ‘Range’ were born.

‘Domain’ refers to all possible values that the independent variable (x-axis) can take, whereas ‘Range’ refers to all possible values that the dependent variable (y-axis) can take. Either the domain or the range or both can be bound/unbound/intermittent.

That is, either of them can take infinite/finite sets as possible values. For most of the traditional calculus, these sets represent continuous intervals. There are more complex functions, for sure. But there is no need to dive into them for now.

So far, I have been covering the traditional view of functions that most students must be familiar with. Now, I depart from this perspective to a perspective of functions that does not get as much attention.


The Basics of a Function from Outside Calculus

Recall that a one-variable function represents a relation between an independent variable and a dependent variable such that each independent variable is uniquely mapped to a single dependent variable value only.

Here is an example of such a function from set theory:

Calculus: How To Really Understand A Function — An illustration showing two balloons. The balloon on the left is titled ‘Domain’. It contains the numbers 1, 2, 3, and 4. The balloon on the right is titled ‘Range’. It contans the numbers 5, 6, and 7. Arrows from left to right map 1 to 5, 2 to 6, 3 to 6, and 4 to 7.
A set theoretic function map — illustration created by the author

What is different about this ‘relation’ is that it is not defined by an equation (like we saw from the world of calculus). Instead, the rules are arbitrarily determined using the mapping arrows (commonly referred to as correspondence rules).

This is a stark departure from the relatively tame world we just came from. All of a sudden, the rules of a function can be arbitrary, as long as its fundamental structure is respected.

But the mathematicians are a greedy bunch. They did not stop there and wanted more!

The Generalised Notion of a Function

As far as the notion of a function is concerned, someone, somewhere, asked the following question:

“What if we generalise the notion of a function beyond just numbers?”

This led to a revolution in terms of what a function can be and cannot be. Naturally, such a revolution was not without disagreement.

Ultimately, though, the result was this: mathematicians generalised the definition of a function to the point that it is now treated pretty much as a black box that respects a function’s original structure.

Calculus: How To Really Understand A Function — An illustration showing a black box with “Function” written in pink on it. From the left, “input” flows into this black box, and towards the right, “output” flows out.
Function as a black box — illustration created by the author

In a conventional sense, a mother may have several children, but a child can have only one mother. In this way, mothers are a function of children. But grandmothers are not a function of grandchildren, because grandchildren can have more than one grandmother.

Similarly, the map locations of towns are a function of their geographic location on the Earth.

The logical jump from numbers to mothers, grandmothers, and towns might be subtle, but the mathematical jump is huge!

This notion of the generalised ‘black box’ function leads to numerous extremes that go beyond the scope of this essay.

For now, it suffices if the reader knows that the generalised notion of the function extends beyond just continuous mathematics and numbers and pushes the fringes of mathematics even today!


Reference and credit: Martin GardnerJ.J. O’Connor and E.F. Robertson.

If you’d like to get notified when interesting content gets published here, consider subscribing.

Further reading that might interest you:

If you would like to support me as an author, consider contributing on Patreon.

Street Science

Explore humanity's most curious questions!

Sign up to receive more of our awesome content in your inbox!

Select your update frequency:

We don’t spam! Read our privacy policy for more info.