Inverse Functions: Index

I’m doing something that I should have done a long time ago: collect past series of posts into a single, easy-to-reference post. The following posts formed my series on the different definitions on inverse functions that appear in Precalculus and Calculus.

Square Roots, nth Roots, and Rational Exponents

Part 1: Simplifying \sqrt{x^2}

Part 2: The difference between \sqrt{t} and solving x^2 = t

Part 3: Definition of an inverse function and the horizontal line test

Part 4: Why extraneous solutions may occur when solving algebra problems involving a square root

Part 5: Defining \sqrt{x}

Part 6: Consequences of the definition of \sqrt{x}: simplifying \sqrt{x^2}

Part 7: Defining \sqrt[n]{x} if n is odd or even

Part 8: Rational exponents if the denominator of the exponent is odd or even

Arcsine

Part 9: There are infinitely many solutions to \sin x = 0.8

Part 10: Defining arcsine with domain [-\pi/2,\pi/2]

Part 11: Pedagogical thoughts on teaching arcsine.

Part 12: Solving SSA triangles: impossible case

Part 13: Solving SSA triangles: one way of getting a unique solution

Part 14: Solving SSA triangles: another way of getting a unique solution

Part 15: Solving SSA triangles: continuation of Part 14

Part 16: Solving SSA triangles: ambiguous case of two solutions

Part 17: Summary of rules for solving SSA triangles

Arccosine

Part 18: Definition for arccosine with domain [0,\pi]

Part 19: The Law of Cosines and solving SSS triangles

Part 20: Identifying impossible triangles with the Law of Cosines

Part 21: The Law of Cosines provides an unambiguous angle, unlike the Law of Sines

Part 22: Finding the angle between two vectors

Part 23: A proof for why the formula in Part 22 works

Arctangent

 

Part 18: Definition for arctangent with domain (-\pi/2,\pi/2)

Part 24: Finding the angle between two lines

Part 25: A proof for why the formula in Part 24 works.

Arcsecant

Part 26: Defining arcsecant using [0,\pi/2) \cup (\pi/2,\pi]

Part 27: Issues that arise in calculus using the domain [0,\pi/2) \cup (\pi/2,\pi]

Part 28: More issues that arise in calculus using the domain [0,\pi/2) \cup (\pi/2,\pi]

Part 29: Defining arcsecant using [0,\pi/2) \cup [pi,3\pi/2)

Logarithm

Part 30: Logarithms and complex numbers

 

 

 

Square roots and Logarithms Without a Calculator: Index

I’m using the Twelve Days of Christmas (and perhaps a few extra days besides) to do something that I should have done a long time ago: collect past series of posts into a single, easy-to-reference post. The following posts formed my series on computing square roots and logarithms without a calculator.

Part 1: Method #1: Trial and error.

Part 2: Method #2: An algorithm comparable to long division.

Part 3: Method #3: Introduction to logarithmic tables. At the time of this writing, this is the most viewed page on my blog.

Part 4: Finding antilogarithms with a table.

Part 5: Pedagogical and historical thoughts on log tables.

Part 6: Computation of square roots using a log table.

Part 7: Method #4: Slide rules

Part 8: Method #5: By hand, using a couple of known logarithms base 10, the change of base formula, and the Taylor approximation ln(1+x) \approx x.

Part 9: An in-class activity for getting students comfortable with logarithms when seen for the first time.

Part 10: Method #6: Mentally… anecdotes from Nobel Prize-winning physicist Richard P. Feynman and me.

Part 11: Method #7: Newton’s Method.

 

 

 

A Curious Square Root: Index

I’m using the Twelve Days of Christmas (and perhaps a few extra days besides) to do something that I should have done a long time ago: collect past series of posts into a single, easy-to-reference post. The following posts formed my series on expressions containing nested square roots that nevertheless can be simplified.

Part 1: Simplifying \sqrt{5 - \sqrt{6} + \sqrt{22+8\sqrt{6}}}.

Part 2: DIfferent ways of calculating \sin 15^\circ.

 

 

 

 

Inverse Functions: Rational Exponents (Part 8)

In this series of posts, we have seen that the definition of \sqrt[n]{x} and saw that the definition was a little different depending if n is even or odd:

  1. If n is even, then y = \sqrt[n]{x} means that x = y^n and y \ge 0. In particular, this is impossible (for real y) if x < 0.
  2. If n is odd, then y = \sqrt[n]{x} means that x = y^n. There is no need to give a caveat on the possible values of y.

Let’s now consider the definition of x^{m/n}, where m and n are positive integers greater than 1. Ideally, we’d like to simply defined

x^{m/n} = \left[ x^{1/n} \right]^m

This definition reduces to previous work (like a good MIT freshman), using prior definition for raising to powers that are either integers or reciprocals of integers. Indeed, if x \ge 0, there is absolutely no ambiguity about this definition.

