PrepShorts · Study sheet · Class 12 Mathematics · Chapter 1, Relations and FunctionsPrepShorts

Chapter 1 · Relations and Functions

Invertibility as a two-sided undo, and why bijective is exactly the condition

Composing and undoing20 min

This video could not be loaded. Reload the page to try again.

Sign in with Google

20 min.

Undoing a function is two equations, not one, and each of them buys exactly one property. Doubling on the counting numbers has a genuine undo on the input side - 40 inputs tried, 0 failures - and fails the output side at 20 of 40 targets. A folding function does the mirror image. Neither is invertible, and neither is a paradox.

The idea

Definition 9 asks for two equations, not one, and the two are doing different jobs: undoing the function on the input side forces it to be one-one, and undoing it on the output side forces it to be onto. So "one-one and onto" is not a lucky test that happens to detect invertibility — it is the two halves of the definition read separately, which is why a function can be proved invertible without anyone ever writing its inverse down, and why a function can have a one-sided undo and still fail to be invertible.

What you should be able to do

  • State Definition 9, naming both equations and which set each identity function lives on
  • Explain why the input-side equation forces the function to be one-one, and the output-side equation forces it to be onto
  • Construct the inverse of a bijection target by target, and say why the construction defines a function
  • Prove a function invertible by proving it one-one and onto, without producing the inverse
  • Produce the inverse of a stated function and verify both equations
  • Give a function with a one-sided undo that is not invertible, and say which equation fails
  • Explain why a co-domain declared to be the range makes the output-side equation attainable
  • Recognise a function that is its own inverse, and read the inverse notation correctly

Words to know

TermDefinition in one lineFirst introduced
invertiblesaid of a function for which some second function undoes it on both sidesprinted in this chapter (Definition 9, §1.4, Part I p. 12)
inversethe second function, when it exists, written with the superscript minus oneprinted in this chapter (Definition 9, §1.4, Part I p. 12)
identity functionthe function returning each input unchanged, written with the set's letter as a subscriptprinted in this chapter (Miscellaneous Example 25, Part I p. 14)
bijectiveone-one and onto at once, the condition the chapter equates with invertibilityprinted in this chapter (Definition 7, §1.3, Part I p. 8)
composition of functionsapplying one function to another's output, the operation both equations are written inprinted in this chapter (§1.4 heading and Definition 8, Part I p. 12)
left inversea function undoing the original on the input side onlyan added term, not printed in this chapter
right inversea function undoing the original on the output side onlyan added term, not printed in this chapter
involutiona function that is its own inversean added term, not printed in this chapter

Where people slip up

  • "One equation is enough; the other follows." It does not. The doubling function on the naturals satisfies the input-side equation with a suitable g and fails the output-side one; the folding function does the reverse. Both are in this chapter, one page apart, and neither is invertible.
  • "Invertible means you can rearrange the formula for x." Rearranging works when it works, and it is not the definition. Example 17's rearrangement produces a formula that is not even defined on all of N; the declared co-domain is what rescues it. The definition is about two composites equalling two identities, and a formula is only evidence.
  • "The superscript minus one means one divided by the function." It does not. For the reciprocal function on the non-zero reals the two happen to agree, which is exactly the coincidence that entrenches the error. For the function sending x to 3 – 4x, the inverse sends y to the quotient of 3 – y by 4, and one divided by the function is a different thing entirely.
  • "You have to find the inverse to prove a function invertible." The chapter says the opposite in the sentence right after Definition 9: proving one-one and onto is enough. That is the practical payoff of the whole topic.
  • "Proving one-one and onto is easier than finding the inverse, so it is a shortcut." It is not a shortcut past anything; it is the same content differently arranged. The backward proof of section 6 constructs the inverse from the two properties, so nothing is skipped — you simply never write the formula.
  • "If a function has an undo on paper, it is invertible." Ask which side the undo works on. The two worked one-sided constructions above are the diagnostic.
  • "The two identity functions in Definition 9 are the same function." They live on different sets. When the two sets differ, as in Example 17, the two identities are visibly different objects.
Transcript2,738 words

Everybody has an idea of what undoing a function ought to mean. You put something in, something comes out, and a second machine takes that output and hands you back what you started with. That intuition is right, and it is also exactly half of the definition. The definition asks for two equations, not one. Take a function from a set X to a set Y. It is called invertible when there is some function going the other way, from Y back to X, such that two things hold at once.

Run the original first and then the second one, and you get back every element of X unchanged. Run the second one first and then the original, and you get back every element of Y unchanged. Two composites. Two orders. And two different identity functions — one living on X, the other living on Y. Those two identities are not the same object. When X and Y are different sets, they are visibly different things, and the whole topic turns on keeping them apart.

When that second function exists, it is called the inverse, and it is written with a superscript minus one. So here is the shape of what follows. The first equation and the second equation are independent demands, they buy you different things, and there are perfectly ordinary functions that satisfy one and fail the other. Which is why one-one and onto is not a lucky test that happens to detect invertibility. It is the two halves of the definition, read separately.

