**“Inverse” of Constant Function **

From the general formula, the output of a constant function regardless of its input value (usually denoted by x), will always be the same which is the fix number “a”.

Suppose we have a constant function ** f (x) = 2**. The graph of this function is just a horizontal line (parallel to x-axis) passing through the point (

**0, 2**).

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

- Given:

** f (x) = 2**

- Replace
*f*(*x*) by*y:*

*y *= 2

- Swap the roles of
*x*and*y*to get the inverse function:

*x* = 2

The graph of *x* = 2 is just a vertical line (parallel to y-axis) passing through the point (**2, 0**). Here are the graphs of the original constant function and its inverse on the same xy-axis,

They are truly inverses of each other because they are symmetrical about the line *y *=* x*. Observe that their graphs are mirror images of each other along that line.

However, is the vertical line *x* = 2 a function? The answer is NO. Since every vertical line would fail the vertical line test. If we draw a vertical line cutting through *x* = 2 it will intersect at it more than once. In fact, they will overlap thus intersecting at 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 function**!