MatheramaMatherama
← Relations and Functions
Relations and Functions·Section 12·22 min read

Inverse of a Function

Inverse of a Function§

Consider a function f:A→Bf : A \to B, and we wish to define a new function g:B→Ag : B \to A that "undoes" the operation of ff. Specifically, if f(a)=bf(a) = b, then g(b)=ag(b) = a. Such a function gg is called the inverse of ff. Intuitively, gg reverses the mapping of ff, taking the outputs of ff and assigning them back to their corresponding inputs. However, constructing such a function gg is not always possible for all functions ff.

When Does the Inverse Exist?§

  1. Failure in Many-One Functions:

    Suppose ff is a many-one function, meaning f(a1)=f(a2)=bf(a_1) = f(a_2) = b for some a1,a2∈Aa_1, a_2 \in A. Then, to define g(b)g(b), we face a problem: should g(b)=a1g(b) = a_1 or g(b)=a2g(b) = a_2? A function cannot assign multiple outputs to the same input, so gg would fail to be a function in this case. gg would only be a relation from BB to AA, not a valid function.

  2. Failure in Into Functions:

    If ff is an into function, then some elements in BB have no preimages in AA. For example, if b∈Bb \in B has no a∈Aa \in A such that f(a)=bf(a) = b, then g(b)g(b) would have no value to assign, violating the definition of a function.

Thus, for gg to exist as a valid function, ff must satisfy two conditions:

  • ff must be one-to-one (injective) so that g(b)g(b) is well-defined (no ambiguity in assigning preimages).
  • ff must be onto (surjective) so that every b∈Bb \in B has a corresponding a∈Aa \in A.

If ff satisfies these two properties, then ff is said to be bijective, and we call ff invertible.

Definition of the Inverse§

Formally, the inverse of f:A→Bf : A \to B, denoted by f−1f^{-1}, is defined as:

f−1={(b,a)∈B×A:f(a)=b}.f^{-1} = \{(b, a) \in B \times A : f(a) = b\}.

If ff is bijective, then f−1f^{-1} is a function from B→AB \to A. For each b∈Bb \in B, f−1(b)f^{-1}(b) gives the unique a∈Aa \in A such that f(a)=bf(a) = b.

We can also define inverse like this:

Let f:A→Bf : A \to B be a function, where AA is the domain and BB is the codomain of ff. The function ff is said to be invertible if there exists a function g:B→Ag : B \to A such that:

  1. g(f(x))=xg(f(x)) = x, for all x∈Ax \in A, and
  2. f(g(y))=yf(g(y)) = y, for all y∈By \in B.

If such a function gg exists, it is called the inverse of ff and is denoted by f−1:B→Af^{-1} : B \to A.

Furthermore, if ff is invertible, then the inverse f−1f^{-1} is unique, meaning there is exactly one function gg satisfying the above properties.

