Registry Synced

Week 5: Graph Tests, Composition, Inverses & Exponentials

3047 words
15 min read
2026-09-12

Reading compass

Now · TL;DR

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:
function→graph test→composition→one-one→inverse→exponential functions\text{function} \rightarrow \text{graph test} \rightarrow \text{composition} \rightarrow \text{one-one} \rightarrow \text{inverse} \rightarrow \text{exponential functions}
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))(f\circ g)(x)=f(g(x))
  • inverse: f−1(x)f^{-1}(x)
  • invertibility requires one-one behavior
  • exponential functions: axa^x

1. Function recap

A function:
f:A→Bf:A\to B
assigns every input in AA exactly one output in BB.
The three main sets are:
  • domain
  • codomain
  • range
Always:
Range⊆Codomain.\text{Range}\subseteq \text{Codomain}.

2. Function from a graph

Suppose a relation is drawn in the xyxy-plane.
How do we know whether it represents:
y=f(x)?y=f(x)?
Use the vertical line test.

3. Vertical line test

A graph represents a function of xx if every vertical line intersects it at most once.
Why?
A vertical line corresponds to fixing one value of xx.
If the graph intersects twice, the same input xx has two different outputs.
That violates the definition of a function.

4. Example: parabola

Consider:
y=x2.y=x^2.
For each xx, there is exactly one yy.
Every vertical line intersects once.
So:
y=x2y=x^2
is a function.

5. Example: circle

Consider:
x2+y2=1.x^2+y^2=1.
At:
x=0,x=0,
we get:
y=±1.y=\pm1.
So one input:
x=0x=0
has two outputs.
Therefore the circle fails the vertical line test.
It is not a function:
y=f(x)y=f(x)
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 yy.
If it intersects twice, then two different inputs produce the same output.
That means:
f(x1)=f(x2)f(x_1)=f(x_2)
with:
x1≠x2.x_1\neq x_2.
So the function is not injective.

7. Example

For:
f(x)=x2,f(x)=x^2,
we have:
f(2)=4f(2)=4
and:
f(−2)=4.f(-2)=4.
Thus it is not one-one on:
R.\mathbb R.
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:
f(x)=x2,f(x)=x^2,
if we restrict to:
x≥0,x\geq0,
then the function becomes one-one.
Similarly on:
x≤0.x\leq0.
This matters enormously for inverse functions.

9. Composition of functions

Suppose:
f:A→Bf:A\to B
and:
g:B→C.g:B\to C.
Then the composition:
g∘fg\circ f
maps:
A→C.A\to C.
Definition:
(g∘f)(x)=g(f(x))\boxed{ (g\circ f)(x)=g(f(x)) }
Read:
gg composed with ff.
Important:
Apply ff first, then gg.

10. Order matters

In:
(g∘f)(x),(g\circ f)(x),
the inner function acts first.
So:
x⟶ff(x)⟶gg(f(x)).x \overset{f}{\longrightarrow} f(x) \overset{g}{\longrightarrow} g(f(x)).
This is similar to nested function calls in programming.

11. Example

Let:
f(x)=2x+1f(x)=2x+1
and:
g(x)=x2.g(x)=x^2.
Then:
(g∘f)(x)=g(f(x)).(g\circ f)(x)=g(f(x)).
Since:
f(x)=2x+1,f(x)=2x+1,
we substitute into gg:
g(2x+1)=(2x+1)2.g(2x+1)=(2x+1)^2.
Thus:
(g∘f)(x)=(2x+1)2\boxed{ (g\circ f)(x)=(2x+1)^2 }

12. Reverse composition

Now compute:
(f∘g)(x).(f\circ g)(x).
That means:
f(g(x)).f(g(x)).
Since:
g(x)=x2,g(x)=x^2,
we get:
f(x2)=2x2+1.f(x^2)=2x^2+1.
Therefore:
(f∘g)(x)=2x2+1\boxed{ (f\circ g)(x)=2x^2+1 }
These are different:
g∘f≠f∘gg\circ f\neq f\circ g
in general.
Composition is not commutative.