Unfortunately, if x < 0, then a little more care is required. There are four possible cases.

Case 1. m and n are odd. In this case, there is no ambiguity if x < 0 is negative. For example,

(-32)^{3/5} = \left[ (-32)^{1/5} \right]^3 = [-2]^3 = -8

Case 2: m is even but n is odd. Again, there is no ambiguity if x< 0 is negative. For example,

(-32)^{4/5} = \left[ (-32)^{4/5} \right]^3 = [-2]^4 = 16

rationalpower1

Case 3: m is odd but n is even. In this case, x^{m/n} is undefined if x < 0. For example, we would like (-16)^{3/2} to be equal to \left[ (-16)^{1/2} \right]^3, but {-16}^{1/2} = \sqrt{-16} is undefined (using real numbers).

rationalpower2

Case 4. m and $latex $n$ are both even. This is perhaps the most interesting case. For example, how should we evaluate (-8)^{4/6}?. There are two legitimate choices… which lead to different answers!

Option #1: If we just apply the proposed definition of x^{m/n}, we find that

(-8)^{2/6} = \left[ (-8)^2 \right]^{1/6} = [64]^{1/6} = 2

Option #2: We could first reduce 2/6 to lowest terms:

(-8)^{2/6} = (-8)^{1/3} = -2

So… which is it?!?!?!?! The rule that mathematicians have chosen is that simplifying the exponent takes precedence over the above definition. In other words, the definition x^{m/n} = \left[ x^{1/n} \right]^m should only be applied in m/n has been reduced to lowest terms in order to remove the above ambiguity.

rationalpower3green lineFor the sake of completeness, I note that the above discussion restricts our attention to real numbers. If complex numbers are permitted, then things become a lot more interesting. If we repeat a few of the above calculations using complex numbers, we get answers that are different!

rationalpower4

The explanation for this surprising result is not brief, but I discussed it in a previous series of posts:

https://meangreenmath.com/2014/06/19/calculators-and-complex-numbers-part-1/

https://meangreenmath.com/2014/06/20/calculators-and-complex-numbers-part-2/

https://meangreenmath.com/2014/06/21/calculators-and-complex-numbers-part-3/

https://meangreenmath.com/2014/06/22/calculators-and-complex-numbers-part-4/

https://meangreenmath.com/2014/06/23/calculators-and-complex-numbers-part-5/

https://meangreenmath.com/2014/06/24/calculators-and-complex-numbers-part-6/

https://meangreenmath.com/2014/06/25/calculators-and-complex-numbers-part-7/

https://meangreenmath.com/2014/06/26/calculators-and-complex-numbers-part-8/

https://meangreenmath.com/2014/06/27/calculators-and-complex-numbers-part-9/

https://meangreenmath.com/2014/06/28/calculators-and-complex-numbers-part-10/

https://meangreenmath.com/2014/06/29/calculators-and-complex-numbers-part-11/

https://meangreenmath.com/2014/06/30/calculators-and-complex-numbers-part-12/

https://meangreenmath.com/2014/07/01/calculators-and-complex-numbers-part-13/

https://meangreenmath.com/2014/07/02/calculators-and-complex-numbers-part-14/

https://meangreenmath.com/2014/07/03/calculators-and-complex-numbers-part-15-2/

https://meangreenmath.com/2014/07/04/calculators-and-complex-numbers-part-16/

https://meangreenmath.com/2014/07/05/calculators-and-complex-numbers-part-17/

https://meangreenmath.com/2014/07/06/calculators-and-complex-numbers-part-18/

https://meangreenmath.com/2014/07/07/calculators-and-complex-numbers-part-19/

https://meangreenmath.com/2014/07/08/calculators-and-complex-numbers-part-20/

https://meangreenmath.com/2014/07/09/calculators-and-complex-numbers-part-21/

https://meangreenmath.com/2014/07/10/calculators-and-complex-numbers-part-22/

https://meangreenmath.com/2014/07/11/calculators-and-complex-numbers-part-23/

https://meangreenmath.com/2014/07/12/calculators-and-complex-numbers-part-24/

Inverse Functions: nth Roots (Part 7)

In the previous posts of this series, I carefully considered the definition of f(x) = \sqrt{x} = x^{1/2}. Let’s now repeat this logic to consider the definition of f(x) = \sqrt[n]{x} = x^{1/n}, where n \ge 3 is an integer. We begin with n even.

A typical case is n =4; the graph of y = x^4 is shown below.

fourthroot1

The full graph of y= x^n fails the horizontal line test if n is even. Therefore, we need to apply the same logic that we used earlier to define y = \sqrt[n]{x}. In particular, we essentially erase the left half of the graph. By restricting the domain to [0,\infty), we create a new function that does satisfy the horizontal line test, so that the graph of y = \sqrt[n]{x} is found by reflecting through the line y = x.