Finding inverse§

  1. If ff is given as a set of ordered pairs:

    The inverse is obtained by interchanging the components of each ordered pair, which corresponds to interchanging the input and output of the function. Specifically, for each ordered pair (a,b)(a, b) in ff, the inverse f−1f^{-1} will contain the pair (b,a)(b, a). This highlights the fact that the inverse "reverses" the roles of inputs and outputs.

    Let:

    f={(1,2),(2,3),(3,4)}.f = \{(1, 2), (2, 3), (3, 4)\}.

    Here, the input-output relationship of ff is:

    • f(1)=2f(1) = 2,
    • f(2)=3f(2) = 3,
    • f(3)=4f(3) = 4.

    To find the inverse f−1f^{-1}, we reverse these relationships, swapping inputs and outputs. Thus:

    f−1={(2,1),(3,2),(4,3)}.f^{-1} = \{(2, 1), (3, 2), (4, 3)\}.

    This means:

    • f−1(2)=1f^{-1}(2) = 1,
    • f−1(3)=2f^{-1}(3) = 2,
    • f−1(4)=3f^{-1}(4) = 3.

    The inverse reflects the concept of interchanging input and output values.

    1. If ff is defined by a formula:

    To find the inverse, we interchange xx and yy in the formula y=f(x)y = f(x). This step corresponds to interchanging the input (xx) and output (yy) of the function. After interchanging, we solve for yy in terms of xx, which gives the formula for the inverse function.

    Let f(x)=2x+3f(x) = 2x + 3. Here, the input-output relationship is defined as:

    • For an input xx, the output is f(x)=2x+3f(x) = 2x + 3.

    To find the inverse f−1(x)f^{-1}(x), we follow these steps:

    1. Replace f(x)f(x) with yy for clarity:
    y=2x+3.y = 2x + 3.
    1. Interchange xx and yy to reflect the reversal of inputs and outputs:
    x=2y+3.x = 2y + 3.
    1. Solve for yy in terms of xx:
    2y=x−3  ⟹  y=x−32.2y = x - 3 \implies y = \frac{x - 3}{2}.

    Thus, the inverse function is:

    f−1(x)=x−32.f^{-1}(x) = \frac{x - 3}{2}.

    This means:

    • If the output of ff is xx, the corresponding input is given by f−1(x)f^{-1}(x).

Inverse of a Quadratic Function§

Let f:X→Yf : X \to Y such that f(x)=ax2+bx+cf(x) = ax^2 + bx + c, where a>0a > 0.

The graph of the quadratic function is a parabola. The vertex of the parabola is

(−b2a,−Δ4a),\left( -\frac{b}{2a}, -\frac{\Delta}{4a} \right),

where Δ=b2−4ac\Delta = b^2 - 4ac, and its axis is x=−b2ax = -\frac{b}{2a}. If the domain of ff, i.e., XX, lies in the region left to the axis (or the region right to the axis), then ff is one-to-one, and the codomain YY is equal to the range.

Conversion of f(x)f(x) into Vertex-Centric Form

Given y=ax2+bx+cy = ax^2 + bx + c, start by rewriting yy in a simplified form:

y=a(x2+bax+ca).y = a\left(x^2 + \frac{b}{a}x + \frac{c}{a}\right).

Complete the square inside the parentheses:

y=a(x2+2(b2a)x+(b2a)2−(b2a)2+ca).y = a\left(x^2 + 2\left(\frac{b}{2a}\right)x + \left(\frac{b}{2a}\right)^2 - \left(\frac{b}{2a}\right)^2 + \frac{c}{a}\right).

This simplifies to:

y=a[(x+b2a)2−b24a2+ca].y = a\left[\left(x + \frac{b}{2a}\right)^2 - \frac{b^2}{4a^2} + \frac{c}{a}\right].

Now simplify the constant terms:

y=a(x+b2a)2−a(Δ4a2),y = a\left(x + \frac{b}{2a}\right)^2 - a\left(\frac{\Delta}{4a^2}\right),

where Δ=b2−4ac\Delta = b^2 - 4ac.

Thus:

y=a(x+b2a)2−Δ4a.y = a\left(x + \frac{b}{2a}\right)^2 - \frac{\Delta}{4a}.

Solving for xx

Rearrange the equation to isolate (x+b2a)2\left(x + \frac{b}{2a}\right)^2:

y+Δ4a=a(x+b2a)2.y + \frac{\Delta}{4a} = a\left(x + \frac{b}{2a}\right)^2.

Divide through by aa:

ya+Δ4a2=(x+b2a)2.\frac{y}{a} + \frac{\Delta}{4a^2} = \left(x + \frac{b}{2a}\right)^2.

Take the square root on both sides:

x+b2a=±ya+Δ4a2.x + \frac{b}{2a} = \pm \sqrt{\frac{y}{a} + \frac{\Delta}{4a^2}}.

Finally:

x=−b2a±ya+Δ4a2.x = -\frac{b}{2a} \pm \sqrt{\frac{y}{a} + \frac{\Delta}{4a^2}}.

Ambiguity of the Sign

