6.5 Problem set: functions, logarithms, trigonometry, series, polynomials, and inequalities
The sections that follow this one turn the mathematics under a language-model system into code: logarithms that measure information, rotations that encode position, ladders of frequencies, and polynomial evaluation that kernels run, and after them calculus, linear algebra, probability, and optimization. Each of them assumes you can manipulate the expressions fluently by hand: invert a function, combine logarithms, use an angle-addition formula, sum a geometric series, factor a polynomial, and solve an inequality. A bug in a derivation becomes a bug in code that tests catch late and explain poorly, so this set practises the hand skills first.
Concepts from other sections (28)
This section uses these ideas. Each has a short definition and a link to the section that explains it in full. Tap a dotted term in the text to preview it.
- Geometric series: , with partial sum and limit for . Read more: 8.2 Series convergence, the EMA as a geometric series, and bias correction
- Bits per byte: a text’s total negative log-likelihood in nats divided by ; independent of the tokenizer. Read more: 6.1 Exponents, logarithms, and units of information
- Angle addition: , equivalently the formulas for and . Read more: 6.2 Trigonometry, rotations, complex numbers, and Euler’s formula
- Euler’s formula: ; multiplying by it rotates by . Read more: 6.2 Trigonometry, rotations, complex numbers, and Euler’s formula
- Exponential moving average (EMA): the recursion , a weighted sum with geometric weights. Read more: 8.2 Series convergence, the EMA as a geometric series, and bias correction
- ALiBi slope: the per-head factor by which ALiBi penalizes query-key distance. Read more: 6.3 Sequences, geometric series, and frequency ladders
- Horner’s rule: evaluating from the inside out, with multiplications and additions. Read more: 6.4 Polynomials, Horner’s rule, and stable quadratic roots
- Vieta’s formulas: and . Read more: 6.4 Polynomials, Horner’s rule, and stable quadratic roots
- sigmoid: , mapping the real line into , with . Read more: 7.3 Activation Functions and Their Derivatives
- softplus: , a smooth relu whose derivative is . Read more: 7.3 Activation Functions and Their Derivatives
- Gibbs’ inequality: , with equality if and only if ; coding data from with a code built for always costs extra bits, so cross-entropy is never below entropy. Read more: Chapter 17: Information Theory
- Complex number: a point of the plane with the multiplication defined by . Read more: 6.2 Trigonometry, rotations, complex numbers, and Euler’s formula
- Change of base: the identity , which makes every logarithm a natural log divided by a constant. Read more: 6.1 Exponents, logarithms, and units of information
- Negative log-likelihood (NLL): , the surprise of the true token under the model, in nats. Read more: 17.2 Perplexity, bits per byte, NLL accumulator
- Perplexity: , the geometric mean of ; the effective number of choices per token. Read more: 17.2 Perplexity, bits per byte, NLL accumulator
- RoPE: rotary position embedding, which rotates queries and keys by position to encode relative position. Read more: 5.3 Model landscape and lifecycle in AI Engineering
- Unit circle: the circle of radius 1 about the origin; the point at angle is . Read more: 6.2 Trigonometry, rotations, complex numbers, and Euler’s formula
- Dot product: ; it measures how much two vectors point the same way, and it is zero exactly when they are perpendicular. Read more: Chapter 10: Calculus 3
- Geometric sum: the sum of the first terms, for and for . Read more: 6.3 Sequences, geometric series, and frequency ladders
- Exponential moving average: , whose weights are a geometric sequence summing to . Read more: 6.3 Sequences, geometric series, and frequency ladders
- ALiBi: a per-head bias that falls linearly with query-key distance, used instead of rotations. Read more: 13.4 Context Extension: PI, NTK, YaRN, Llama 3 Scaling, and ALiBi in AI Engineering
- Discriminant: , whose sign decides whether a quadratic has two, one, or no real roots. Read more: 6.4 Polynomials, Horner’s rule, and stable quadratic roots
- Taylor polynomial: the degree- polynomial whose value and first derivatives at a point match those of . Read more: 8.1 Taylor series, remainder bounds, and range reduction
- Surprisal (information content): , the information carried by an outcome of probability . Read more: 6.1 Exponents, logarithms, and units of information
- Chain rule: . Read more: 10.2 Jacobians, the multivariable chain rule, and numeric JVP/VJP
- Backpropagation: reverse-mode automatic differentiation that computes all parameter gradients in one backward pass. Read more: Chapter 2: Deep Learning in AI Engineering
- Bias correction: dividing by its weight total so the zero start no longer pulls the average toward 0. Read more: 8.2 Series convergence, the EMA as a geometric series, and bias correction
- Bijection: a function that is both injective and surjective, and so has an inverse. Read more: 11.3.4 Relations, functions, and validation
The set has sixty problems in six parts. Four of the parts are the pen-and-paper side of the four sections of this chapter, and if a problem in one of them stops you, the section that teaches it is named at the start of the part. The other two parts, on functions and inverses and on inequalities, have no section of their own, because none of that material becomes code; this section teaches it below, before the problems. Derivatives and finite differences and Injective, surjective, bijective build on it directly.
Every problem has a worked answer folded under Answer, with the derivation and the most common wrong answer and why it is wrong. Attempt each problem on paper before opening its answer. The set is self-contained; nothing here needs code.
Learning objectives
- Find the domain, range, composition, and inverse of a function, and use monotonicity to decide whether an inverse exists.
- Solve linear, polynomial, rational, absolute-value, exponential, and logarithmic inequalities, keeping track of when the direction flips and which endpoints belong.
- Manipulate logarithms, convert between nats and bits, and compute bits per byte by hand.
- Use angle addition, rotations, and Euler’s formula, and sum geometric series including EMA weights and ALiBi slopes.
- Evaluate polynomials with Horner’s rule, factor them, apply Vieta’s formulas, and recognise when the quadratic formula cancels.
Functions, domains, ranges, and composition
Section titled “Functions, domains, ranges, and composition”The symbols used in the teaching part are collected here first:
| Symbol | Meaning | Type / shape |
|---|---|---|
| a function from the set (its domain) to the set | ||
| the output of at the input | ||
| the domain: the inputs where is defined | a set or interval | |
| the range: the outputs actually takes | a set or interval | |
| composition, | ||
| the inverse function: exactly when | ||
| , | the open interval and the closed interval | |
union of sets, written U in answers | ||
| the sigmoid | ||
| absolute value: if , otherwise |
A function assigns to each input in its domain exactly one output . A formula alone leaves the domain implicit: it is every real where the formula makes sense. needs , so its domain is ; needs . The range is the set of outputs that actually occur. The sigmoid takes every value strictly between 0 and 1 and never reaches either, so its range is .
Composition chains functions: applies first. Order matters. With and , but .
Inverses and monotonicity
Section titled “Inverses and monotonicity”A function is one-to-one when different inputs give different outputs. Then every output in the range comes from exactly one , and the inverse undoes : and . To find it, write and solve for . The graph of is the graph of reflected across the line .
How do you know a function is one-to-one? A function is strictly increasing when implies , and strictly decreasing when it implies . Either kind, called strictly monotonic, is one-to-one, because different inputs are ordered and so are their outputs. , , , , and softplus are strictly increasing, which is why all of them can be inverted. is not monotonic on all of , since , so it has an inverse only on a half-line, where is it. Derivatives and finite differences gives the practical test: a function whose derivative is positive everywhere is strictly increasing.
Inequalities
Section titled “Inequalities”An inequality is solved the way an equation is, with one extra rule: multiplying or dividing both sides by a negative number reverses the direction ( means ), and so does applying a strictly decreasing function. Applying a strictly increasing function (, , on non-negative numbers) keeps the direction, which is how becomes .
For a polynomial or a quotient of polynomials, find where it is zero or undefined, cut the line there, and test the sign on each piece. is zero at 2 and 3, positive outside and negative between, so on . An endpoint where the expression is zero belongs to the answer for and ; an endpoint where it is undefined never does. An absolute value is a distance: means “within 2 of 3”, the interval .
Two inequalities appear again in optimization and information theory. The first is for , with equality at ; multiply by and get . The second is , with equality only at , the inequality behind Gibbs’ inequality in Entropy, cross-entropy, and KL.
Where the other parts are taught
Section titled “Where the other parts are taught”The four middle parts each correspond to one section of this chapter:
| Part | Problems | Taught in |
|---|---|---|
| Exponents, logarithms, units | 11 to 22 | Exponents, logarithms, and units of information |
| Trigonometry, complex numbers, Euler | 23 to 34 | Trigonometry, rotations, complex numbers, and Euler’s formula |
| Sequences and geometric series | 35 to 44 | Sequences, geometric series, and frequency ladders |
| Polynomials | 45 to 52 | Polynomials, Horner’s rule, and stable quadratic roots |
Working two problems by hand
Section titled “Working two problems by hand”Before the set itself, here are two worked problems that are siblings of problems in it, showing the level of care the answers expect.
The first is a sibling of problems 5 and 6: find the inverse and range of . Start with the range. takes every value in , so takes every value in and every value in , approaching 2 as and 0 as without reaching either. The range is (0, 2). Next, check that is invertible: as grows, shrinks, the denominator shrinks, and grows, so is strictly increasing and hence one-to-one on . Now solve for , for :
Check it: , and . So the answer, in the variable of the question, is . Equivalent forms such as or are the same function; what matters is equality, not spelling, and a quick test at a couple of points, as in the check, is how to confirm two forms agree.
The second is a sibling of problem 56: solve . The numerator is zero at and the denominator at . For both factors are negative and the quotient is positive; for the numerator is positive and the denominator negative, so the quotient is negative; for it is positive. Zero at is allowed by , while divides by zero. The answer is [-1, 4).
How the problems are stated
Section titled “How the problems are stated”The tag after each question is the kind of answer expected: an expression in the named variables, a number, an interval, a set, a vector, or true/false. Exact values are expected where they exist; a decimal is given alongside only as a check.
Problems on functions and inverses
Section titled “Problems on functions and inverses”The first ten problems practise domains, ranges, composition, and inverses, including the inverses of the sigmoid and softplus that recur throughout the books.
1. . Give . [expr in x]
Answer
. multiplies by 3, then subtracts 7, so the inverse undoes those steps in reverse order: add 7, then divide by 3. Formally, , then rename to . Check: . A common mistake is , which undoes the steps in the original order.
2. . Give for . [expr in x]
Answer
. From , take (defined because ): , so . A common mistake is , which halves before subtracting: the last step of (exponentiate) is undone first, then “plus 1”, then “times 2”.
3. for . Give . [expr in x]
Answer
. Solve : . Check: , and . A common mistake is the reciprocal : is not .
4. and . Give . [expr in x]
Answer
. runs first and gives ; squares that. A common mistake is , which is : composition is applied right to left.
5. The sigmoid is . Give its inverse, the logit , for . [expr in p]
Answer
. As in the worked example with 2 replaced by 1: . This is the logit a classifier head outputs (see Fine-tuning heads in AI Engineering). Check: and . A common mistake is , which forgets the sign from .
6. Give the range of (the set of values it takes over all real ). [interval]
Answer
. takes every value in , so its reciprocal takes every value in , approaching but never reaching either end. A common mistake is : the sigmoid never outputs exactly 0 or 1, which is why is always finite.
7. Give the domain of (the real where it is defined). [interval]
Answer
. needs a positive argument: . A common mistake is : at the argument is 0 and is undefined.
8. Is one-to-one on all of ? (Hint: is it monotonic?) [bool]
Answer
True. Both and are strictly increasing, and a sum of strictly increasing functions is strictly increasing, so gives and no two inputs share an output. (With the derivative from Derivatives and finite differences: everywhere.)
9. and . Compute . [number]
Answer
. and are inverses, so and . Step by step: , ; , . A common mistake is 11, from computing , which composes the wrong way round in the first term.
10. Softplus is . Give for . [expr in y]
Answer
. , defined exactly when , that is , which is the range of softplus. A common mistake is , which applies softplus again.
Problems on exponents, logarithms, and units
Section titled “Problems on exponents, logarithms, and units”Problems 11 to 22 are the pen-and-paper side of Exponents, logarithms, and units of information: the laws of logarithms, change of base, nats and bits, and bits per byte.
11. . [number]
Answer
. and ; equivalently . A common mistake is 6, multiplying the logs (): the rule turns a product inside the log into a sum outside, and is a different number again (about 3.58).
12. . [number]
Answer
. Change of base: . Check: . A common mistake is , the change of base inverted.
13. Simplify for . [expr in x]
Answer
. , and . A common mistake is : the 3 is an exponent of once it leaves the logarithm.
14. Solve for . [number], decimal ok
Answer
. Take of both sides: . A common mistake is , the ratio inverted; a sanity check is , so is just under 10.
15. How many bits is one nat? [number], decimal ok
Answer
bits. An amount of information nats is bits, because . A nat is larger than a bit (), so the answer must exceed 1. A common mistake is , which is one bit expressed in nats.
16. A model’s mean negative log-likelihood is nats per token on a text of tokens and bytes. Give its bits per byte. [number], decimal ok
Answer
bits per byte. Total information: nats bits. Per byte: . Two common mistakes: is bits per token (divided by tokens, not bytes), and is nats per byte (never converted). Bits per byte divides by bytes so that models with different tokenizers can be compared (see Exponents, logarithms, and units of information and Perplexity and bits per byte).
17. A model’s perplexity is per token. Give its mean NLL in bits per token. [number]
Answer
. Mean NLL nats bits. Perplexity 8 means “as uncertain as a uniform choice among 8”, which takes 3 bits. A common mistake is , which is the answer in nats.
18. Write and . Express in and . [expr in a, b]
Answer
. , and logs turn the product into a sum and the powers into factors: . A common mistake is , with the exponents swapped.
19. Solve . [number]
Answer
. Both logs need positive arguments, so . Combine: . Of the roots 9 and , only 9 is in the domain. Check: . A common mistake is to keep , the root outside the domain .
20. Solve . [number]
Answer
. Write both as powers of 2: , so . A common mistake is 2, from : exponents are solved with logarithms or a common base, not by dividing.
21. A quantity decays as with . After what time is it half of ? [expr in k]
Answer
. . A common mistake is , which treats the exponential as linear.
22. How many decimal digits does have? (Use .) [number]
Answer
. A positive integer has digits (a number with digits lies in ). , so . A common mistake is 30, forgetting the .
Problems on trigonometry, complex numbers, and Euler’s formula
Section titled “Problems on trigonometry, complex numbers, and Euler’s formula”Problems 23 to 34 go with Trigonometry, rotations, complex numbers, and Euler’s formula: unit-circle values, angle addition, rotations as complex multiplication, and the relative-angle identity behind RoPE.
23. . [number]
Answer
. In the 30-60-90 triangle with hypotenuse 2, the side opposite the angle is 1. A common mistake is , which is .
24. . [number]
Answer
. is in the second quadrant, where the coordinate of the unit circle is negative; its reference angle is , with cosine . A common mistake is , dropping the quadrant’s sign.
25. Write as one trigonometric function of and . [expr in a, b]
Answer
, the angle-addition formula. One way to see it: the real part of is , and . A common mistake is , which has a plus sign between the products.
26. Rotate the point counterclockwise by . Give the image. [vector]
Answer
. Rotating by lands at : the first column of is where the first basis vector goes. A common mistake is , a rotation by .
27. with , where is the rotation by . Give . [number]
Answer
. Composing rotations adds their angles: . A common mistake is , from subtracting.
28. . [number]
Answer
. , so . In polar form: , and the eighth power is . A common mistake is , from ; in fact .
29. . [number]
Answer
. . A common mistake is 7, adding the parts: the modulus is a length, by Pythagoras.
30. Rotate by the angle with and : compute . [number]
Answer
. Expand: . The modulus stays 5, as a rotation must: . Two common mistakes: 5, which is , a dot product rather than a complex multiplication; and , a sign slip in the imaginary part.
31. . [number]
Answer
. Euler’s formula: . A quarter turn takes 1 to . A common mistake is 1, which is (or ).
32. Express using only exponentials and . [expr in t]
Answer
. Add and : the sines cancel and remains. A common mistake is the difference over 2, which is .
33. For the unit complex numbers and , simplify , where is the complex conjugate. [expr in a, b]
Answer
. , so and its real part is . This is why a RoPE attention score depends only on the difference of positions (see Why RoPE rotates pairs). A common mistake is , from forgetting the conjugate.
34. A RoPE dimension pair rotates by radians at position , with . After how many positions does the pattern repeat (the period)? [number]
Answer
positions. The pattern repeats when the angle grows by : . A common mistake is , using instead of as the full turn.
Problems on sequences and geometric series
Section titled “Problems on sequences and geometric series”Problems 35 to 44 go with Sequences, geometric series, and frequency ladders: geometric sums, the RoPE ratio, EMA weights, and ALiBi slopes.
35. (forever). [number]
Answer
. A geometric series with and sums to . A common mistake is 1, the sum of the terms after the first.
36. Give in closed form for . [expr in r, n]
Answer
. With , because every middle term cancels. The sum has terms, to . A common mistake is , which counts terms.
37. The sum of the first 10 terms of [number]
Answer
. , , : . Common mistakes are 6141 (11 terms) and 1533 (9 terms): the exponent in is the number of terms.
38. The RoPE ladder of a 128-dimensional head with base is for . Give the ratio . [number]
Answer
. . A common mistake is , which forgets the factor 2 in (pairs of dimensions share one frequency).
39. . [number]
Answer
. Pair the first and last terms: , and there are 50 pairs; in general . A common mistake is 5000, from .
40. An exponential moving average starts at with and sees at every step. Give . [number]
Answer
. Step by step: , , . In closed form, , the geometric sum of problem 36. This is the bias toward 0 that Adam’s correction divides out (see Series and the EMA). A common mistake is , which is .
41. In problem 40, . Give the weight on the oldest gradient . [number]
Answer
. The weight is . A common mistake is , the newest gradient’s weight .
42. . [number]
Answer
. Divide numerator and denominator by : . A common mistake is , which is the value at , not the limit.
43. Write (27 repeating) as a fraction. [number]
Answer
. With , , so and . Equivalently, the geometric series . A common mistake is , only the first term.
44. ALiBi with 4 heads uses the slopes . Give their sum. [number]
Answer
. Over the common denominator 256: . As a geometric sum with , , : . A common mistake is , the infinite sum.
Problems on polynomials
Section titled “Problems on polynomials”Problems 45 to 52 go with Polynomials, Horner’s rule, and stable quadratic roots: Horner’s rule, synthetic division, Vieta’s formulas, and the cancellation case.
45. Evaluate at (Horner’s rule makes it three multiply-adds). [number]
Answer
. Horner from the highest coefficient down, : . Directly: . A common mistake is 10, from running Horner with the coefficients in the order written (), which evaluates the reversed polynomial.
46. Divide by . Give the quotient. [expr in x]
Answer
. Synthetic division by the root 1 is Horner at : . The intermediate values are the quotient’s coefficients and the last is the remainder, 0, so is a root. A common mistake is , which divides by (Horner at ).
47. Give all roots of . [set]
Answer
. From problem 46, . Vieta checks it: the roots sum to 6 and multiply to 6. A common mistake is , reading the roots off the factors’ constants without the sign.
48. Give the roots of . [set]
Answer
. Factor: , or use . A common mistake is , with both signs flipped.
49. Give the smaller root of exactly (radicals allowed) or to 15 significant digits. [number]
Answer
. The quadratic formula gives . Evaluated naively in floating point, the minus sign subtracts two numbers that agree in about 12 digits and loses them. The stable route of Polynomials, Horner’s rule, and stable quadratic roots computes the large root first and uses Vieta, , so . A common mistake is exactly (the approximation ), which drops the correction that the 15th significant digit shows.
50. Without solving, give the product of the roots of . [number]
Answer
. Vieta: for , the product of the roots is . (The roots are and .) A common mistake is 2, which is without dividing by .
51. How many real roots does have? [number]
Answer
. The discriminant is , so both roots are complex. Equivalently, . A common mistake is 2, from counting the roots of a quadratic without checking the discriminant.
52. The Taylor polynomial of of degree 3 around 0 is . Give . [vector]
Answer
. , and every derivative of is , equal to 1 at 0, so : . A common mistake is , using instead of .
Problems on inequalities
Section titled “Problems on inequalities”The last eight problems return to the inequalities taught at the start of this section, including two that reappear in optimization and information theory.
53. Solve . [interval]
Answer
. “Within distance 2 of 3”: , so . The inequality is strict, so the endpoints are excluded. A common mistake is .
54. Solve . [interval]
Answer
. is zero at 2 and 3; the parabola opens upward, so it is positive outside the roots. A common mistake is , which is where it is negative.
55. The smallest integer with (the bits needed to number 1000 items). [number]
Answer
. ; equivalently (problem 14), and the smallest such integer is 10. A common mistake is 9, rounding down.
56. Solve . [interval]
Answer
. The numerator is zero at 1 and the denominator at . Signs: for both are negative, quotient positive; for the quotient is negative; for positive. gives 0, allowed by ; divides by zero. A common mistake is , which includes the point where the expression is undefined.
57. For which probabilities is the surprisal greater than 3 bits? [interval]
Answer
. : multiplying by flips the inequality, and is increasing, so applying it keeps the direction. Rarer events are more surprising. A common mistake is , which forgets the flip.
58. Solve . [interval]
Answer
. is strictly increasing, so applying it keeps the direction: . Equality is allowed, so the endpoint is included. A common mistake is , dropping the endpoint.
59. The smallest value of over . [number]
Answer
, at . Multiply by (direction kept): , which always holds, with equality only at , where . A common mistake is 1, the minimizer instead of the minimum.
60. Solve over . [interval]
Answer
. for every , with equality only at (the line is tangent to there, and curves below its tangents). The strict inequality therefore holds everywhere except . A common mistake is , which includes the point of equality.
What can go wrong
Section titled “What can go wrong”The worked answers return again and again to a handful of mistakes, and each of them bites later in the books. Inverting the steps in the original order, as in for , breaks every inverse in Categorical sampling, where inverse-CDF sampling depends on it; problems 1 and 3 address it. Composing in the wrong order, instead of , breaks the chain rule in Jacobians and the chain rule and backpropagation in Tensor, broadcasting backward, and no_grad; see problems 4 and 9. A closed endpoint where the expression is undefined matters for the domain of in every loss (problems 7 and 56). The false rule wrecks the loss rewrites of Entropy, cross-entropy, and KL (problems 11 and 18). One term too many, or the wrong weight, in a geometric sum throws off Adam’s bias correction in Series and the EMA (problems 37, 40, and 41).
Warning: Do not give decimals where an exact value exists. A rounded value hides whether the derivation was right, and problem 49 shows a case where rounding is the whole bug. Every answer gives the exact form first and a decimal only as a check.
Where this leads
Section titled “Where this leads”Each part feeds a section of this chapter: the logarithms and units of Exponents, logarithms, and units of information; the rotations, Euler’s formula, and the relative-angle identity of problem 33 in Trigonometry, rotations, complex numbers, and Euler’s formula; the geometric sums, the RoPE ratio of problem 38, the ALiBi slopes of problem 44, and the EMA weights of problems 40 and 41 in Sequences, geometric series, and frequency ladders; and Horner’s rule (problem 45), factoring, Vieta, and the cancellation case of problem 49 in Polynomials, Horner’s rule, and stable quadratic roots. Beyond this chapter, limits (problem 42) and monotonicity (problem 8) start calculus in Derivatives and finite differences; functions, inverses, and bijections return in discrete mathematics in Injective, surjective, bijective; and inverse functions become inverse-CDF sampling in Categorical sampling.
Further reading
Section titled “Further reading”- OpenStax, Precalculus 2e (free): chapter 1 on functions, chapters 2 and 3 on linear and polynomial functions and inequalities, chapter 6 on exponentials and logarithms, chapters 5 to 8 on trigonometry and complex numbers, and chapter 11 on sequences and series.
Key terms
Section titled “Key terms”- Function: a rule assigning exactly one output to each input in its domain.
- Domain and range: the inputs where a function is defined, and the outputs it actually takes.
- Composition: , applying first.
- One-to-one: different inputs always give different outputs; exactly the functions with an inverse.
- Inverse function: with and .
- Strictly monotonic: always increasing or always decreasing, and therefore one-to-one.
Summary
Section titled “Summary”- A function assigns exactly one output to each input in its domain; its inverse exists exactly when no two inputs share an output, and undoes it: .
- A strictly monotonic function is one-to-one, so it has an inverse; that is why , , the sigmoid, and softplus can all be inverted.
- Solving an inequality is solving the matching equation and testing the sign between its solutions; multiplying or dividing by a negative number, or applying a decreasing function, flips the direction.
- The middle four parts are the pen-and-paper side of this chapter’s four sections; if a problem stops you, read the section it names.
Review questions
Section titled “Review questions”- Why does a strictly monotonic function always have an inverse on its range?
Answer
If $x_1 \ne x_2$, one is smaller, say $x_1 < x_2$, and strict monotonicity gives $f(x_1) < f(x_2)$ or $f(x_1) > f(x_2)$; either way $f(x_1) \ne f(x_2)$. So $f$ is one-to-one, every output in the range comes from exactly one input, and $f^{-1}$ is well defined. - When solving an inequality by cutting the line at the zeros and poles of an expression, which cut points can belong to the answer?
Answer
A zero of the expression belongs to the answer for $\ge$ or $\le$ and not for strict inequalities. A point where the expression is undefined, such as a zero of a denominator, never belongs. - Why does applying to both sides of keep the direction, while multiplying by flips it?
Answer
$\ln$ is strictly increasing, so it preserves order; multiplying by a negative number is a strictly decreasing map, so it reverses order.