13. Domain of a composition

This is a subtle but important point.
For:
(f∘g)(x)=f(g(x)),(f\circ g)(x)=f(g(x)),
xx must:
  1. belong to the domain of gg
  2. produce a value g(x)g(x) that belongs to the domain of ff
So the composition domain can be smaller than either function's apparent domain.

14. Example: domain restriction in composition

Let:
g(x)=x−3g(x)=x-3
and:
f(x)=x.f(x)=\sqrt{x}.
Then:
(f∘g)(x)=x−3.(f\circ g)(x) = \sqrt{x-3}.
We require:
x−3≥0.x-3\geq0.
Thus:
x≥3\boxed{x\geq3}
is the domain.

15. Identity function

The identity function is:
I(x)=x\boxed{ I(x)=x }
It changes nothing.
For a function ff:
f∘I=ff\circ I=f
and:
I∘f=f.I\circ f=f.
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:
f(a)=b,f(a)=b,
then:
f−1(b)=a.f^{-1}(b)=a.
So:
f:A→Bf:A\to B
is reversed by:
f−1:B→A.f^{-1}:B\to A.

17. Inverse notation warning

f−1(x)f^{-1}(x)
does not mean:
1f(x).\frac1{f(x)}.
These are entirely different.
For example, if:
f(x)=2x,f(x)=2x,
then:
f−1(x)=x2.f^{-1}(x)=\frac x2.
But:
1f(x)=12x.\frac1{f(x)}=\frac1{2x}.
Do not confuse them.

18. Inverse as composition

If f−1f^{-1} truly is the inverse of ff, then:
f−1(f(x))=x\boxed{ f^{-1}(f(x))=x }
and:
f(f−1(x))=x\boxed{ f(f^{-1}(x))=x }
So:
f−1∘f=If^{-1}\circ f=I
and:
f∘f−1=I.f\circ f^{-1}=I.

19. When does an inverse exist?

For a genuine inverse:
f−1:B→A,f^{-1}:B\to A,
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:
f(x)=2x+3.f(x)=2x+3.

Step 1

Write:
y=2x+3.y=2x+3.

Step 2

Swap xx and yy:
x=2y+3.x=2y+3.

Step 3

Solve for yy:
x−3=2yx-3=2y y=x−32.y=\frac{x-3}{2}.
Therefore:
f−1(x)=x−32\boxed{ f^{-1}(x)=\frac{x-3}{2} }

22. Why swapping works

Original function maps:
x→y.x\to y.
Inverse maps:
y→x.y\to x.
So swapping xx and yy literally reverses input and output roles.

23. Verify the inverse

For:
f(x)=2x+3f(x)=2x+3
and:
f−1(x)=x−32,f^{-1}(x)=\frac{x-3}{2},
compute:
f(f−1(x)).f(f^{-1}(x)).
Then:
f(x−32)=2(x−32)+3.f\left(\frac{x-3}{2}\right) = 2\left(\frac{x-3}{2}\right)+3.
Thus:
=x−3+3=x-3+3 =x.=x.
Correct.

24. Inverse graph geometry

The graphs of:
y=f(x)y=f(x)
and:
y=f−1(x)y=f^{-1}(x)
are reflections of each other across the line:
y=x\boxed{y=x}
Why?
Inverse swaps:
(x,y)↔(y,x).(x,y) \leftrightarrow (y,x).
Reflection across y=xy=x does exactly that.

25. Domain/range swap under inverse

If:
f:A→B,f:A\to B,
then:
f−1:B→A.f^{-1}:B\to A.
Therefore:
Domain of f−1=Range of f\boxed{ \text{Domain of }f^{-1} = \text{Range of }f }
and:
Range of f−1=Domain of f\boxed{ \text{Range of }f^{-1} = \text{Domain of }f }

26. Quadratic inverse problem

Consider:
f(x)=x2.f(x)=x^2.
On:
R,\mathbb R,
it is not one-one.
So it does not have an inverse function on all real numbers.
Why?
f(2)=f(−2)=4.f(2)=f(-2)=4.

