In this article, we you will learn about composite functions, it means that a function can become input of another function. Before you learn about the composite functions, you must be familiar with the arithmetic of functions which means given two function , you will be able to perform basic arithmetic operations on the function itself. Identifying Domain
Sometimes the function expression is given, but domain is not specified. In such cases, you must identify the domain of given function. Suppose
![]()
![]()
Why this is important ? because when we perform arithmetic operations on two or more functions the domain of new function is set of all real numbers that belong to both
and
, that is,
.
Normal arithmetic operations are possible on functions too. If
and
are two functions, then there are four operations possible on these functions.
Now we discuss about each of these operations.
Sum of functions
The sum of functions is
![]()
The expressions of both functions are added together to form a new function. For example, if
and
, then

Difference of functions
The difference of functions is
![]()
The expressions of function
is subtracted from expression of function
to form a new expression for
. For example, if
and
, then

Product of functions
The product of the functions is
![]()
The expressions of function
and
is multiplied to get the new product expression of
. Each term is of
is multiplied with each term of
. For example, if
and
are two expressions, then

Quotient of functions
The quotient of functions is obtained by dividing two functions, which is
![]()
The functions are divided to get the quotient, however, there is one condition, that is,
, otherwise the quotient of function will be “divide by 0” which is “undefined“.
Therefore, if
and
, then

The domain of
,
,
is set of all reals numbers that are common to domain of
and
which is
except where
for
.
The composite functions or the idea of composition of functions is simple. Suppose there are two functions,
and
, then if function
becomes input for function
, it is called “composition of function
with function
or simply a composite function.
Let us try to understand this with an example, suppose Nancy work as a maid, and get paid
amount every week and after paying taxes she receives only
of her earnings. Each week she spends
for grocery from her earning . The total earning of Nancy after paying taxes can be defined by function
. Her savings after expense of
can be defined as function
.

If her gross earning is
, then her saving would be

Therefore, total saving after paying taxes and expenses of
is
.
What is the domain of a composite function?
If
is a composite function such that
. Then the domain of composite function must be
Therefore, while finding the domain of a composite function, we must first exclude all values of
than can make the function
“invalid”. Also, if
happens to be valid, that is,
, then
must be valid value for the function
. If
happens to invalid value, then both
and
must be excluded from the domain of composite function
.
Like composing two functions, it is possible to decompose a function because we know that “composition of two functions” creates a new function. Consider the following example,
![]()
Here we can clearly see that there are two functions involved in the expression. Therefore,
where
which implies that
.
We can write the function
and
as composition of function
where
and
.
Graph of function does not remain the same. It changes its shape or position when values are added, subtracted or multiplied by the equation of the graph. This kind of change in the graph is called a transformation of the graph of functions.
You must be familiar with the transformation happens to a graph of function once the equation changes. You should be able to tell the changes in the graph by looking at the new graph of the equation.
Before you begin, learn about graph and graphs of equations, functions, a graph of functions. If you know them already skip ahead and continue reading.
The graph transformation is broadly classified into two types.
We shall discuss each of these transformations in more detail in coming sections.
This type of transformation changes the position of the original graph to left, right, top and bottom by a few units. The graph is no longer in its original position.
If
is a function and
is a positive real number, then shift in the graph position is represented as
Shift of c units upward (y-axis) : ![]()
Shift of c units downward (y-axis) : ![]()
Shift of c units left (x-axis) : ![]()
Shift of c units right (x-axis) : ![]()
To understand the positional shift in graph, check the examples in following sections.
Example 1:
Let
and
. Then the function
is given as follows.
h(x) = f(x) + c
substituting value
and
, we get
h(x) = x^2 + 3
Create a table of values for
to plot the graph of the function.
| x | h(x) |
| -2 | 7 |
| -1 | 4 |
| 0 | 3 |
| 1 | 4 |
| 2 | 7 |
Using the above value plot a graph of function for
.

