FUNCTIONS
FUNCTIONS
FUNCTIONS
Contents
Functions and graphs
Linear equations, higher order equations, inequalities and simultaneous equations
1.1 Functions and graphs
A function is a mathematical relationship in which the value of a single dependent variable are
determined from the values of one or more independent variables. The following is an example of a
function in which y is said to be a function of x.
y = a + bx
In the above example, both x and y are variables this is because they may assume different values
throughout the analysis of the function. On the other hand, a and b are referred to as constants because
they assume fixed values.
The variable y is a dependent variable in the sense that its values are generated from an independent
variable x.
The collection of all the values of the independent variable for which the function is defined is referred to
as the domain of the function corresponding to this we have the range of the function, which is the
collection of all the values of the dependent variable defined by the function
The fact that it is a function of x can also be denoted by the following general form
y = f(x)
Functions of a single independent variable may either be linear or nonlinear.
Linear functions can be represented by:
y = a + bx
Whereas non – linear functions can be represented by functions such as:
3
i. y = α0 + α1 x + α2x3
ii. y2 = 3x + 18
iii. y = 2x2 + 5x + 7
Where α, a, b, c, d, k = constants
iv. ax2 + bx + cy + d = 0
v. xy = k
vi. y = ax
Graph of a function
A graph is a visual method of illustrating the behaviour of a particular function. It is easy to see from a
graph how as x changes, the value of the f(x) is changing.
The graph is thus much easier to understand and interpret than a table of values. For example by looking
at a graph we can tell whether f(x) is increasing or decreasing as x increases or decreases.
We can also tell whether the rate of change is slow or fast. Maximum and minimum values of the
function can be seen at a glance. For particular values of x, it is easy to read the values of f( x) and vice
versa i.e. graphs can be used for estimation purposes
Different functions create different shaped graphs and it is useful knowing the shapes of some of the most
commonly encountered functions. Various types of equations such as linear, quadratic, trigonometric,
exponential equations can be solved using graphical methods.
Equations
An equation is an expression with an equal sign (=)
Equations are classified into two main groups’ linear equations and nonlinear equations. Examples of
linear equations are
x + 13 = 15
7x + 6 = 0
Nonlinear equations in the variable x are equations in which x appears in the second or higher degrees.
They include quadratic and cubic equations amongst others. For example
5x2 + 3x + 7 = 0 (quadratic equation)
2x3 + 4x2 + 3x + 8 = 0 (cubic equation)
The solution of equations or the values of the variables for which the equations hold is called the roots of
the equation or the solution set.
Example
Solve 3x + 4 = - 8
y
Solve 3 = - 4
Solutions
3x + 4 = –8
3x + 4 – 4 = – 8 – 4 (by subtraction rule)
3x = – 12 (simplifying)
x=–4 (simplifying)
y
3× =−4×3
3
y = –12 (simplifying)
Solution of quadratic equations
Suppose that we have an equation given as follows
ax2 + bx + c = 0
Where a, b and c are constants, and a≠ 0. Such an equation is referred to as the general quadratic equation
in x. if b = 0, then we have ax2 + c = 0
Which is a pure quadratic equation
There are 3 general methods for solving quadratic equations; solution by factorization, solution by
completing the square and solution by the quadratic formula.
Solution by Factorization
The following are the general steps commonly used in solving quadratic equations by factorization
Set the given quadratic equation to zero
Transform it into the product of two linear factors
Set each of the two linear factors equal to zero
Find the roots of the resulting two linear equations
Example
Solve the following equation by factorization
6x2 = 18x
15x2 + 16x = 15
Solutions
6x2 = 18x
∴ x = 0 or x = 3 ............................................(by step 4) ⋮
15x2 + 16x = 15
Example
Solve by completing the square.
3x2 = 9x
2x2 + 3x + 1 = 0
Solutions
3x2 = 9x or
(3x2 - 9x = 0)
x2 - 3x = 0............................................................. (Step 1)
.................................(Step 2)
......................................................(Step 3)
......................................................(Step 4)
3+3 3 3
= or − =
2 2 2
(= 3 or 0)
…………………...….. (Step 1)
X2 +
2
+
4
= () ()
3x 3 2 3 2 1
4
−
2 ……… (Step 2)
…………………….. (Step 3)
−b±√ b2 −4 ac
x=
2a
Example
Solve for x by formula
5x2 + 2x – 3 = 0
Solution
a = 5, b = 2, c = - 3
−b±√ b2 −4 ac
x=
2a
Solutions of inequations
The solutions sets of inequations frequently contain many elements. In a number of cases they contain
infinite elements.
Example
Solve and graph the following inequation
x–2>2; (where x is a subset of w)
Solution
x – 2 > 2 so x–2+2>2+2
Thus, x>4
The solution set is infinite, being all the elements in w greater than 4
0 1 2 3 4 5 6 7 8 9 10 11
Example
Solve and graph
3x – 7 < - 13;
Solution
….. R Line
-4 -3 -2 -1 0234
Example
Solve and graph the following:
i. 7 – 2x > - 11 ;
ii. –5x + 4 ≤ 2x – 10 ;
iii. –3 ≤ 2x + 1 < 7 ;
Solutions
line Q
-3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11
Q
line -4 -3 -2 -1 0 1 2 3 4 5
Q
line -4 -3 -2 -1 0 1 2 3 4 5
Solution techniques
The graphical technique
The graphical technique of solving a system of linear equations consists of drawing the graphs of the
equations of the system on the same rectangular coordinate system. The coordinates of the point of
intersection of the equations of the system would then be the solution.
10
9
.
8
.
7
.
6
. (2,4)
5
.
4
.
3 x + 2y = 10
2x + y = 8
.
2
.
1
-1 1 2 3 4 5 6 7 8 9 10 11 12 13
Example
The above figure illustrates:
Solution by graphical method of two equations
2x + y = 8
x + 2y = 10
The system has a unique solution (2, 4) represented by the point of intersection of the two equations.
The elimination technique
This method requires that each variable be eliminated in turn by making the absolute value of its
coefficients equal in the equations of the system and then adding or subtracting the equations. Making the
absolute values of the coefficients equal necessitates the multiplication of each equation by an appropriate
numerical factor.
Consider the system of two equations (i) and (ii) below
2x – 3y = 8 …….. ................................................(i).
3x + 4y = -5 …….................................................(ii).
Step 1
Multiply (i) by 3
6x – 9y = 24 …… .............................................................(iii).
Multiply (ii) By 2
6x + 8y = - 10 …… ..........................................................(iv).
Subtract iii from iv.
17y = -34 ……...................................................................(v).
∴ y = -2
Step 2
Multiply (i) by 4
8x – 12y = 32 ……. ..........................................................(vi)
Multiply (ii) by 3
9x + 12y = -15 ….. ...........................................................(vii)
Add vi to vii
17x = 17 ……....................................................................(viii)
∴ x=1