27. Restricting the domain

Restrict:
f(x)=x2,x≥0.f(x)=x^2,\qquad x\geq0.
Now it is one-one.
Then:
y=x2y=x^2
Swap:
x=y2.x=y^2.
Since original domain required nonnegative input, inverse output must be nonnegative:
y=x.y=\sqrt{x}.
Thus:
f−1(x)=x\boxed{ f^{-1}(x)=\sqrt{x} }

28. Why not ±x\pm\sqrt{x}?

A function must give exactly one output per input.
So:
±x\pm\sqrt{x}
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:
f(x)=ax\boxed{ f(x)=a^x }
where typically:
a>0,a≠1.a>0,\qquad a\neq1.
The variable appears in the exponent.
This distinguishes exponentials from polynomials.

30. Polynomial vs exponential

Polynomial:
x3x^3
Variable in the base.
Exponential:
3x3^x
Variable in the exponent.
These behave very differently.

31. Basic exponential properties

For:
a>0,a>0,
we have:
a0=1.a^0=1.
So every basic exponential graph passes through:
(0,1)\boxed{(0,1)}
Also:
a1=a.a^1=a.
So it passes through:
(1,a).(1,a).

32. Exponent laws

For suitable aa:
aman=am+na^m a^n=a^{m+n} aman=am−n\frac{a^m}{a^n}=a^{m-n} (am)n=amn(a^m)^n=a^{mn} a−n=1ana^{-n}=\frac1{a^n} a1/n=an.a^{1/n}=\sqrt[n]{a}.
These are core algebra tools.

33. Exponential growth

If:
a>1,a>1,
then:
f(x)=axf(x)=a^x
is increasing.
Example:
2x.2^x.
As xx increases:
2x2^x
grows rapidly.

34. Exponential decay

If:
0<a<1,0<a<1,
then:
axa^x
is decreasing.
Example:
(12)x.\left(\frac12\right)^x.
As xx increases, the output approaches zero.

35. Domain of exponential function

For:
f(x)=ax,a>0,f(x)=a^x,\qquad a>0,
the domain is:
R\boxed{\mathbb R}
because real powers are defined appropriately for positive base aa.

36. Range

For:
ax,a^x,
outputs are always positive:
ax>0.a^x>0.
Therefore:
Range=(0,∞)\boxed{ \text{Range}=(0,\infty) }
Never:
00
and never negative.

37. Horizontal asymptote

As exponential decay approaches zero, it never actually reaches zero.
The line:
y=0y=0
acts as a horizontal asymptote.
Similarly, for growth:
ax→0a^x\to0
as:
x→−∞.x\to-\infty.

38. Exponential graph summary

For:
a>1:a>1:
  • passes through (0,1)(0,1)
  • always positive
  • increasing
  • approaches 00 to the left
  • grows rapidly to the right
For:
0<a<1:0<a<1:
  • passes through (0,1)(0,1)
  • always positive
  • decreasing
  • grows large to the left
  • approaches 00 to the right

39. Exponential function is one-one

For:
a>0,a≠1,a>0,\quad a\neq1,
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:
2x=8.2^x=8.
Since:
8=23,8=2^3,
we get:
x=3.x=3.
Similarly:
32x=27.3^{2x}=27.
Since:
27=33,27=3^3,
we get:
2x=32x=3
so:
x=32.x=\frac32.

41. Same-base principle

If:
au=ava^u=a^v
with:
a>0,a≠1,a>0,\quad a\neq1,
then:
u=v.\boxed{u=v}.
This works because the exponential function is one-one.
So injectivity from Week 1 directly justifies this algebra rule.

42. Example

Solve:
52x−1=5x+4.5^{2x-1}=5^{x+4}.
Since same valid base:
2x−1=x+4.2x-1=x+4.
Thus:
x=5.x=5.

43. Exponential transformations

Consider:
f(x)=ax.f(x)=a^x.
Then:
ax−ha^{x-h}
shifts the graph horizontally by hh.
And:
ax+ka^x+k
shifts vertically by kk.
So:
f(x)=2x−3+5f(x)=2^{x-3}+5
has the base graph shifted:
  • right 33
  • up 55