Example 2:
Now, we plot the graph of
.
Substituting for
and
, we get.
h(x) = x^2 - 3
Once, again create a table with values for
.
| x | h(x) |
| -2 | 1 |
| -1 | -2 |
| 0 | -3 |
| 1 | -2 |
| 2 | 1 |
You can plot a graph using the above table.

Example 3:
The horizontal shift in a graph of a function is different from vertical shift because the value of a range is unaffected, but the value of domain x is increased or decreased. Thus causing right or left shift horizontally.
Suppose
be the function and
be the positive real constant. Then
implies ![]()
In other words, value of
in
is reduced by
units in
to get the output.
\begin{aligned}
&h(5) = f(5 - 3)\\\\
&= (5 - 3)^2\\\\
&= 2^2\\\\
&= 4
\end{aligned}Let us now plot the graph of function
.
| x | f(x – 3) | h(x) |
| 3 | f(0) | 0 |
| 2 | f(-1) | 1 |
| 4 | f(1) | 1 |
| 1 | f(-2) | 4 |
| 5 | f(2) | 4 |
The graph of function
look like the following.

Clearly, the graph shifted to 3 units right horizontally.
Example 4:
The left shift transformation is similar to the right shift. Let
. The function
and
.
The graph of this function will look like the following. The procedure to plot the graph is similar to the right shift transformation.

It is possible to combine two or more shifts. Consider the following functions.
\begin{aligned}
&f(x) = x^2\\\\
&g(x) = f(x - 3) = (x - 3)^2\\\\
&h(x) = g(x) + 1
\end{aligned}It implies that
h(x) = (x - 3)^2 + 1
Therefore, the graph will shift 3 units right horizontally and shift 1 unit up vertically.
Reflection is another type of graph transformation. It does not change position but uses the x-axis or y-axis to reflect a graph of a function.
Reflection on x-axis: ![]()
Reflection on y-axis: ![]()
Let us see few examples to find out what reflection of a graph means.
Example 5:
Let
be the original equation. If
represents the reflection of the function
on x-axis, then the graph will look like below diagram.

Example 6:
Let us take another example for reflection along y-axis. The function
is reflection of
.
For this example, we will plot the graph of both
and
.

The transformation of position or the reflection does not change the shape of the graph itself. It just moves the graph to a different location in the coordinate system. If
is the graph of function then transformation is represented by
, where it is a vertical stretch if
and vertical shrink if
.
If
is the graph of function then its transformation is
, where it is a horizontal shrink if
and horizontal stretch if
.
Example 7:
To understand the vertical transformation of shape, consider an example. Let
be a function and
be a real constant.
You have two cases, case 1 when
and case 2 with
. Suppose
then
, we know that this is case 1 and result in a vertical stretch.
Find all the points to plot the graph of function
.
| x | f(x) = |x| | g(x) = 2|x| |
| 0 | 0 | 0 |
| 1 | 1 | 2 |
| 2 | 2 | 4 |
| 3 | 3 | 6 |
| 4 | 4 | 8 |
You can easily plot the graph of function
using the above points, which is given below.

Suppose
, then its case 2 – vertical shrink. Let us plot the graph of the equation for case 2 when
.
| x | f(x) = |x| | g(x) = 1/2|x| |
| 0 | 0 | 0 |
| 1 | 1 | 1/2 |
| 2 | 2 | 1 |
| 3 | 3 | 3/2 |
| 4 | 4 | 2 |
The graph of the function
is given below.

The graph of function
shows that the vertical shape transformation has happened.
The horizontal shape transformation also happens in the same way. Let
be the function, and
be the horizontal shrink when
and horizontal stretch when
.
Suppose
for horizontal shrink and
for horizontal stretch respectively. Then the graph of function
is given below.
| x | f(x) = x^2 | g(x) = f(2x), c > 1 | g(x) = f(1/2x), 0 < c < 1 |
| 2 | 4 | 16 | 1 |
| 1 | 1 | 4 | 1/4 |
| 0 | 0 | 0 | 0 |
| -1 | 1 | 4 | 1/4 |
| -2 | 4 | 16 | 1 |
Example 8:
The graph of function g(x) with horizontal shrink.

