Skip to main content

Week 5 — Functions

1. Function​

A function ff from a set AA to a set BB assigns exactly one element of BB to every element of AA.

f:A→Bf:A\to B

Here:

  • AA is the domain.
  • BB is the codomain.
  • The set of values actually produced by ff is the range.

2. Domain​

The domain of ff is the set of all valid input values.

Dom⁡(f)\operatorname{Dom}(f)

For a function to be defined at xx, xx must belong to its domain.


3. Range​

The range of ff is the set of all output values produced by the function.

Range⁡(f)={f(x):x∈Dom⁡(f)}\operatorname{Range}(f) = \{f(x):x\in\operatorname{Dom}(f)\}

4. Function Notation​

A function can be written as

y=f(x)y=f(x)

where:

  • xx is the input.
  • f(x)f(x) is the output.

Tests for Functions

5. Vertical Line Test​

A graph represents a function of xx if every vertical line intersects the graph at at most one point.

Therefore:

One vertical line ⇒ at most one intersection\boxed{\text{One vertical line } \Rightarrow \text{ at most one intersection}}

6. Horizontal Line Test​

The horizontal line test is used to determine whether a function is one-to-one.

A function is one-to-one if every horizontal line intersects its graph at most once.

One horizontal line ⇒ at most one intersection\boxed{\text{One horizontal line } \Rightarrow \text{ at most one intersection}}

One-to-One and Onto Functions

7. Injective Function​

A function f:A→Bf:A\to B is injective if distinct inputs produce distinct outputs.

f(x1)=f(x2)⇒x1=x2f(x_1)=f(x_2)\Rightarrow x_1=x_2

Equivalently,

x1≠x2⇒f(x1)≠f(x2)x_1\neq x_2\Rightarrow f(x_1)\neq f(x_2)

8. Surjective Function​

A function f:A→Bf:A\to B is surjective if every element of the codomain has at least one preimage.

∀y∈B, ∃x∈A such that f(x)=y\forall y\in B,\ \exists x\in A \text{ such that }f(x)=y

Therefore,

Range⁡(f)=B\operatorname{Range}(f)=B

9. Bijective Function​

A function is bijective if it is both injective and surjective.

Bijective=Injective+Surjective\boxed{\text{Bijective}=\text{Injective}+\text{Surjective}}

A bijective function has exactly one preimage for every element of its codomain.


Exponential Functions

10. Exponential Function​

An exponential function has the form

f(x)=axf(x)=a^x

where

a>0,a≠1a>0,\qquad a\neq1

11. Properties of Exponential Functions​

For

f(x)=axf(x)=a^x

the domain is

R\mathbb R

and the range is

(0,∞)(0,\infty)

Also,

a0=1a^0=1

so the graph always passes through

(0,1)(0,1)

12. Increasing Exponential Function​

If

a>1a>1

then

axa^x

is strictly increasing.

As xx increases,

ax→∞a^x\to\infty

and

x→−∞⇒ax→0x\to-\infty \Rightarrow a^x\to0

13. Decreasing Exponential Function​

If

0<a<10<a<1

then

axa^x

is strictly decreasing.

As xx increases,

ax→0a^x\to0

and

x→−∞⇒ax→∞x\to-\infty \Rightarrow a^x\to\infty

14. Laws of Exponents​

For positive aa:

Product​

aman=am+na^m a^n=a^{m+n}

Quotient​

aman=am−n\frac{a^m}{a^n}=a^{m-n}

Power of a Power​

(am)n=amn(a^m)^n=a^{mn}

Zero Exponent​

a0=1a^0=1

Negative Exponent​

a−n=1ana^{-n}=\frac{1}{a^n}

Fractional Exponent​

a1/n=ana^{1/n}=\sqrt[n]{a}

and

am/n=amna^{m/n}=\sqrt[n]{a^m}

Composite Functions

15. Composition of Functions​

Let

f:A→Bf:A\to B

and

g:B→Cg:B\to C

The composition of gg with ff is

(g∘f)(x)=g(f(x))(g\circ f)(x)=g(f(x))

The function ff is applied first, followed by gg.


16. Order of Composition​

In general,

g∘f≠f∘gg\circ f\neq f\circ g

because

(g∘f)(x)=g(f(x))(g\circ f)(x)=g(f(x))

while

(f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x))

17. Domain of a Composite Function​