Its horizontal asymptote becomes:
y=5.y=5.

44. Reflection

−ax-a^x
reflects the graph across the xx-axis.
Meanwhile:
a−xa^{-x}
reflects across the yy-axis.
And:
a−x=(1a)x.a^{-x} = \left(\frac1a\right)^x.
This is why exponential growth and decay graphs are reflections.

45. Example

2−x=(12)x.2^{-x} = \left(\frac12\right)^x.
Thus the decay function:
(12)x\left(\frac12\right)^x
is just the reflection of:
2x2^x
across the yy-axis.

46. Composition and inverse interaction

Suppose:
f(x)=2x+3.f(x)=2x+3.
Its inverse is:
f−1(x)=x−32.f^{-1}(x)=\frac{x-3}{2}.
Then:
f−1∘f=If^{-1}\circ f=I
because:
f−1(f(x))=x.f^{-1}(f(x))=x.
So inverse functions are literally functions that undo composition.

47. Inverse of a composition

If suitable inverses exist:
(f∘g)−1=g−1∘f−1\boxed{ (f\circ g)^{-1} = g^{-1}\circ f^{-1} }
Notice the order reverses.
Why?
If:
gg
happens first and then:
f,f,
to undo the process:
  • undo ff first
  • then undo gg
This is exactly like reversing a sequence of operations.

48. Example intuition

Suppose a process:
  1. multiply by 22
  2. add 33
This gives:
f(x)=2x+3.f(x)=2x+3.
To undo:
  1. subtract 33
  2. divide by 22
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:
B→A,B\to A,
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
(f∘g)(x)(f\circ g)(x)
means:
f(g(x)),f(g(x)),
not:
g(f(x)).g(f(x)).
The function closest to xx acts first.

Common trap: inverse notation
Again:
f−1(x)≠1f(x).f^{-1}(x) \neq \frac1{f(x)}.
For:
f(x)=x+1,f(x)=x+1,
inverse:
f−1(x)=x−1.f^{-1}(x)=x-1.
Reciprocal:
1x+1.\frac1{x+1}.
Completely different objects.

Common trap: inverse domain
Suppose:
f(x)=x2,x≥0.f(x)=x^2,\quad x\geq0.
Then:
f−1(x)=x.f^{-1}(x)=\sqrt{x}.
But the inverse domain is:
x≥0.x\geq0.
You cannot simply ignore domain/range restrictions.

Common trap: base of exponential
For a standard real exponential:
ax,a^x,
require:
a>0a>0
and:
a≠1.a\neq1.
If:
a=1,a=1,
then:
1x=1,1^x=1,
which is just a constant function.

55. Why exponential growth is special

Compare:
x10x^{10}
with:
2x.2^x.
For sufficiently large xx:
2x2^x
eventually grows faster than:
x10.x^{10}.
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:
y=f(x),y=f(x),

Horizontal shift

f(x−h)f(x-h)
→ right by hh.

Vertical shift

f(x)+kf(x)+k
→ up by kk.

Vertical reflection

−f(x)-f(x)
→ reflect across xx-axis.

Horizontal reflection

f(−x)f(-x)
→ reflect across yy-axis.

Vertical scaling

af(x)af(x)
→ stretch/compress vertically.
This transformation language applies far beyond exponentials.

57. Full example: analyze a transformed exponential

Consider:
f(x)=3x−2+4.f(x)=3^{x-2}+4.
Start from:
y=3x.y=3^x.
Transformations:
x−2x-2
means shift right by 22.
Then:
+4+4
means shift up by 44.
Domain:
R.\mathbb R.
Original range:
(0,∞).(0,\infty).
After shifting up:
(4,∞).\boxed{(4,\infty)}.
Horizontal asymptote:
y=4.\boxed{y=4}.

58. Full inverse example