fourthroot2Written in sentence form,

If n is even, then y = \sqrt[n]{x} means that x = y^n and y \ge 0. In particular, this is impossible for real y if x < 0.

green line
We now turn to the case of n odd. Unlike before, the full graph of y= x^n (in thick blue) satisfies the horizontal line test. Therefore, there is no need to restrict the domain to define the inverse function. (shown in thin purple).

 

thirdroot

In other words,

If n is odd, then y = \sqrt[n]{x} means that x = y^n. There is no need to give a caveat on the possible values of y.

In particular, \sqrt{-8} and \sqrt[4]{-8} are both undefined since there is no (real) number x so that x^2 = -8 or x^4 = -8. However, \sqrt[3]{-8} is defined and is equal to -2 since (-2)^3 = -8.

Inverse Functions: Square Root (Part 6)

In this post, I take a deeper look at the standard mistake of “simplifying” \sqrt{x^2} incorrectly as just x.

In the previous post, we noted that the function f: \mathbb{R} \to \mathbb{R} defined by f(x) = x^2 fails the horizontal line test and thus does not have an inverse function.

 

squareroot1

However, we can restrict the domain of f to make a new function that does satisfy the horizontal line test. This new function is identical to f where both f and g are defined. Following tradition, we restrict the domain to [0,\infty):

g: [0,\infty) \to [0,\infty) defined by g(x) = x^2.

So by essentially erasing the left half of the parabola, we form a function that passes the horizontal line test which therefore has an inverse. Naturally, this function is g^{-1}(x) = \sqrt{x}. When I teach Precalculus, I like to write this as a sentence:

y = \sqrt{x} means that x = y^2 and y \ge 0.

 

squareroot3

Since g and g^{-1} are inverse functions, it’s always true that g(g^{-1}(x)) = x and g^{-1}(g(x)) = x whenever these functions are defined. For example,

g(g^{-1}(16)) = g(\sqrt{16}) = g(4) = 4^2 = 16 and

g^{-1}(g(3)) = g^{-1}(3^2) = g^{-1}(9) = \sqrt{9} = 3

In other words, we are guaranteed that g^{-1}(g(x)) = g^{-1}(x^2) = \sqrt{x^2} is always equal to x — as long x lies in the domain of g… or, in other words, as long as x is nonnegative.

Because if x is negative, all bets are off.

Remember, the original function f does not have an inverse. In particular, g^{-1} and f are not inverse functions, and so it’s possible for g^{-1}(f(x)) to be something other than x. For example,

g^{-1}(f(3)) = \sqrt{3^2} = \sqrt{9} = 3, but

g^{-1}(f(-3)) = \sqrt{(-3)^2} = \sqrt{9} = 3 \ne -3

Of course, I don’t expect my Precalculus students to remember the subtle reason that this fails when they do their homework problems. But I do tell my Precalculus students that the nontrivial simplification of \sqrt{x^2} is a natural consequence of restricting the domain of a function that does not pass the horizontal line test to define an inverse function. In this example, \sqrt{x^2} = x as long as x \ge 0. However, if x < 0, then the result really could be just about anything else. For the current example, we have the pairwise simplification

\sqrt{x^2} = x if x \ge 0;

\sqrt{x^2} = -x if x < 0.

The last line is often uncomfortable for students, and so I remind them that x is assumed to be negative so that -x is positive. Of course, there’s a new notation that mathematicians have developed so that this two-line simplification of \sqrt{x^2} can be compressed to a single line:

\sqrt{x^2} = |x|

Unfortunately, in my opinion, this remains the problem that can be stated in two seconds or less (“Simplify the square root of x squared”) that, in my opinion, is missed most often by mathematics students.

Inverse Functions: Restricted Domain for Square Root (Part 5)

With the last four posts as prelude, let’s consider finding the inverse of the function f: \mathbb{R} \to \mathbb{R} defined by f(x) = x^2.

 

squareroot1

Of course, we can’t find an inverse for this function as stated. Colloquially, the graph of f fails the horizontal line test. More precisely, there exist two numbers x_1 and x_2 so that x_1 \ne x_2 but f(x_1) = f(x_2). (Indeed, there are infinitely many such pairs — a and -a for any a \ne 0 — but that’s beside the point.)

So how will we find the inverse of f? Well, we can’t. But we can do something almost as good: we can define a new function g that’s going look an awful lot like f. Here’s the function:

g: [0,\infty) \to [0,\infty) defined by g(x) = x^2.

Notice that the function g looks an awful lot like f, except that the domain has been restricted. In this way, the left half of the graph of f is essentially erased to produce the graph of g.

squareroot2

