Week 5: Graph Tests, Composition, Inverses & Exponentials
3047 words
15 min read
2026-09-12T00:00:00.000Z
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
Vertical and horizontal line tests, composite functions, invertible functions, inverse graphs, and exponential functions. # Mathematics I — Week 5: Graph Tests, Composition, Inverses & Exponentials IITM’s Week 5 covers **horizontal and vertical line tests, exponential functions, composite functions, and inverse func...

Mathematics I — Week 5: Graph Tests, Composition, Inverses & Exponentials
IITM’s Week 5 covers horizontal and vertical line tests, exponential functions, composite functions, and inverse functions.
TL;DR
Week 5 deepens the idea of a function:
The highest-value ideas are:
- vertical line test → is it a function?
- horizontal line test → is it one-one?
- composition: (f∘g)(x)=f(g(x))
- inverse: f−1(x)
- invertibility requires one-one behavior
- exponential functions: ax
1. Function recap
A function:
assigns every input in A exactly one output in B.
The three main sets are:
- domain
- codomain
- range
Always:
2. Function from a graph
Suppose a relation is drawn in the xy-plane.
How do we know whether it represents:
Use the vertical line test.
3. Vertical line test
A graph represents a function of x if every vertical line intersects it at most once.
Why?
A vertical line corresponds to fixing one value of x.
If the graph intersects twice, the same input x has two different outputs.
That violates the definition of a function.
4. Example: parabola
Consider:
For each x, there is exactly one y.
Every vertical line intersects once.
So:
is a function.
5. Example: circle
Consider:
At:
we get:
So one input:
has two outputs.
Therefore the circle fails the vertical line test.
It is not a function:
over the whole circle.
6. Horizontal line test
The horizontal line test asks whether a function is one-one / injective.
A function is one-one if every horizontal line intersects its graph at most once.
Why?
A horizontal line fixes one output y.
If it intersects twice, then two different inputs produce the same output.
That means:
with:
So the function is not injective.
7. Example
For:
we have:
and:
Thus it is not one-one on:
The graph fails the horizontal line test.
8. Restricting the domain
A function may fail to be one-one on a large domain but become one-one after restricting the domain.
For:
if we restrict to:
then the function becomes one-one.
Similarly on:
This matters enormously for inverse functions.
9. Composition of functions
Suppose:
and:
Then the composition:
maps:
Definition:
Read:
g composed with f.
Important:
Apply f first, then g.
10. Order matters
In:
the inner function acts first.
So:
This is similar to nested function calls in programming.
11. Example
Let:
and:
Then:
Since:
we substitute into g:
Thus:
12. Reverse composition
Now compute:
That means:
Since:
we get:
Therefore:
These are different:
in general.
Composition is not commutative.
13. Domain of a composition
This is a subtle but important point.
For:
x must:
- belong to the domain of g
- produce a value g(x) that belongs to the domain of f
So the composition domain can be smaller than either function's apparent domain.
14. Example: domain restriction in composition
Let:
and:
Then:
We require:
Thus:
is the domain.
15. Identity function
The identity function is:
It changes nothing.
For a function f:
and:
The identity function becomes central when defining inverses.
16. What is an inverse function?
An inverse function reverses the action of the original function.
If:
then:
So:
is reversed by:
17. Inverse notation warning
f−1(x)does not mean:
These are entirely different.
For example, if:
then:
But:
Do not confuse them.
18. Inverse as composition
If f−1 truly is the inverse of f, then:
and:
So:
and:
19. When does an inverse exist?
For a genuine inverse:
the function must be bijective:
- injective
- surjective
Why?
Each output must correspond to exactly one input.
If two inputs share one output, reversing the mapping would give one input with two outputs.
Not allowed.
20. Graph criterion for inverses
A function has an inverse on its domain/range if it is one-one.
Graphically:
It must pass the horizontal line test.
So the horizontal line test is really an inverse-existence test.
21. Finding an inverse algebraically
Suppose:
Step 1
Write:
Step 2
Swap x and y:
Step 3
Solve for y:
Therefore:
22. Why swapping works
Original function maps:
Inverse maps:
So swapping x and y literally reverses input and output roles.
23. Verify the inverse
For:
and:
compute:
Then:
Thus:
Correct.
24. Inverse graph geometry
The graphs of:
and:
are reflections of each other across the line:
Why?
Inverse swaps:
Reflection across y=x does exactly that.
25. Domain/range swap under inverse
If:
then:
Therefore:
and:
26. Quadratic inverse problem
Consider:
On:
it is not one-one.
So it does not have an inverse function on all real numbers.
Why?
27. Restricting the domain
Restrict:
Now it is one-one.
Then:
Swap:
Since original domain required nonnegative input, inverse output must be nonnegative:
Thus:
28. Why not ±x?
A function must give exactly one output per input.
So:
would not define a function.
The domain restriction determines which branch is selected.
This is a very common trap.
29. Exponential functions
An exponential function has the form:
where typically:
The variable appears in the exponent.
This distinguishes exponentials from polynomials.
30. Polynomial vs exponential
Polynomial:
Variable in the base.
Exponential:
Variable in the exponent.
These behave very differently.
31. Basic exponential properties
For:
we have:
So every basic exponential graph passes through:
Also:
So it passes through:
32. Exponent laws
For suitable a:
These are core algebra tools.
33. Exponential growth
If:
then:
is increasing.
Example:
As x increases:
grows rapidly.
34. Exponential decay
If:
then:
is decreasing.
Example:
As x increases, the output approaches zero.
35. Domain of exponential function
For:
the domain is:
because real powers are defined appropriately for positive base a.
36. Range
For:
outputs are always positive:
Therefore:
Never:
and never negative.
37. Horizontal asymptote
As exponential decay approaches zero, it never actually reaches zero.
The line:
acts as a horizontal asymptote.
Similarly, for growth:
as:
38. Exponential graph summary
For:
- passes through (0,1)
- always positive
- increasing
- approaches 0 to the left
- grows rapidly to the right
For:
- passes through (0,1)
- always positive
- decreasing
- grows large to the left
- approaches 0 to the right
39. Exponential function is one-one
For:
the exponential function is monotonic.
Therefore it passes the horizontal line test.
So it has an inverse.
That inverse is the logarithm, which becomes Week 6.
This is a key conceptual bridge.
40. Solving simple exponential equations
Suppose:
Since:
we get:
Similarly:
Since:
we get:
so:
41. Same-base principle
If:
with:
then:
This works because the exponential function is one-one.
So injectivity from Week 1 directly justifies this algebra rule.
42. Example
Solve:
Since same valid base:
Thus:
43. Exponential transformations
Consider:
Then:
shifts the graph horizontally by h.
And:
shifts vertically by k.
So:
has the base graph shifted:
- right 3
- up 5
Its horizontal asymptote becomes:
44. Reflection
−axreflects the graph across the x-axis.
Meanwhile:
reflects across the y-axis.
And:
This is why exponential growth and decay graphs are reflections.
45. Example
2−x=(21)x.Thus the decay function:
is just the reflection of:
across the y-axis.
46. Composition and inverse interaction
Suppose:
Its inverse is:
Then:
because:
So inverse functions are literally functions that undo composition.
47. Inverse of a composition
If suitable inverses exist:
Notice the order reverses.
Why?
If:
happens first and then:
to undo the process:
- undo f first
- then undo g
This is exactly like reversing a sequence of operations.
48. Example intuition
Suppose a process:
- multiply by 2
- add 3
This gives:
To undo:
- subtract 3
- divide by 2
Reverse order.
That is the essence of inverse functions.
49. One-one vs onto vs inverse
This distinction is worth keeping clean.
Injective
Different inputs → different outputs.
Surjective
Every codomain value is reached.
Bijective
Both.
Invertible
For a full inverse:
you need bijectivity.
If discussing inverse on the actual range, injectivity is the key condition.
Common trap: vertical vs horizontal line tests
Vertical line test
Asks:
Is this relation a function?
Horizontal line test
Asks:
Is this function one-one?
Do not swap them.
Common trap: composition order
means:
not:
The function closest to x acts first.
Common trap: inverse notation
Again:
For:
inverse:
Reciprocal:
Completely different objects.
Common trap: inverse domain
Suppose:
Then:
But the inverse domain is:
You cannot simply ignore domain/range restrictions.
Common trap: base of exponential
For a standard real exponential:
require:
and:
If:
then:
which is just a constant function.
55. Why exponential growth is special
Compare:
with:
For sufficiently large x:
eventually grows faster than:
More generally, exponential functions eventually dominate fixed-degree polynomials.
This becomes important in algorithms, statistics, growth models, and later mathematics.
56. Function transformations recap
For a base function:
Horizontal shift
f(x−h)→ right by h.
Vertical shift
f(x)+k→ up by k.
Vertical reflection
−f(x)→ reflect across x-axis.
Horizontal reflection
f(−x)→ reflect across y-axis.
Vertical scaling
af(x)→ stretch/compress vertically.
This transformation language applies far beyond exponentials.
57. Full example: analyze a transformed exponential
Consider:
Start from:
Transformations:
means shift right by 2.
Then:
means shift up by 4.
Domain:
Original range:
After shifting up:
Horizontal asymptote:
58. Full inverse example
Let:
Find inverse.
Start:
Swap:
Solve:
Thus:
Verify:
59. Full composition example
Let:
and:
Then:
So:
Expand:
thus:
Reverse:
Clearly:
60. Conceptual connection to programming
Function composition is closely related to nested function calls:
pythonf(g(x))
means:
- evaluate
g(x) - pass result into
f
Mathematical composition:
is exactly the same conceptual pipeline.
That connection will be useful in Python too.
61. Conceptual connection to data science
A lot of data processing is composition:
Each step can be thought of as a function.
The full pipeline is a composition of functions.
So this is not abstract notation for its own sake.
62. Week 5 formula sheet
Composition
(f∘g)(x)=f(g(x))Identity
I(x)=xInverse condition
f−1(f(x))=x f(f−1(x))=xExponential
f(x)=ax,a>0, a=1Exponential domain
RExponential range
(0,∞)Same-base principle
au=av⇒u=vfor valid a=1.
63. What you should actually master
By the end of Week 5, you should be able to:
- Apply the vertical line test.
- Apply the horizontal line test.
- Determine whether a function is one-one.
- Understand why domain restriction may be necessary.
- Compute: f(g(x)).
- Distinguish: f∘g from: g∘f.
- Determine domains of compositions.
- Find inverses algebraically.
- Verify inverses using composition.
- Swap domain and range correctly.
- Understand inverse graphs as reflections across:
- Recognize exponential functions.
- Distinguish exponential growth from decay.
- Use exponent laws.
- Solve simple same-base exponential equations.
- Analyze basic exponential graph transformations.
If those are comfortable, Week 5 is under control.
64. Concept map
textFunctions │ ├── Graph │ ├── vertical line test │ └── horizontal line test │ ├── Composition │ └── f(g(x)) │ ├── One-one │ └── invertibility │ ├── Inverse │ ├── swap x/y │ ├── domain ↔ range │ └── reflection across y=x │ └── Exponential ├── growth ├── decay └── inverse → logarithm
Quick Recall & Flashcards
Test your active recall before proceeding to practice problems. Format:
Question :: Answer.- Vertical Line Test determines :: Whether a curve in the plane represents a valid function
- Horizontal Line Test determines :: Whether a function is injective (and therefore invertible)
- Composite function (f∘g)(x) definition :: f(g(x))
- Graph of f−1(x) relative to f(x) :: Reflected across the line y=x
- Condition for existence of inverse function f−1 :: The function must be bijective (one-to-one and onto)
- Exponential function f(x)=ax domain and range (a>0,a=1) :: Domain: R, Range: (0,∞)
Practice & Self-Check
Attempt these diagnostic questions to verify your operational understanding.
1
Question 1
Let f(x)=2x+1 and g(x)=x2−3. What is (f∘g)(2)?
NAT
3 Unit Assessment
2
Question 2
Which test is used on the graph of a function to determine whether it has an inverse function?
MCQ
3 Unit Assessment
A. Vertical Line Test
B. Horizontal Line Test
C. Integral Test
D. Ratio Test