Mada za sehemu hiiFunctionsMada 1
- Graph Of Functions
Is the correspondence between two objects. E.g. older than, smaller than, etc.
A relation can be thought of as:
- A rule
- A mapping
Example
- A graph on the x-y plane
Is the set of all possible values of x for which the corresponding value of y is known.
Example
Given y=x2x−1
Is the set of all possible values of y for which the corresponding value of x is known
Example
y=2x
DRyDR={x:x is an integer from 1,2,3,…}={y:y is an even integer}=x={x:All positive integers}={y:All real numbers}Relation as a mapping
In x-y plane (ordered pair)
Is the mapping a single element from domain into range?
Not a function
The following are some types of function:
1. Constant Function
f(x)=c
2. Linear Function
f(x)=ax+b
3. Quadratic Function
f(x)=ax2+bx+c
4. Absolute Value Function
f(x)=∣x∣
5. Rational Function
f(x)=cx+dax+b
Sketching the function
Suppose given the function:
f(x)=⎩⎨⎧531x>0x<00≤x≤5If f(x)=y
y=5 when x>0| x | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| y | 5 | 5 | 5 | 5 |
| x | 0 | -1 | -2 | -3 |
|---|---|---|---|---|
| y | 3 | 3 | 3 | 3 |
| x | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| y | 1 | 1 | 1 | 1 | 1 | 1 |
Given the function:
f(x)=⎩⎨⎧x1−x1+xfor x>00<x≤3x<0Suppose y=x for which x>0
| x | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| y | 0 | 1 | 2 | 3 | 4 |
y=1−x
| x | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| y | 1 | 0 | -1 | -2 |
y=1+x for x<0
| x | 0 | -1 | -2 | -3 |
|---|---|---|---|---|
| y | 1 | 0 | -1 | -2 |
Given the function f(x):
f(x)=⎩⎨⎧x2−1x+13x>0x<0x>5Solution
Suppose that f(x)=y
y=x2−1, for x>0
xy0−1102338415524y=x+1 for x<0
xy−3−2−2−1−1001y=3 for x>5
xy53637383
DR={x:x∈R,x=0}={y:y∈R}Sometimes referred to as compound function, are linear functions whose variables have a special relationship under certain conditions that make their graphs break in intervals (look like steps). To understand the concept, let us look at the following example.
The cost of shaving the hair of different age-groups in a central salon are as follows:
- Shaving the group aged ten to twenty years costs Tsh 2,000/=
- The group aging between twenty and thirty (exclusive) costs Tsh 4,000/=
- The group aging thirty and above costs Tsh 6,000/=
From the above information, provide domain and range.
Solution
If we let x be the ages and f(x) be the costs, then we can interpret this problem as a step function defined by:
The domain of this function is a set of real numbers such that x≥10.
The range of this function is {2000,4000,6000}.
A quadratic function is a polynomial of the second degree.
It is a function of the general form ax2+bx+c
Where a, b, and c are real numbers and a=0
Example
Draw the graph of the function:
- f(x)=x2−1
- f(x)=−x2−1
Solution
Table of Values
(i) f(x)=x2−1
| x | -2 | -1 | 0 | 1 | 2 |
|---|---|---|---|---|---|
| f(x) | 3 | 0 | -1 | 0 | 3 |
Its graph
(ii) f(x)=−x2−1
Table of Values
| x | -2 | -1 | 0 | 1 | 2 |
|---|---|---|---|---|---|
| f(x) | -5 | -2 | -1 | -2 | -5 |
Its graph

When the polynomial function is reduced to the third degree, a cubic function is obtained.
The cubic function takes the general form f(x)=ax3+bx2+cx+d
Where a, b, c, and d are real numbers and a=0
Example
Draw the graph of the following function:
f(x)=x3−9x
- The intercepts are points (−3,0), (0,0), (3,0)
- There are two turning points; the maximum i.e. (−2,16) and the minimum i.e. (2,−16)
- The domain is the set of all real numbers
- The range is the set of all real numbers
For the turning point, let us consider the function f(x)=ax2+bx+c. The function f may be expressed in the form a[g(x)]+k
Where g(x) is another function in x and k is a constant as follows.
f(x)=ax2+bx+c
Factorizing out the constant a:
f(x)By completing the square, the expression in the brackets becomes:f(x)Let K=4a4ac−b2, we get:f(x)=a[x2+abx+ac]=a[x2+abx+4a2b2−4a2b2+ac]=a[(x+2ab)2+ac−4a2b2]=a[(x+2ab)2+4a24ac−b2]=a(x+2ab)2+4a4ac−b2=a(x+2ab)2+KRecall the condition that:
- If a>0, f has a minimum value K, which implies that f(x)=y=4a4ac−b2 when x=−2ab. Hence, the minimum turning point is (−2ab,4a4ac−b2) when a is positive.
- If a<0, f has a maximum value K=4a4ac−b2 which occurs when x=−2ab. Therefore, the maximum turning point on the graph of f is (−2ab,4a4ac−b2) when a is negative.
Example
Sketch the graph of f(x)=x2+2x−8, determine the turning point and the intercepts.
Solution
x2+2x−8=0
Solving we get:
(x+4)(x−2)=0
x+4=0, x−2=0
x=−4, x=2 which are the x-intercepts.
-
The y-intercept is −8.
-
To obtain the turning points, equate x2+2x−8=0 to ax2+bx+c=0, so that by comparison we get:
a=1, b=2, c=−8
Thus:
Turning point =(−2(1)2,4(1)4(1)(−8)−(2)2)
=(−1,−9)

