# Defining "Well-Defined" Functions (Inverse of a Lin Transformation)

Proposition: Suppose V and W are vector spaces. If a linear map $T:V \to W$ is bijective then it is invertible.

Proof(with comments): We need to construct a linear map $S: W \to V$ such that $ST=I _V$ and $TS=I_W$.

Define a map $S:W\to V$ such that $$S(T(v))=v \;for \;all\; v\in V.$$ We check to make sure that this $S$ "makes sense". Suppose $w\in W$. Thus there is a $v\in V$ such that $T(v)=w$ since $T$ is surjective. Thus $S(w)=S(T(v))=v$. Therefore $S$ is defined on all $W$. To check that $S$ is well defined suppose $v,v' \in V$ such that $T(v)=T(v')$. We want to prove that $S(T(v))=v=v'=S(T(v'))$. Since $T$ is injective then $S(T(v))=v=v'=S(T(v'))$. Thus $S:W\to V$ is well defined("makes sense").

Now to prove that $S:W\to V$ is a linear map. First we prove additivity. Suppose $w_1,w_2 \in W$ thus there exists a $v_1,v_2 \in V$ such that $T(v_1)=w_1$ and $T(v_2)=w_2$. Thus using definition of $S$, $S(T(v_1))=v_1$ and $S(T(v_2))=v_2$. Thus $S(w_1)+S(w_2)=S(T(v_1))+S(T(v_2))=v_1+v_2$. Since T is a linear map then $T(v_1)+T(v_2)=T(v_1+v_2)=w_1+w_2$. Thus $S(T(v_1+v_2))=S(w_1+w_2)=v_1+v_2$.Thus $S(w_1+w_2)=S(w_1)+S(w_2)$.

To prove homogenity, suppose $w\in W$ and $a\in F(field)$. Thus there is a $v\in V$ such that $T(v)=w$. Thus $aT(v)=T(av)=aw$ since $T$ is a linear map. Thus $S(aw)=S(T(av))=av=aS(T(v))=aS(w)$. Therefore $S$ satisfies both additivity and homogenity so $S$ is a linear map.

To prove $S$ is the inverse of $T$, we need to show $ST=I_V$ and $TS=I_W$. Suppose $v\in V$ thus $ST(v)=S(T(v))=v=I_V(v)$ so $ST=I_V$. Now suppose $w\in W$ thus there is a $v\in V$ such that $T(v)=w$. Thus $TS(w)=T(S(w))=T(S(T(v)))=T(v)=w=I_W(w)$ thus $TS=I_W$ so $S$ is the inverse of $T$. $\square$

My questions:

1) Is the way I defined $S$ correct ? I defined $S$ as a function then checked to make sure it "makes sense(well defined on domain $W$)" ? Also I defined $S$ in terms of $v\in V$ not $w \in W$ ? I saw some authors do this for example: Define a function $f:R\to R$ by $f(a+b)=a/2+b/2$. Then the authors check that this function $f$ they defined "makes sense".

2) Is the way I defined $S$ mathematically acceptable by other mathematicians ?

3) Is the proof correct ?

• Did you solve this in the end? Commented Nov 2, 2015 at 13:55
• @AlecTeal I wrote everything that I did above, so above is my solution ? Sorry but I dont get what you mean ? Commented Nov 2, 2015 at 14:42

1. You checked enough properties to show that $S$ was well-defined (see final example below).
2. A function definition followed by a demonstration that it's well-defined is a style widely used by professional mathematicians. See, e.g. the comments in this blog post, where professional mathematicians discussing well-definedness do exactly this.
3. As far as I can tell your proof is correct.

What does well-definedness mean?

A function is defined in set-theory as a relation with a certain property which, back at the broad view, means one input value to the function gives one output value. Relations are an extremely useful concept to have in your toolkit, and essential terminology for any deeper work, but (as seen in the blog post comments above) many mathematicians neither think of nor write about functions at the set-theory level unless the context requires it.

At a higher level, when we write $f : X\rightarrow Y$, $f(\mathit{input}) = \mathit{output}$, then the function is well-defined if:

1. However we describe the $\mathit{input}$, it must be something that can give every possible value in $X$.
2. The $\mathit{output}$ is always in $Y$
3. If two $\mathit{input}$s gives the same $X$ value, in both cases the $\mathit{output}$ gives the same $Y$ value.

A lot of the time we don't need to check 1 and 3

We don't need to check 1 and 3 when we have a function defined by phrases like:

"Define $f: \mathbb R\to\mathbb R$, where for all $x\in\mathbb R$, $f(x)=\dots$"

where the RHS depends only on $x$, or phrases like:

"Define $f: \mathbb R\to\mathbb R$, where for all $x,y,z\in\mathbb R$, $f(x,y,z) = \dots$"

where the RHS depends only on $x,y,z$.

The parameters to $f$ range over their entire domains (all of $\mathbb R$ or $\mathbb R^3$), we don't need to check 1.

The form of $f$ means that for whatever particular values of $x$ (or $x,y,z$) we put into $f$, we only get one value coming out of the RHS expression, so we don't need to check 3.

Example: $\quad$ $f : \mathbb R \to \mathbb R$ with $f(x)=x^2-\pi$.

1. Nothing to check. This informal notation silently implies that $x$ ranges over the domain $\mathbb R$. Some authors write more explicitly: For all $x \in X, f(x) = x^2-\pi$.
2. When we read or write this, we should check that $x^2-\pi$ gives us a real number.
3. Nothing to check. Once we have a particular input value $x$, there's no choice about what the output value can be.

Here, there's no need to write anything about well-definedness (check 2 is too obvious).

Example: $\quad f : \mathbb R^2 \to \mathbb R~$ with $~f(x,x^2) = 3x~$ for all $~x\in\mathbb R$.

1. $f$ is not well-defined. We don't get the whole domain. E.g. no $x\in\mathbb R$ gives us $(x,x^2) = (0,-1)$.

Example:

I saw some authors do this for example: Define a function $f:R\to R$ by $f(a+b)=a/2+b/2$. Then the authors check that this function $f$ they defined "makes sense".

The definition is a little sloppy; the reader thinks "Where did $a$ and $b$ come from? $a+b$ has to be a real number, so I guess $a$ and $b$ are arbitrary real numbers". Let's assume so and apply our checks:

1. For any $r\in\mathbb R$ we can get $r=a+b$ by picking, e.g., $a=r$, $b=0$.
2. Since $a,b\in \mathbb R$, the output $a/2 + b/2$ is also in $R$.
3. Here our input $a+b$ depends on two variables, $a$ and $b$. Suppose we get the same input value in two different ways, i.e. $a_1+b_1 = a_2+b_2$. Then $f(a_1+b_1) = a_1/2+b_1/2 = \dfrac{a_1+b_1}2 = \dfrac{a_2+b_2}2 = a_2/2+b_2/2 = f(a_2+b_2)$.

If I was writing this myself, I'd probably express it as follows.

Define $f:R\to R~$ by $~f(a+b)=a/2+b/2~$ for all $a,b\in \mathbb R$. $~~f$ is well-defined since $a_1\!+\!b_1 = a_2\!+\!b_2~$ implies $~f(a_1+b_1) = a_1/2+b_1/2 = \dfrac{a_1+b_1}2 = \dfrac{a_2+b_2}2 = a_2/2+b_2/2 = f(a_2+b_2)$.

I've left out the quantifiers for $a_1,a_2,b_1,b_2$, assuming the that reader knows how to play the game of well-definedness, and that the reader can immediately see any real can be written as the sum of two reals.

Your example: $\quad$ Define a map $S:W\to V$ such that $S(T(v))=v \text{ for all } v\in V$.

1. As you noted, $T(v)$ gives us any $w\in W$ since $T$ is surjective.
2. The output, $v$, is obviously always in the codomain $V$.
3. As you noted, for $v, v' \in V$, if the inputs $T(v)$ and $T(v')$ are equal then (since $T$ is a bijection) $v=v'$, i.e. the outputs $v$ and $v'$ are the equal.