Take the first equation on its own and ask what it is really demanding. It says: start anywhere in X, push forward through the function, then pull back through the undo, and land on the element you started at. Every input must be recoverable from its own output. Think about what that rules out. Suppose two different inputs had the same output. Push both forward: they arrive at the same place. Now pull back.

The undo is a function, so it gives one answer for that place. One answer cannot be two different inputs. So the first equation cannot hold if any two inputs collide. It forces the function to be one-one. Notice how little that argument used. It never mentioned the target set. It never asked whether anything was reached. It looked only at the input side. And that is the first half of the definition earning exactly one of the two properties, and no more.

Now the second equation, and it is a genuinely different demand. It says: start anywhere in the declared target Y, pull back through the undo, then push forward through the function, and land on the element of Y you started at. Read that as a construction rather than a check. Given any target y, the undo hands you an element of X. Call it g of y. The equation says the function sends that element to y.

So g of y is an input that reaches y. Every target has one. That is exactly what onto means, and we have just built the witness rather than searched for it. Again, notice what the argument did not use. It never compared two inputs. It never asked about collisions. It looked only at the declared target. So the second half of the definition earns the other property, and no more.

One equation for each demand. That is the whole architecture, and everything else in this video is consequences of it. Here is the claim we are working towards, in both directions. A function is invertible exactly when it is one-one and onto. If it is invertible, then it is one-one and it is onto — and we have just seen both, one from each equation. If it is one-one and onto, then it is invertible — and that direction we have not seen yet, because it asks us to produce an undo out of nothing but those two properties.

That second direction is the one with real content, and it is also the one that pays. It is what lets you prove a function invertible without ever writing its inverse down. So we are going to prove it, rather than assert it. And it is worth saying plainly that this is being supplied. The statement is standard and the argument is short, but a claim of the form 'exactly when' is two proofs, and skipping one of them is how people end up believing that finding a formula is what invertibility means.

Let us put the forward direction on the board properly, because the shape of it matters more than the conclusion. Assume some undo exists that satisfies both equations. First equation. Suppose two inputs, call them a and b, have the same output. Apply the undo to both sides of that equality. The left side collapses to a. The right side collapses to b. So a equals b, and there was never a collision at all.

One-one, from the first equation alone. Second equation. Take any element y of the declared target. The element g of y sits in X, and the function sends it to y. So y is reached. Onto, from the second equation alone. Two paragraphs, two properties, and neither paragraph borrowed anything from the other. That independence is not a stylistic point. It is the reason a function can have one equation and not the other, which is where we are going in a moment.

Now the other direction, which builds the undo instead of assuming it. Assume the function is one-one and onto. We want to define a function from Y back to X. Take a target y. What should the undo send it to? Obviously: to an input that lands on y. So the question is whether there is exactly one such input. Onto says there is at least one, because every target is reached.

One-one says there is at most one, because two different inputs could not both land on y. At least one and at most one is exactly one. So the rule is well-defined, and a rule that gives exactly one answer for each input is a function. Look at where the two properties were spent. Onto bought existence. One-one bought uniqueness. A rule needs both before it is a function at all, and neither could have done the other's job.

And the two equations hold by construction. Push an input forward and pull it back and you return to it, because it was the unique input landing there. Pull a target back and push it forward and you return to it, because that is what the rule was built to do. This is what a computer does when you ask it to build an inverse. It walks the declared target, collects the inputs landing on each element, and reports two separate failure counts: how many targets had none, and how many had more than one.

For the function we will meet in a moment, twelve targets, none with nothing landing on them, none with more than one thing landing on them. Both counts nought, so the inverse exists. Those two counts are onto and one-one, measured rather than asserted. Now the case that makes all this concrete, and it is the sharpest thing in the topic. A function can have an undo that works on one side and not the other, and it is not invertible.

Take doubling on the counting numbers. On a window of forty inputs and forty declared targets, it has no collisions and leaves twenty targets unreached — every odd one. One-one, not onto. So by the claim it should not be invertible. Let us see the definition catch it. Here is a candidate undo. Halve every even number. And send every odd number to one, because it has to go somewhere.

Now check the first equation. Take any input, double it, halve it. You are back where you started, every time. Forty inputs tried, nought failures. The first equation holds completely. So this really is an undo. It is not a broken one. It recovers every input. Now the second equation. Take the target one. The undo sends it to one, because one is odd. Then double: you get two. Two is not one. The second equation fails at the very first target.

Across the window: forty targets tried, twenty failures, the smallest being one. So the reading for this pair is nought failures on the input side and twenty on the output side. And the builder agrees from its own direction: forty targets, twenty with nothing landing on them, none with more than one. This function has a genuine one-sided undo and is not invertible. The two equations are not two ways of saying the same thing.

Now the mirror image, because a matched pair is much more convincing than one example. Take the folding function. It sends one to one, it sends two to one as well, and it sends everything above two to one less than itself. Read over forty-one inputs against a declared target of forty, it has one collision — the pair one and two — and nothing unreached. Onto, not one-one. The other half.