There are lines which the curve does not touch. There are two types of asymptotes:
- Vertical asymptotes
- Horizontal asymptotes

Is the line where the function approaches infinity as x approaches a certain value.
Is the line where the function approaches a constant value as x approaches infinity.
Example 1
f(x)=x−22x−1
Let f(x)=y
y=x−22x−1
Vertical Asymptote (V.A.)
For V.A., we set the denominator equal to zero:
x−2=0
V.A.=2
Horizontal Asymptote (H.A.)
To find H.A., divide numerator and denominator by x:
y=1−x22−x1
As x→∞, x1→0
y=12=2
H.A.=2
Intercepts:
xy021210
Example 2
Sketch the function:
f(x)=x2+1x+1
Suppose f(x)=y
y=x2+1x+1
Vertical Asymptotes
For V.A., set denominator equal to zero:
x2+1=0
x2=−1
No real vertical asymptotes.
Horizontal Asymptotes
To find H.A., divide numerator and denominator by x2:
y=1+x21x1+x21
As x→∞, x1→0 and x21→0
y=10=0
H.A.=0
Intercepts
When x=0, y=1
When y=0, x=−1
Practice Problems
Sketch the following functions:
(a) f(x)=x−x1
(b) f(x)=x−21−3x
(c) f(x)=3x+22x+1
(d) f(x)=x2−5x+44
Solution (a): f(x)=x−x1
Let f(x)=y
y=x−x1
Vertical Asymptote
For V.A., x1→∞ as x→0
V.A.=0
Horizontal Asymptotes
As x→∞, x1→0
y=x (no horizontal asymptote, but oblique asymptote y=x)
Intercepts
When x=1, y=0
When y=0, x=±1
Solution (b): f(x)=x−21−3x
Let f(x)=y
y=x−21−3x
Vertical Asymptote
Set denominator to zero:
x−2=0
x=2
V.A.=2
Horizontal Asymptote
Divide numerator and denominator by x:
y=1−x2x1−3
As x→∞, x1→0
y=1−3=−3
H.A.=−3
Intercepts
When x=0, y=−21
When y=0, x=31
Solution (c): f(x)=3x+22x+1
Let f(x)=y
y=3x+22x+1
Vertical Asymptote
Set denominator to zero:
3x+2=0
x=−32
V.A.=−32
Horizontal Asymptote
Divide numerator and denominator by x:
y=3+x22+x1
As x→∞, x1→0 and x2→0
y=32
H.A.=32
Intercepts
When x=0, y=21
When y=0, x=−21
Solution (d): f(x)=x2−5x+44
Let f(x)=y
y=x2−5x+44
Vertical Asymptotes
Set denominator equal to zero:
x2−5x+4=0
(x−1)(x−4)=0
x=1 or x=4
V.A.=1 and V.A.=4
Horizontal Asymptote
Divide numerator and denominator by x2:
y=1−x5+x24x24
As x→∞, x1→0 and x21→0
y=10=0
H.A.=0
Intercepts
When x=0, y=1
No x-intercepts (numerator is constant 4)
Example
Given the function:
f(x)=(x+1)(x−3)(x−5)(x−1)
(i) State the range of the function (the domain is the set of real values)
(ii) Sketch the function f(x)
Solution
Let f(x)=y
y=(x+1)(x−3)(x−5)(x−1)
y=x2−2x−3x2−6x+5
To find the range, we solve for x in terms of y:
y(x2−2x−3)yx2−2yx−3yyx2−x2−2yx+6x−3y−5(y−1)x2+(−2y+6)x−(3y+5)=x2−6x+5=x2−6x+5=0=0For real values of x, the discriminant must be non-negative:
b2−4ac≥0
(−2y+6)2−4(y−1)(−(3y+5))≥0
4y2−24y+36+4(y−1)(3y+5)≥0
4y2−24y+36+12y2+20y−12y−20≥0
16y2−16y+16≥0
y2−y+1≥0
(y−21)2+43≥0
This is always true for all real y.
Therefore, y has no restriction: it can be any real value.
Range: All real numbers
Sketch of f(x)=(x+1)(x−3)(x−5)(x−1)
Vertical Asymptotes
Set denominator equal to zero:
(x+1)(x−3)=0
x+1=0 or x−3=0
V.A.=−1, V.A.=3
Horizontal Asymptote
y=x2−2x−3x2−6x+5
Divide by x2:
y=1−x2−x231−x6+x25
As x→∞, x1→0
y=11=1
H.A.=1
Intercepts
When x=0, y=(−1)(−3)(−5)(−1)=35
When y=0, x=1 or x=5
Example
Show that there are only two values which 2x−3(2x−1)(2x+5) cannot lie between, and find them.
Approach
y=2x−3(2x−1)(2x+5)
Multiply both sides by (2x−3):
y(2x−3)=(2x−1)(2x+5)
2xy−3y=4x2+10x−2x−5
2xy−3y=4x2+8x−5
Rearrange to form quadratic in x:
4x2+8x−2xy−5+3y=0
4x2+(8−2y)x+(3y−5)=0
For real values of x, the discriminant must be non-negative:
b2−4ac≥0
(8−2y)2−4(4)(3y−5)≥0
64−32y+4y2−48y+80≥0
4y2−80y+144≥0
Divide by 4:
y2−20y+36≥0
Factor:
(y−2)(y−18)≥0
This inequality holds when:
y≤2 or y≥18
Therefore, the function cannot lie between 2 and 18 (exclusive).
The values are 2 and 18.
Two functions f and g are said to be composite functions of f∘g=f(g(x))
Note: Composite functions are not commutative in general.
Given f(x)=x2+1 and g(x)=2x.
Find:
(i) f∘g(x)
(ii) g∘f(x)
Approach
(i) f∘g(x)=f(g(x))
f(2x)=(2x)2+1=4x2+1
(ii) g∘f(x)=g(f(x))
g(x2+1)=2(x2+1)=2x2+2
f∘g=g∘f, hence the composite function is not commutative.
Given:
f(x)=x2−1, g(x)=3x and h(x)=x2
(i) (f∘g)∘h
(ii) f∘(g∘h)
Solution
f∘g=f(g(x))=f(3x)=(3x)2−1=9x2−1
(f∘g)∘h=(f∘g)(h(x))=(f∘g)(x2)=9(x2)2−1=x236−1
(ii) g∘h=g(h(x))=g(x2)=3(x2)=x6
f∘(g∘h)=f(x6)=(x6)2−1=x236−1
Since (f∘g)∘h=f∘(g∘h), hence the composite function satisfies the associative property.
A function is a one-to-one function when a line parallel to the x-axis cuts the curve at most once. Equivalently, a line parallel to the y-axis also cuts the curve at most once.
The line parallel to the x-axis cuts the curve only once:
- An inverse function is one where each element from the domain matches exactly in the range, and conversely, each element from the range matches exactly with the domain.
Example 1
Given f(x)=2x−1
Find f−1(x)
Approach
Let f−1(x)=g(x)
f(g(x))=x
2g(x)−1=x
2g(x)=x+1
g(x)=2x+1
f−1(x)=2x+1
Example 2
Given f(x)=x2+1
Find f−1(x)
Approach
Let f−1(x)=g(x)
f(g(x))=x
(g(x))2+1=x
(g(x))2=x−1
g(x)=x−1 (for x≥1)
f−1(x)=x−1
Example 3
Given:
f(x)={x+1x2x<0x≥0Sketch:
(i) f(x) – state its domain
(ii) f−1(x)
Solution
(i) The domain of f(x) is all real numbers, R.
For f(x)=x+1 (when x<0):
Let f−1(x)=g(x)
f(g(x))=x
g(x)+1=x
g(x)=x−1
| x | 1 | 0 | -1 | -2 |
|---|---|---|---|---|
| g(x) | 0 | -1 | -2 | -3 |
For f(x)=x2 (when x≥0):
Let f−1(x)=g(x)
f(g(x))=x
(g(x))2=x
g(x)=x (for x≥0)
| x | 0 | 1 | 4 |
|---|---|---|---|
| g(x) | 0 | 1 | 2 |

Mwalimu
Unasoma somo hili? Niulize nikuelezee chochote kilichomo.
Ingia ili kumuuliza Mwalimu wa AI wa Sonza kuhusu mada hii.
Ingia ili kuulizaMajadiliano
Hakuna maswali bado