Example 9:
Similarly, we can plot the graph of horizontal stretch.

You can identify a function by looking at its graph. This article, we explore different types of function and their graphs.
Prerequisite to learn from this article is listed below.
There is a relationship between a function and its graph. With the help of a graph of function, you can discover may properties which the algebraic form does not provide.
The graph of functions helps you visualize the function given in algebraic form. By look at an equation you could tell that the graph is going to be an odd or even, increasing or decreasing or even the equation represents a graph at all.
The linear functions are straight lines. Read the following article to learn more about linear function.
The graph of squaring function is commonly known as a parabola which is a U-shaped curve.The diagram for squaring function
is given below.

Properties of a Squaring Function
The properties of a squaring function are the domain and range, intercepts, etc.
The graph of cubic function is in positive side and negative side unlike squaring function which is only on positive side.
f(x) = x^3
If you plot the graph then it look like the one below. Let us use the following table to plot the graph of cubic function.
| x | y = f(x) = x^3 | point |
| -2 | -8 | (-2, -8) |
| -1 | -1 | (-1, -1) |
| 0 | 0 | (0, 0) |
| 1 | 1 | (1, 1) |
| 2 | 8 | (2, 8) |
The graph of cubic function look like the following.

Properties of Cubic Function
Cubic function has following properties.
A graph of function
where a value of
results in
.
f(x) = \sqrt{x}Let us plot the graph of the square root function by obtaining some points. We used calculator to compute some values.
| x | point | |
| 4 | 2 | (4, 2) |
| 3 | 1.73 | (3, 1.73) |
| 2 | 1.41 | (2, 1. 41) |
| 1 | 1 | (1, 1) |
| 0 | 0 | (0, 0) |
The graph of the squaring function is given below.

As you can see that the graph is only on positive side for both
and
.
Properties of Squaring Function
The graph of squaring function is given below.
Let
be a function, then
f(x) = \frac{1}{x}is called a reciprocal function.
To plot the graph of reciprocal function, let us find all the points first.
| x | f(x) = 1/x | point |
| -3 | -1/3 | (-3, -1/3) |
| -2 | -1/2 | (-2, -1/2) |
| -1 | -1 | (-1, -1) |
| 0 | undefined | undefined |
| 1 | 1 | (1, 1) |
| 2 | 1/2 | (2, 1/2) |
| 3 | 1/3 | (3, 1/3) |
The graph of reciprocal is shown below.

Properties of Graph of Reciprocal Function
The reciprocal function is symmetric along the origin, but it never touches the origin itself. The properties of a reciprocal function is given below.
The graph of step function actually look like a staircase with steps.
Let
, be the step function where
[[x]] mean find the a value ‘greater than or equal to x‘.
We must find points to plot the graph of step function.
| x | f(x) = [[x]] + 1 | points |
| -2 | -1 | (-2, 1) |
| -1 | 0 | (-1, 0) |
| 0 | 1 | (0, 1) |
| 1 | 2 | (1, 2) |
| 2 | 3 | (2, 3) |
The graph of step function is shown below.

Properties of Step Function
The properties of step function are given below.
The graph of piecewise function is already discussed in previous lessons.
If you remember these basic graph of functions used in algebra, then it is easier to learn higher and complex graphs. Later , when you learn calculus, visualizing concepts is much easier with a graph of function.
The graph of equation has symmetry along the x-axis or y-axis. In this article, the symmetry of a graph of function is defined in terms of even and odd function.
Prerequisite for this articles is listed below.
Let’s understand the even functions first. The function
is even function, if for every x in domain of
.
f(-x) = f(x)
For example,
Let
be a function where
f(x) = x^2
The function will square any input value for
and output
. Let us put some values for
, see the following table of values.
| x | y = f(x) | point |
| -2 | 4 | (-2, 4) |
| -1 | 1 | (-1, 1) |
| 0 | 0 | (0, 0) |
| 1 | 1 | (1, 1) |
| 2 | 4 | (2, 4) |
The table shows that any
values is equal to
.