Let:
f(x)=3x−7.f(x)=3x-7.
Find inverse.
Start:
y=3x−7.y=3x-7.
Swap:
x=3y−7.x=3y-7.
Solve:
x+7=3yx+7=3y y=x+73.y=\frac{x+7}{3}.
Thus:
f−1(x)=x+73\boxed{ f^{-1}(x)=\frac{x+7}{3} }
Verify:
f(x+73)=3(x+73)−7=x.f\left(\frac{x+7}{3}\right) = 3\left(\frac{x+7}{3}\right)-7 =x.

59. Full composition example

Let:
f(x)=x2+1f(x)=x^2+1
and:
g(x)=2x−3.g(x)=2x-3.
Then:
(f∘g)(x)=f(2x−3).(f\circ g)(x) = f(2x-3).
So:
=(2x−3)2+1.=(2x-3)^2+1.
Expand:
4x2−12x+9+14x^2-12x+9+1
thus:
4x2−12x+10\boxed{ 4x^2-12x+10 }
Reverse:
(g∘f)(x)=g(x2+1)(g\circ f)(x) = g(x^2+1) =2(x2+1)−3=2(x^2+1)-3 2x2−1\boxed{ 2x^2-1 }
Clearly:
f∘g≠g∘f.f\circ g\neq g\circ f.

60. Conceptual connection to programming

Function composition is closely related to nested function calls:
python
f(g(x))
means:
  1. evaluate g(x)
  2. pass result into f
Mathematical composition:
(f∘g)(x)(f\circ g)(x)
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:
raw data→clean→transform→normalize→model\text{raw data} \to \text{clean} \to \text{transform} \to \text{normalize} \to \text{model}
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))\boxed{ (f\circ g)(x)=f(g(x)) }

Identity

I(x)=x\boxed{ I(x)=x }

Inverse condition

f−1(f(x))=x\boxed{ f^{-1}(f(x))=x } f(f−1(x))=x\boxed{ f(f^{-1}(x))=x }

Exponential

f(x)=ax,a>0, a≠1\boxed{ f(x)=a^x,\qquad a>0,\ a\neq1 }

Exponential domain

R\boxed{\mathbb R}

Exponential range

(0,∞)\boxed{(0,\infty)}

Same-base principle

au=av⇒u=v\boxed{ a^u=a^v \Rightarrow u=v }
for valid a≠1a\neq1.

63. What you should actually master

By the end of Week 5, you should be able to:
  1. Apply the vertical line test.
  2. Apply the horizontal line test.
  3. Determine whether a function is one-one.
  4. Understand why domain restriction may be necessary.
  5. Compute: f(g(x)).f(g(x)).
  6. Distinguish: f∘gf\circ g from: g∘f.g\circ f.
  7. Determine domains of compositions.
  8. Find inverses algebraically.
  9. Verify inverses using composition.
  10. Swap domain and range correctly.
  11. Understand inverse graphs as reflections across:
y=x.y=x.
  1. Recognize exponential functions.
  2. Distinguish exponential growth from decay.
  3. Use exponent laws.
  4. Solve simple same-base exponential equations.
  5. Analyze basic exponential graph transformations.
If those are comfortable, Week 5 is under control.

64. Concept map

text
Functions
│
├── 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)(f \circ g)(x) definition :: f(g(x))f(g(x))
  • Graph of f−1(x)f^{-1}(x) relative to f(x)f(x) :: Reflected across the line y=xy = x
  • Condition for existence of inverse function f−1f^{-1} :: The function must be bijective (one-to-one and onto)
  • Exponential function f(x)=axf(x) = a^x domain and range (a>0,a≠1a > 0, a \neq 1) :: Domain: R\mathbb{R}, Range: (0,∞)(0, \infty)

Practice & Self-Check

Attempt these diagnostic questions to verify your operational understanding.
1

Question 1

Let f(x)=2x+1f(x) = 2x + 1 and g(x)=x2−3g(x) = x^2 - 3. What is (f∘g)(2)(f \circ 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
Document outline

Keep your place and jump directly to a heading.

Table of contents

No note selected

Open a chapter to see its outline, backlinks, and sources here.