Finding the Inverse of Constant Function

A constant function has the general form [latex]f\left( x \right) = {\color{red}a}[/latex] where [latex]\color{red}a[/latex] is a real number.

From the general formula, the output of a constant function regardless of its input value (usually denoted by [latex]x[/latex]), will always be the same which is the fixed number [latex]\color{red}a[/latex].


How to Find the Inverse of a Constant Function

Suppose we have a constant function [latex]f\left( x \right) = 2[/latex]. The graph of this function is just a horizontal line (parallel to the [latex]x[/latex]-axis) passing through the point [latex]\color{blue}(0, 2)[/latex].

the constant function f of x equals 2 or f(x)=2 is graphed on the xy-axis. the graph is a horizontal line wherein the y-intercept is at (0,2).

Now, we can find its inverse algebraically by doing the following steps:

  • Given:

[latex]f\left( x \right) = 2[/latex]

  • Replace [latex]f\left( x \right)[/latex] by [latex]y[/latex].

[latex]y = 2[/latex]

  • Swap the roles of [latex]x[/latex] and [latex]y[/latex] to get the inverse function:

[latex]x=2[/latex]

The graph of [latex]\color{red}x=2[/latex] is just a vertical line (parallel to the [latex]y[/latex]-axis) passing through the point [latex](2, 0)[/latex]. Here are the graphs of the original constant function and its inverse on the same [latex]XY[/latex]-axis,

the inverse of the constant function f(x)=2 or y =2 is the vertical line represented by the equation x=2 with an x-intercept of (2,0)

They are truly inverses of each other because they are symmetrical about the line [latex]\large{\color{green}y=x}[/latex]. Observe that their graphs are mirror images of each other along that line.

the graph of f(x) = 2 and x =2 are symmetrical along the line f(x)=x or y=x. therefore they are an inverse of each other. however, the inverse of the constant function f(x)=2 which is x=2 is not a function because it doesn't pass the vertical line test.

However, is the vertical line [latex]x=2[/latex] a function? The answer is NO. Since every vertical line would fail the vertical line test. If we draw a vertical line cutting through [latex]x=2[/latex] it will intersect at it more than once. In fact, they will overlap thus intersecting at an infinite number of points.

So in summary, the inverse of any constant function will always be a vertical line which is not a function. Therefore, every constant function has no inverse that is a function!


You may also be interested in these related math lessons or tutorials:

Inverse of a 2×2 Matrix

Inverse of Absolute Value Function

Inverse of Exponential Function

Inverse of Linear Function

Inverse of Logarithmic Function

Inverse of Quadratic Function

Inverse of Rational Function

Inverse of Square Root Function