Here is a candidate undo for it: send one to one, and send every target from two upwards to one more than itself. Check the second equation first this time. Take any target y. If y is at least two, the undo hands you y plus one, which is above two, and the fold sends it back down to y. And the target one comes back to one. Forty targets tried, nought failures.

So the second equation holds completely, which is the equation doubling failed. Now the first equation. Take the input two. The fold sends it to one. The undo sends one back to one. One is not two. Forty-one inputs tried, one failure, and it is at the input two. Put the two side by side. Doubling: nought failures on the input side, twenty on the output side. The fold: one failure on the input side, nought on the output side.

One function with each half of the definition, and neither of them invertible. The builder catches the fold from its own side too: forty targets, none unreached, but one target with more than one input landing on it. And it refuses to hand back a function on the strength of that alone. So if the output-side equation is what fails so often, there is an obvious question. Can you arrange for it not to?

Yes, and it is done constantly, usually without comment. Take the function sending x to four x plus three, on the counting numbers. Declare the target to be all the counting numbers, and over the first twelve inputs against fifty-one declared targets you get no collisions and thirty-nine targets unreached. The builder refuses. Fifty-one targets, thirty-nine with nothing landing on them. Now change nothing about the rule and declare the target to be exactly the numbers of the form four x plus three: seven, eleven, fifteen, and so on up to fifty-one for our twelve inputs.

Same rule. Every one of the twelve inputs goes to exactly the same place as before. But now: no collisions, nothing unreached. Twelve targets, none empty, none doubled. The builder hands back a function. And the stated formula for that inverse — take three away and divide by four — passes both equations. Twelve inputs returned, twelve targets returned, nought failures either side. Notice that the declared target is doing real work here, and not decoration. Take three away from an arbitrary counting number and divide by four and you will usually not get a counting number at all.

The formula for the inverse is not a function on the whole of the counting numbers. It is a function on the set that was declared, and that is why the declaration had to be trimmed. This is the general move: a co-domain declared to be exactly the range makes the output-side equation attainable, by construction. It is not cheating, but it is worth seeing done, because a function handed to you as invertible has usually had this done to it already.

Now the payoff, which is the practical reason any of this matters. To prove a function invertible you do not have to produce its inverse. You prove it is one-one and you prove it is onto, and you are finished. That is not a shortcut past anything. The construction we did earlier turns those two properties into the inverse, so nothing has been skipped. You simply never write the formula.

Here is one worth doing. Take the quotient of x minus two by x minus three, with three removed from the source and one removed from the target. Read over a stand-in of forty points: no collisions, nothing unreached. So it is invertible, and we are done. No formula was written. The builder confirms it from the other side: forty targets, none empty, none doubled, and it hands back a function.

And if you do want the formula, it is the quotient of three y minus two by y minus one, and it passes both equations — forty inputs returned, forty targets returned, nought failures either way. But that was optional. Notice also why one had to be removed from the target. Set the quotient equal to one and you need x minus two to equal x minus three, which nothing satisfies. Across the forty points, the number of inputs landing on one is nought.

So one is a target that could never be reached, and leaving it declared would have broken the output-side equation for no good reason. Here is a second one, for the same treatment. Send x to x divided by one plus the size of x. On a stand-in of forty-one points: no collisions, nothing unreached, and the largest size any output reaches is ten elevenths — comfortably inside one, which is why the declared target is the numbers strictly between minus one and one.

Its inverse sends y to y divided by one minus the size of y, and it passes both equations. But again, one-one and onto had already settled it. Two last things, and the first is the easiest inverse there is. Some functions are their own inverse. Take the function that sends every odd number to one more than itself and every even number to one less. One to two, two to one, three to four, four to three, five to six, six to five.

It has no collisions and leaves nothing unreached, so it is invertible. And run it twice: an odd number rises to the even one above it and comes straight back down. Both equations hold with the function itself as the undo. Forty inputs returned, forty targets returned, nought failures either side. So the inverse is the function itself. The reciprocal does the same thing. On a set closed under inversion — forty-two points here — it has no collisions and nothing unreached, and the reciprocal of the reciprocal is what you started with. Nought failures on both equations.

Which brings us to the last thing, and it is a notation trap that the reciprocal is directly responsible for. The superscript minus one does not mean one divided by the function. For the reciprocal those two happen to be the same thing, and that coincidence is exactly what entrenches the mistake. So take a function where they are not. Send x to three minus four x. On a grid of forty-one points it has no collisions and nothing unreached, and its inverse sends y to three minus y, over four — which passes both equations.

Now evaluate both things at the input nought. The inverse gives three quarters. One divided by the function gives one third. Three quarters against one third. Different numbers, and in fact across the whole grid the two never agree anywhere at all. The superscript is a name for the undo. It is not an exponent, and it is not a division. And that is the topic. Two equations, not one. Each buys exactly one property. Together they build the inverse, which is why proving one-one and onto is the whole job, and why a function with an undo on one side only is a real thing and not a paradox.

Where this fits

Taken from the notes each video was made from, not from the reading order — these are the ideas this one rests on and the ones that later rest on it.

Builds on

Either side of this one

The book

Open in a new tab