The graph of even function is symmetric along the y-axis.
The odd function is different from even function in terms of symmetry of graph of the function. The function
is odd function if for every
in the domain of
.
f(-x) = -f(x)
Consider the following table of points for the function
.
| x | y = f(x) = x + 1 | point |
| -3 | -2 | (-3, -2) |
| -2 | -1 | (-2, -1) |
| -1 | 0 | (-1, 0) |
| 0 | 1 | (0, 1) |
| 1 | 2 | (1, 2) |
| 2 | 3 | (2, 3) |
The graph of odd function shows that
is
.

The graph of odd function is symmetric along the y-axis.
Previously you learned about functions, graph of functions. In this lesson, you will learn about some function types such as increasing functions, decreasing functions and constant functions. These concepts are explained with examples and graphs of the specific functions where ever necessary.
Functions are increasing, decreasing and constant when you plot the graph of the function in a coordinate system. Let’s define the meaning of these functions.
Increasing function
A function
is increasing in an interval for any
and![]()
Example:
Let
be a function. Find all the values for the function to plot the graph.
| x | f(x) | (x, f(x)) |
| -1 | 2 | (-1, 2) |
| 0 | 1 | (0, 1) |
| 1 | 2 | (1, 2) |
| 2 | 5 | (2, 5) |
The graph of the function will look like the following.