The ±\pm introduces an ambiguity: which sign to choose? Both signs cannot simultaneously apply, as this would violate the definition of a function (since a function maps one input to exactly one output). Thus, the choice of the sign depends on the domain of f(x)f(x):

  1. Domain Left of the Axis:

    If XX lies to the left of the axis x=−b2ax = -\frac{b}{2a}, choose the negative sign (−-):

    x+b2a=−ya+Δ4a2.x + \frac{b}{2a} = -\sqrt{\frac{y}{a} + \frac{\Delta}{4a^2}}.

    Rearranging:

    x=−b2a−ya+Δ4a2.x = -\frac{b}{2a} - \sqrt{\frac{y}{a} + \frac{\Delta}{4a^2}}.

    Thus:

    f−1(x)=−b2a−xa+Δ4a2.f^{-1}(x) = -\frac{b}{2a} - \sqrt{\frac{x}{a} + \frac{\Delta}{4a^2}}.

    domain on the left side

  2. Domain Right of the Axis:

    If XX lies to the right of the axis x=−b2ax = -\frac{b}{2a}, choose the positive sign (++):

    x+b2a=ya+Δ4a2.x + \frac{b}{2a} = \sqrt{\frac{y}{a} + \frac{\Delta}{4a^2}}.

    Rearranging:

    x=−b2a+ya+Δ4a2.x = -\frac{b}{2a} + \sqrt{\frac{y}{a} + \frac{\Delta}{4a^2}}.

    Thus:

    f−1(x)=−b2a+xa+Δ4a2.f^{-1}(x) = -\frac{b}{2a} + \sqrt{\frac{x}{a} + \frac{\Delta}{4a^2}}.

    domain on the right side

The ambiguity of the ±\pm sign while calculating the inverse occurs because f(x)f(x) is not one-to-one over its entire domain. By restricting the domain to either the left or the right branch of the parabola, f(x)f(x) becomes one-to-one, and the corresponding branch of the inverse function is well-defined. This highlights that the inverse function exists only on specific branches of the domain.

Non-Elementary Inverses§

In mathematics, it is not always possible to express the inverse of a function in terms of elementary functions (i.e., functions involving polynomials, rational expressions, exponentials, logarithms, trigonometric functions, and their combinations).

For example, consider the function f(x)=x+sin⁡xf(x) = x + \sin x, where x∈Rx \in \mathbb{R}. This function is well-behaved—it is bijective, that can be easily shown. However, the inverse of f(x)f(x) cannot be expressed in terms of elementary functions.

Formal Representation of the Inverse

Let y=f(x)=x+sin⁡xy = f(x) = x + \sin x. To find the inverse, we must solve for xx in terms of yy, i.e., solve the equation:

y=x+sin⁡x.y = x + \sin x.

Rewriting:

x=y−sin⁡x.x = y - \sin x.

This equation involves the transcendental function sin⁡x\sin x, and there is no algebraic or elementary manipulation that allows us to isolate xx explicitly in terms of yy. Thus, while f(x)f(x) is invertible, its inverse function cannot be written explicitly using elementary functions.

Implicit Definition of the Inverse

Although the inverse cannot be expressed explicitly, it can be implicitly defined. For any x∈Rx \in \mathbb{R}, the value of y=f−1(x)y = f^{-1}(x) satisfies:

x=y+sin⁡y.x = y + \sin y.

This defines f−1(x)f^{-1}(x) implicitly as the unique value of yy such that the equation holds. The uniqueness is guaranteed because f(x)=x+sin⁡xf(x) = x + \sin x is strictly increasing, ensuring that each x∈Rx \in \mathbb{R} corresponds to a single yy.

Properties of Inverse Functions§

Let ff be a bijective function, and let f−1f^{-1} denote its inverse. The following are detailed and rigorous properties of inverse functions:

Property I: (f−1)−1=f(f^{-1})^{-1} = f