So while the graph of f fails the horizontal line test, the graph of g does pass the horizontal line test. Therefore, g has an inverse function. We reverse the roles of domain and range (of course, for this example, the domain and range are identical):

g^{-1}: [0,\infty) \to [0,\infty)

Also, the graph of g^{-1} can be produced by reflecting through the line y=x, producing the purple graph below.

squareroot3

Of course, the function g^{-1}(x) is more customarily written as \sqrt{x}. Stated another way using the restricted domain of g.

y = \sqrt{x} means that x = y^2 and y \ge 0.

Pedagogically, when teaching Precalculus, I’ve found that this way of writing the definition of \sqrt{x} is a useful prelude to the definition of the inverse trigonometric functions.

A couple of notes:

  1. Notice that, if the purple parabola was completed, the full parabola would violate the vertical line test and thus fail to be a function. Thinking back to the original function, that’s another way of saying that the original full parabola violates the horizontal line test.
  2. Since g and g^{-1} are inverse functions, it’s always true that g(g^{-1}(x)) = x and g^{-1}(g(x)) = x. However, g^{-1} and f are not inverse functions, and so it’s possible for g^{-1}(f(x)) to be something other than x. This subtle distinction will be discussed more in tomorrow’s post.
  3. Restricting the domain to [0,\infty) was a perfectly arbitrary decision. It would have been perfectly OK if we have chosen the left half of the original parabola instead of the right half, as either half of the parabola satisfies the horizontal line test. So why did we choose the right half (with the nonnegative domain) instead of the left half (with the nonpositive domain)? That I can answer with one word: tradition. (By the way, finding an expression for the restriction of f to (-\infty,0]) is a standard problem in a first course in real analysis.

Inverse functions: Square root (Part 2)

Here is one of the questions that I ask my class of future secondary mathematics teachers to answer.

A student asks, “My father was helping me with my homework last night and he said the book is wrong. He said that \sqrt{4} = 2 and \sqrt{4} = -2, because 2^2 = 4 and (-2)^2 = 4. But the book says \sqrt{4} = 2. He wants to know why we are using a book that has mistakes.”

This is a very similar question to the simplification of \sqrt{x^2}, which was discussed in yesterday’s post. My experience has been that the above misconceptions involves confusion surrounding two very similar-sounding questions.

Question #1: Find all values of x so that x^2 = 9.

Question #2: Find the nonnegative value of x so that x^2 = 9.

The first question can be restated as solving x^2-9 = 0, or finding all roots of a second-order polynomial. Accordingly, there are two answers. (Of course, the answers are 3 and -3, written more succinctly as \pm 3.) The second question asks for the positive answer to Question #1. This positive answer is defined to be \sqrt{9}, or 3.

In other words, it’s important to be sure that you’re answering the right question.

Is it all that important that \sqrt{9} is chosen to be the nonnegative solution to Question #1? Not really. We could have easily chosen the negative answer. The reason we choose the positive answer and not the negative answer can be answered in one word: tradition.

We want f(x) = \sqrt{x} to be a well-defined function that produces only one output value, and there’s no mathematically advantageous reason for choosing the nonnegative answer aside from the important consideration that everyone else does it that way. And though students probably won’t remember this tidbit of wisdom when the time comes, the same logic applies when choosing the range of the inverse trigonometric functions.

Of course, for the present case, it totally makes sense to take the positive, less complicated answer as the output of \sqrt{x}. However, this won’t be as readily apparent when we consider the inverse trigonometric functions.

Inverse functions: Square root (Part 1)

What is the math question that can be stated in two seconds but is most often answered incorrectly by math majors? In my opinion, here it is:

Simplify \sqrt{x^2}.

In my normal conversational voice, I can say “Simplify the square root of x squared” in a shade less than two seconds.

Here’s a thought bubble if you’d like to think about this before I give the answer.

green_speech_bubble

A common mistake made by algebra students (and also math majors in college who haven’t thought about this nuance for a while) is thinking that \sqrt{x^2} = x. This is clearly incorrect if x is negative:

\sqrt{(-3)^2} = \sqrt{9} = 3 \ne -3

The second follow-up mistake is then often mistake made by attempting to rectify the first mistake by writing \sqrt{x^2} = \pm x. The student usually intends the symbol \pm to mean “plus or minus, depending on the value of x,” whereas the true meaning is “plus or minus” without any caveats. I usually correct this second mistake by pointing out that when a student finds \sqrt{9} with a calculator, the calculator doesn’t flash between 3 and -3; it returns only one answer.

After clearing that conceptual hurdle, students can usually guess the correct simplification:

\sqrt{x^2} = |x|

green lineIn this series of posts, I’d like to expand on the thoughts above to consider some of the inverse functions that commonly appear in secondary mathematics: the square-root function and the inverse trigonometric functions.