In the above graph, the function is increasing between the interval of (0, 2).
The value of
is 0 and
is 3,
The value of
is 1 and
is 5.
Therefore,
implies
is true and it is an increasing function.
Decreasing Function
A function
is decreasing in an interval for any
and ![]()
Example:
Consider a function
. The function is a parabola. Let’s draw the graph of this function in a Cartesian plane or co-ordinate system.
Before plotting the graph, you need to find points for the graph of the function. A table of points is given below.
| x | f(x) | (x, f(x) |
| -2 | 4 | (-2, 4) |
| -1 | 1 | (-1, 1) |
| 0 | 0 | (0, 0) |
| 1 | 1 | (1, 1) |
| 2 | 4 | (2, 4) |
The graph of the parabola is given below.

In the above graph, the function is decreasing between the interval ( -2, 0).
The value of
is -2 and the value of
is 0.
The value of
is 4 and the value of
is 0.
Then
is true and
is also true. Hence, the function is a decreasing function between the interval
.
Constant Function
The function is a constant function in an interval for some
and ![]()
This is simplest form of graph of a function and such a function is always a straight line on the coordinate system.
Let
be the constant function. It means for any value of
in the domain, the value of
is 3.
The graph of constant function is given below.

In the above graph of the constant function.
The value of
is 1 and the value of
is 2.
The value of
is 3 and the value of
is also 3.
Therefore,
and
implies that the function is a constant function.
In the previous lesson, you learned about functions and different ways to represent a function. One of the way to represent the function is using graphs. In this lesson, you will explore the graphs of functions and understand how to determine the domain and range of function from its graph. You will learn about vertical line testing and how to find zero of a function.
The graph of a function is the ordered pair
.
x = length along the x-axis. y = f(x) = length along the y-axis.
Let’s draw the graph of a function and see how it works.

The above diagram clearly shows that the graph has
for some input x.
You can easily find the domain and range of a function using graph of the function. Plot the graph of the function using algebraic equation of the function.
See the graph below

In the graph some points are closed or filled and some of them are not-filled or open.
Therefore,
The domain of the function
is between the interval [-3, 3). We have taken the left most and right most value of x as the domain. But do not forget to check if the interval is open or closed.
Range of the Function
In the diagram above, the highest point and the lowest point defined are (-2, 2) and (1, -2) respectively. Then the range of the function using graph is the closed interval [2, -2] because both points are defined.
You can determine whether a graph belongs to a function or not, using a vertical line test.

In the above diagram the red line, intersect the graph A at one place. The graph A belongs to a function. The line crosses the graph B at two places. It is not a graph of a function.
The graph sometimes is not defined for some functions and as a result the line will not intersect the graph at all. But this does not mean that it is not a graph of a function, just because it is not defined as in the case of graph C.
Previously you learned about the intercepts of an equation. The graph of a function has x-intercept which is (a, 0). The zero of the function is the value of x for which
.

In the graph shown above, the zero of the graph is the point (2, 0) where the graph intersects the x-axis. Some graphs have more than one zero because they intersect the x-axis more than once.
In the previous lesson, you learned about Cartesian coordinate system, graph of equations and linear equations. These are prerequisites to learn about function in this lesson.
A function is a relation between two sets – set A and set B, where each element
of set A is related to exactly one element
of set B. Note the word “exactly” which is very important.
The elements
is called domain of function (or inputs) and the elements
is called the range of function( or outputs).
A function must follow certain rules, otherwise it is not a function.

There are 3 ways to represent functions.
Numerically – you can represent a function as set of ordered pairs (x, y) where x is the domain of the function and y is the range of the function.
For example, you can represent above diagram as
{(1, A), (2, B), (x, y)}Algebraically – you can represent a function using algebraic notations. A function is denoted as
.
For example, you are given an expression
.
The above expression can be changed to following form
y = 1 - x
or
f (x) = 1 - x
Graphically – you can represent a function using graph. A reveal lot of information about function such a increasing function, decreasing function, odd or even and other characteristics.
To represent a function using graph find the points required to plot the graph of the function. This is done using algebraic expression of the graph.
For example, let’s draw the graph of
.
| x | f (x) | points (x, (f (x)) |
| -1 | 2 | (-1, 2) |
| 0 | 1 | (0, 1) |
| 1 | 0 | (1, 0) |
| 2 | -1 | (2, -1) |
The graph of the function using above points is given below.

A domain of a function is all real numbers. Sometimes a function is piecewise-defined. It means there are more than one function for different values of domain.
You need to specify two or more equations to represent a function with specific domain values.
For example,
f(x) = x2-1x<0x -1x≥0
Points to Remember
Linear equations form the basis for linear algebra. In the previous lesson, you learned about graph of equations plotted using points on a Cartesian plane, intercepts and symmetry of graphs.
You will learn about a graph of linear equations of two variables in this lesson.
The graph of linear equation is a straight line
\begin{aligned}
&y = mx + b \\ \\
&where \\ \\
&m = slope \hspace{2px}of \hspace{2px} the \hspace{2px} line \hspace{2px} and \\ \\
&b = (0, b) = y-intercept \hspace{2px} of \hspace{2px} the \hspace{2px}line
\end{aligned}In the linear equation, the slope is very important and tells lot about the graph. There are 4 slope condition of the line as follows
#1 Slope is Zero
Slope is
. The value of
is
, hence the line has no slope and it is a straight line.
Consider the equation
, when
. The equation becomes
.

Slope is greater than 0 (m > 0)
When the slope is greater than 0, then it is rising upwards. Consider the following example
y = 2x + 1
where the slope is a positive value with b = 1 as intercept value.
The graph of this equation is given below.

Slope is less than 0 (m < 0)
When the value of
, the slope goes downwards. Consider the following example.
y = -1(x) + 1
The value of slope is
and b intercept is
.

Note: then a vertical line has no slope and its slope is undefined.
The above form of equation of a line is called point-slope form.
The Slope of a line passing through Two-Points
Suppose a line is passing through two points
and
. Then the slope of the line
is given by following.
m = \frac{y_{2} - y_{1}}{x_{2} - x_{1}}or
m = \frac{y_{1} - y_{2}}{x_{1} - x_{2}}For example, Consider 2 points – (2, 5) and (4, 7). Then their slope is given by
\begin{aligned}
&m = \frac{7 - 5}{4 - 2}\\\\
&m = \frac{2 }{2}\\\\
&m = 1
\end{aligned}Therefore, the slope of the line is 1.

Slope of Parallel Lines ( m1 = m2)
The slope of a parallel line is same, because essentially they both are the same line just shifted above or below by few units.

In the diagram above, both lines have the same slope. This could be proved easily using the equations of both lines.
\begin{aligned}
&y_1 = m_{1}x + 2 (1)\\
&y_2 = m_{2}x + 1 (2)
\end{aligned}Consider the above example, let
, then the equations become
\begin{aligned}
&3 = m_{1}(3) + 2 \hspace{1cm}(1)\\
&3m_1 = 1\\
&2 = m_{2}(3) + 1 \hspace{1cm} (2)\\
&3m_2 = 1
\end{aligned}Therefore,
for parallel lines.
Slope of Perpendicular Lines (m1 = 1/-m2)
The perpendicular line make an angle of
degrees. The slope of two line that are perpendicular to each other is
m_1 = \frac{1}{-m_2}The graph of perpendicular lines shows the slopes.

In the previous lesson, you learned about graph of equations which is points on a Cartesian plane. The graph of equation has some other interesting characteristics. You will learn about two such properties in this lesson – Intercepts and Symmetry of Graph.
The intercepts are the points where graph touches the x-axis or y-axis. There are only two types of intercepts in a Cartesian plane.
A graph can have no intercept, one intercept and many intercepts.
Example:
Find the intercepts of equation
and plot the graph.
Solution:
Given that
,
You know that x-intercept the value of
.
\begin{aligned}
&0 = x - 1\\ \\
&-x = -1\\ \\
&x = 1
\end{aligned}Therefore,
The x-intercept of graph is point
.
Similarly,
For y-intercept the value of
.
\begin{aligned}
&y = 0 - 1 \\ \\
&y = -1
\end{aligned}Therefore,
The y-intercept is the point
.
To plot the graph of equation, you need to find other points on the equation.
| | ||
| -1 | -2 | (-1, -2) |
| 0 | -1 | (0, -1) |
| 1 | 0 | (1, 0) |
| 2 | 1 | (2, 1) |
Let’s plot the graph of equation
.


The second property of graph is symmetry. The axis of Cartesian plane divides the graph in perfect halves is what we call as the symmetry of graph.
There are 3 rules regarding the symmetry of graph.
Example:
Plot graph
symmetric to origin.
Solution:


Example:
Plot graph of equation
which is symmetric to x-axis.
Solution:


Example:
Plot graph of equation
symmetric to y-axis.
Solution:

In the previous lesson, you learned about co-ordinate system. You know than a point is plotted on Cartesian plane with x-axis and y-axis.
A point has two values –
and
. For example,
is a point.
Therefore, expressions involving two variable can also be plotted using the Cartesian plane known as Graph of an Equation.
So, all points that satisfy the equation will give the graph of the equation.
Example:
Plot graph of equation for
.
Solution:
Given equation
.
You can plot the graph using co-ordinate system, but before that find all x and y values that counts as a point.
| X-value | Y-value | Point |
| -1 | 1 | (-1, 1) |
| 0 | 2 | (0, 2) |
| 1 | 3 | (1, 3) |
| 2 | 4 | (2, 4) |
| 3 | 5 | (3, 5) |
Now, using these points you can plot the graph of the equation.

Not all equations are straight line, some equations are non-linear and give a curve for graph.Consider the following example.
Example 2:
Plot the graph of equation for
.
Solution 2:
Given than
.
First, you must create a table of values that represent points on the graph.
| X-value | Y-value | Point |
| -2 | 4 | (-2, 4) |
| -1 | 1 | (-1, 1) |
| 0 | 0 | (0, 0) |
| 1 | 1 | (1, 1) |
| 2 | 4 | (2, 4) |
You need to plot a graph using these points and each point has
and
values.

Points to Remember:
This is something that you can try on your own.