The domain of

(g∘f)(x)(g\circ f)(x)

consists of values of xx for which:

  1. f(x)f(x) is defined.
  2. f(x)f(x) belongs to the domain of gg.

18. Composition of Three Functions​

For functions ff, gg, and hh:

(h∘g∘f)(x)=h(g(f(x)))(h\circ g\circ f)(x) = h(g(f(x)))

The functions are evaluated from right to left.


Inverse Functions

19. Inverse Function​

A function ff has an inverse f−1f^{-1} if it reverses the mapping performed by ff.

f:A→Bf:A\to B

and

f−1:B→Af^{-1}:B\to A

20. Inverse Function Property​

If ff has an inverse, then

f−1(f(x))=xf^{-1}(f(x))=x

and

f(f−1(x))=xf(f^{-1}(x))=x

21. Condition for an Inverse​

A function has an inverse function from its codomain to its domain when it is bijective.

For a function restricted to a suitable domain, being one-to-one is sufficient to define its inverse on its range.


22. Finding an Inverse​

Given

y=f(x)y=f(x)

the inverse can be found by:

  1. Interchanging xx and yy.
  2. Solving for yy.
  3. Writing the result as f−1(x)f^{-1}(x).

23. Graph of an Inverse​

The graphs of ff and f−1f^{-1} are reflections of each other across the line

y=xy=x

24. Inverse of an Exponential Function​

For

f(x)=axf(x)=a^x

the inverse is the logarithmic function

f−1(x)=log⁡axf^{-1}(x)=\log_a x

where

a>0,a≠1a>0,\qquad a\neq1

Thus,

ax=y  ⟺  x=log⁡aya^x=y \iff x=\log_a y

Function Transformations

25. Vertical Translation​

For

g(x)=f(x)+kg(x)=f(x)+k

the graph of ff is shifted vertically by kk units.

  • k>0k>0: upward.
  • k<0k<0: downward.

26. Horizontal Translation​

For

g(x)=f(x−h)g(x)=f(x-h)

the graph is shifted horizontally by hh units.

  • h>0h>0: right.
  • h<0h<0: left.

27. Vertical Scaling​

For

g(x)=af(x)g(x)=af(x)

the output values are multiplied by aa.

If

∣a∣>1|a|>1

the graph is vertically stretched.

If

0<∣a∣<10<|a|<1

the graph is vertically compressed.


28. Reflection​

Reflection about the xx-axis:

g(x)=−f(x)g(x)=-f(x)

Reflection about the yy-axis:

g(x)=f(−x)g(x)=f(-x)

Function Formula Reference

ConceptFormula / Property
Functionf:A→Bf:A\to B
Function valuey=f(x)y=f(x)
Rangef(x):x∈Dom⁡(f){f(x):x\in\operatorname{Dom}(f)}
Vertical line testAt most one intersection
Horizontal line testAt most one intersection for one-to-one functions
Injectivef(x1)=f(x2)⇒x1=x2f(x_1)=f(x_2)\Rightarrow x_1=x_2
SurjectiveRange⁡(f)=B\operatorname{Range}(f)=B
BijectiveInjective and surjective
Exponential functionf(x)=axf(x)=a^x
Exponential domainR\mathbb R
Exponential range(0,∞)(0,\infty)
Increasing exponentiala>1a>1
Decreasing exponential0<a<10<a<1
Product of powersaman=am+na^ma^n=a^{m+n}
Quotient of powersam/an=am−na^m/a^n=a^{m-n}
Power of a power(am)n=amn(a^m)^n=a^{mn}
Negative exponenta−n=1/ana^{-n}=1/a^n
Composition(g∘f)(x)=g(f(x))(g\circ f)(x)=g(f(x))
Composition orderg∘f≠f∘gg\circ f\neq f\circ g in general
Inversef−1(f(x))=xf^{-1}(f(x))=x
Inverse compositionf(f−1(x))=xf(f^{-1}(x))=x
Inverse conditionBijective
Inverse graphReflection about y=xy=x
Exponential inverse(ax)−1=log⁡ax(a^x)^{-1}=\log_a x
Vertical translationf(x)+kf(x)+k
Horizontal translationf(x−h)f(x-h)
Vertical scalingaf(x)af(x)
xx-axis reflection−f(x)-f(x)
yy-axis reflectionf(−x)f(-x)