Let f:A→Bf : A \to B be a bijective function, and let f−1:B→Af^{-1} : B \to A be its inverse. We aim to prove that the inverse of f−1f^{-1} is ff, i.e.,

(f−1)−1=f.(f^{-1})^{-1} = f.

Property II:

Let f:A→Bf : A \to B and g:B→Cg : B \to C be two functions. If ff is invertible and gg is invertible, then the composition g∘f:A→Cg \circ f : A \to C is also invertible. Furthermore, the inverse of g∘fg \circ f is given by:

(g∘f)−1=f−1∘g−1.(g \circ f)^{-1} = f^{-1} \circ g^{-1}.

Graphical Relationship between a Function and its inverse§

Consider a point (a,b)(a, b) in the Cartesian plane. Its reflection in the line y=xy = x can be obtained using the formula for the image of a point in a line. Using the concepts of coordinate geometry, the image of (a,b)(a, b) in y=xy = x is found by interchanging the coordinates. Therefore, the reflection of (a,b)(a, b) in y=xy = x is (b,a)(b, a).

Now, consider a function y=f(x)y = f(x). By definition of the inverse function, we have:

x=f−1(y).x = f^{-1}(y).

This means the point (x,y)(x, y) lies on the graph of ff, and the point (y,x)(y, x) lies on the graph of f−1f^{-1}.

Clearly, the point (y,x)(y, x) is the reflection of (x,y)(x, y) across the line y=xy = x. Since this relationship holds for every (x,y)(x, y) on the graph of ff, it follows that every point on the graph of ff has a corresponding image on the graph of f−1f^{-1}, reflected across y=xy = x.

Thus, the graphs of ff and f−1f^{-1} are symmetric about the line y=xy = x. The reflection property ensures that for every (a,b)(a, b) on ff, the corresponding point (b,a)(b, a) lies on f−1f^{-1}. This symmetry is fundamental to understanding the relationship between a function and its inverse.

Intersection of ff and f−1f^{-1} Based on Their increasing and decreasing Behavior§

For ff to be invertible, it must be one-one (injective). A one-one function implies that ff must be either always increasing (strictly increasing) or always decreasing (strictly decreasing).

If ff is strictly increasing and ff intersects its inverse f−1f^{-1}, the points of intersection will always lie on the line y=xy = x.

  • For strictly increasing functions, f(x)=f−1(x)f(x) = f^{-1}(x) implies f(x)=xf(x) = x.
  • This happens because, geometrically, ff and f−1f^{-1} are reflections of each other across the line y=xy = x. Thus, any intersection point must satisfy x=yx = y, lying exactly on y=xy = x.

Example:

For f(x)=x3f(x) = x^3, which is strictly increasing, its inverse f−1(x)=x3f^{-1}(x) = \sqrt[3]{x} intersects at points satisfying x3=xx^3 = x. Solving this gives intersection points at x=−1,0,1x = -1, 0, 1, all of which lie on y=xy = x.

But, if ff is strictly decreasing and intersects its inverse f−1f^{-1}, the points of intersection may not lie on the line y=xy = x.

alt text

  • For strictly decreasing functions, f(x)=f−1(x)f(x) = f^{-1}(x) no longer guarantees that x=yx = y. This is because the reflection property across y=xy = x does not align with the behavior of a decreasing function.

Example:

For f(x)=−x3f(x) = -x^3, a strictly decreasing function, its inverse f−1(x)=−x3f^{-1}(x) = -\sqrt[3]{x} intersects at points satisfying −x3=−x-x^3 = -x, or x3=xx^3 = x. Solving this gives x=−1,0,1x = -1, 0, 1. However, while x=0x = 0 lies on y=xy = x, the other intersections may not align with this line due to the decreasing nature of ff.

alt text

Therefore, for strictly increasing functions, the intersection points of ff and f−1f^{-1} always lie on y=xy = x. For strictly decreasing functions, the intersection points may or may not lie on y=xy = x, depending on the specific function.

Section 12 of 18 · Relations and Functions

Mark this section complete when you have worked through its proofs.