Functions and Their Graphs: Definition, Types, Examples and Basic Graphs

Functions and their graphs showing basic types of mathematical functions

Introduction

Functions are one of the most important concepts in mathematics. They help us describe relationships between two quantities and are widely used in algebra, geometry, science, economics, and many other fields.

A function connects each input with exactly one output. We can represent a function using an equation, a table, ordered pairs, or a graph.

In this article, we will learn about functions and their graphs in a simple, student-friendly way. We will discuss the definition of a function, domain and range, different types of functions, 10 basic functions and their graphs, important formulas, worked examples, common mistakes, applications, MCQs, and practice questions.

What Is a Function?

A function is a relation in which each input has exactly one output.

A function is commonly written as:y=f(x)y=f(x)

Here:

  • xx is the input or independent variable.
  • yy is the output or dependent variable.
  • f(x)f(x) represents the value of the function at xx.

For example:f(x)=2x+3f(x)=2x+3

If x=2x=2, then:f(2)=2(2)+3f(2)=2(2)+3f(2)=4+3=7f(2)=4+3=7

Therefore, the input 22 produces the output 77.

What Is the Domain of a Function?

The domain of a function is the set of all allowed input values.

For example, consider:f(x)=x+5f(x)=x+5

There is no restriction on xx, so its domain is all real numbers.

However, consider:f(x)=1xf(x)=\frac{1}{x}

Here xx cannot be zero because division by zero is undefined.

Therefore:x≠0x\neq0

So the domain is all real numbers except 00.

What Is the Range of a Function?

The range is the set of all possible output values of a function.

For example:f(x)=x2f(x)=x^2

The square of a real number can never be negative. Therefore:f(x)≥0f(x)\geq0

The range is:[0,∞)[0,\infty)

What Is the Graph of a Function?

The graph of a function is a collection of points (x,y)(x,y) that satisfy the function.

Suppose:y=2x+1y=2x+1

We can choose some values of xx and calculate yy.

xxy=2x+1y=2x+1Ordered Pair
-2-3(−2,−3)(-2,-3)
-1-1(−1,−1)(-1,-1)
01(0,1)(0,1)
13(1,3)(1,3)
25(2,5)(2,5)

Plotting these points on the coordinate plane gives the graph of the function.

For a linear function, these points lie on a straight line.

How to Draw the Graph of a Function

The following steps are useful for drawing many basic function graphs.

Step 1: Write the function

For example:y=x2y=x^2

Step 2: Select values of xx

Choose convenient values such as:−2,−1,0,1,2-2,-1,0,1,2

Step 3: Calculate the corresponding yy-values

xxy=x2y=x^2
-24
-11
00
11
24

Step 4: Plot the ordered pairs

Plot:(−2,4),(−1,1),(0,0),(1,1),(2,4)(-2,4),(-1,1),(0,0),(1,1),(2,4)

Step 5: Join the points appropriately

The resulting graph is a U-shaped curve called a parabola.

10 Basic Functions and Their Graphs

Learning the basic functions and their graph shapes makes it easier to understand more complicated functions.

1. Constant Function

A constant function has the form:f(x)=cf(x)=c

where cc is a constant.

Example:f(x)=3f(x)=3

Its graph is a horizontal straight line passing through y=3y=3.

The output remains the same for every input.

Domain: All real numbers

Range: {3}\{3\}

2. Identity Function

The identity function is:f(x)=xf(x)=x

Its graph is a straight line passing through the origin.

Important points include:(−2,−2),(−1,−1),(0,0),(1,1),(2,2)(-2,-2),(-1,-1),(0,0),(1,1),(2,2)

The line has slope:m=1m=1

3. Linear Function

A linear function generally has the form:f(x)=mx+cf(x)=mx+c

where mm is the slope and cc is the yy-intercept.

Example:f(x)=2x+1f(x)=2x+1

Its graph is a straight line.

If m>0m>0, the line rises from left to right.

If m<0m<0, the line falls from left to right.

4. Quadratic Function

A quadratic function has the form:f(x)=ax2+bx+c,a≠0f(x)=ax^2+bx+c,\qquad a\neq0

The simplest quadratic function is:f(x)=x2f(x)=x^2

Its graph is a parabola.

When a>0a>0, the parabola opens upward.

When a<0a<0, it opens downward.

5. Cubic Function

A basic cubic function is:f(x)=x3f(x)=x^3

Its graph has an S-like shape and passes through the origin.

Some points are:(−2,−8),(−1,−1),(0,0),(1,1),(2,8)(-2,-8),(-1,-1),(0,0),(1,1),(2,8)

6. Absolute Value Function

The basic absolute value function is:f(x)=∣x∣f(x)=|x|

Its graph has a V-shape.

For example:∣−2∣=2|-2|=2∣−1∣=1|-1|=1∣0∣=0|0|=0∣1∣=1|1|=1∣2∣=2|2|=2

The graph is symmetric about the yy-axis.

7. Reciprocal Function

A basic reciprocal function is:f(x)=1xf(x)=\frac{1}{x}

Its graph consists of two separate branches.

The function is undefined at:x=0x=0

The coordinate axes act as asymptotes:x=0x=0

andy=0y=0

8. Square Root Function

The basic square root function is:f(x)=xf(x)=\sqrt{x}

For real-valued outputs, xx must satisfy:x≥0x\geq0

The graph begins at (0,0)(0,0) and extends into the first quadrant.

9. Cube Root Function

The basic cube root function is:f(x)=x3f(x)=\sqrt[3]{x}

Unlike the square root function, the cube root function is defined for every real number.

Its graph passes through the origin and has an S-like shape.

10. Exponential Function

A basic exponential function can be written as:f(x)=axf(x)=a^x

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

For example:f(x)=2xf(x)=2^x

Some values are:

xx2x2^x
-21/41/4
-11/21/2
01
12
24

The graph passes through:(0,1)(0,1)

and remains above the xx-axis.

Quick Comparison of Basic Functions

FunctionEquationTypical Graph Shape
Constantf(x)=cf(x)=cHorizontal line
Identityf(x)=xf(x)=xStraight line
Linearf(x)=mx+cf(x)=mx+cStraight line
Quadraticf(x)=x2f(x)=x^2Parabola
Cubicf(x)=x3f(x)=x^3S-shaped curve
Absolute value(f(x)=x
Reciprocalf(x)=1/xf(x)=1/xTwo branches
Square rootf(x)=xf(x)=\sqrt{x}Curved half-branch
Cube rootf(x)=x3f(x)=\sqrt[3]{x}S-shaped curve
Exponentialf(x)=axf(x)=a^xIncreasing/decreasing curve

Diagram-Based Explanation

When an actual graph cannot be inserted, we can describe its appearance using words.

Graph of y=xy=x

Imagine a coordinate plane. Draw a straight line passing through the origin (0,0)(0,0). The line rises at the same rate as it moves from left to right.

Graph of y=x2y=x^2

Imagine a U-shaped curve with its lowest point at the origin. The left and right sides are mirror images of each other.

Graph of y=∣x∣y=|x|

Imagine the two sides of the letter V meeting at the origin. The graph is symmetric about the yy-axis.

Graph of y=1/xy=1/x

Imagine two separate curved branches. One lies in the first quadrant and the other in the third quadrant. Neither branch touches either coordinate axis.

Important Formulas Related to Functions and Their Graphs

Linear Function

y=mx+cy=mx+c

where:

  • mm = slope
  • cc = yy-intercept

The slope between two points is:m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}

Quadratic Function

y=ax2+bx+cy=ax^2+bx+c

The xx-coordinate of the vertex is:x=−b2ax=-\frac{b}{2a}

The corresponding yy-coordinate is obtained by substituting this value of xx into the function.

Distance Formula

When studying points on a graph, the distance between:(x1,y1)(x_1,y_1)

and(x2,y2)(x_2,y_2)

is:d=(x2−x1)2+(y2−y1)2d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}

Worked Example 1: Evaluating a Function

Given:f(x)=3x+2f(x)=3x+2

Find f(4)f(4).

Solution

Substitute x=4x=4:f(4)=3(4)+2f(4)=3(4)+2=12+2=12+2f(4)=14\boxed{f(4)=14}

Therefore, the point:(4,14)(4,14)

lies on the graph of the function.

Worked Example 2: Finding Points for a Graph

Draw the graph of:y=x+2y=x+2

Solution

Choose some values of xx.

xxy=x+2y=x+2Point
-20(−2,0)(-2,0)
-11(−1,1)(-1,1)
02(0,2)(0,2)
13(1,3)(1,3)
24(2,4)(2,4)

Plot these points and join them with a straight line.

Therefore, the graph is a straight line with:slope=1\text{slope}=1

andy-intercept=2y\text{-intercept}=2

Worked Example 3: Graph of a Quadratic Function

Consider:y=x2y=x^2

Find the values of yy for:x=−2,−1,0,1,2x=-2,-1,0,1,2

Solution

For x=−2x=-2:y=(−2)2=4y=(-2)^2=4

For x=−1x=-1:y=(−1)2=1y=(-1)^2=1

For x=0x=0:y=02=0y=0^2=0

For x=1x=1:y=12=1y=1^2=1

For x=2x=2:y=22=4y=2^2=4

Therefore, the points are:(−2,4),(−1,1),(0,0),(1,1),(2,4)(-2,4),(-1,1),(0,0),(1,1),(2,4)

These points form a parabola opening upward.

Worked Example 4: Finding the Slope

Find the slope of the line passing through:(2,3)(2,3)

and(6,11)(6,11)

Solution

Use:m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}

Substitute the values:m=11−36−2m=\frac{11-3}{6-2}m=84m=\frac{8}{4}m=2\boxed{m=2}

Therefore, the slope is 22.

Worked Example 5: Finding the Domain

Find the domain of:f(x)=5x−2f(x)=\frac{5}{x-2}

Solution

The denominator cannot be zero.

Therefore:x−2≠0x-2\neq0

So:x≠2x\neq2

Hence, the domain is all real numbers except 22.

Worked Example 6: Finding the Range

Find the range of:f(x)=x2+1f(x)=x^2+1

Solution

We know:x2≥0x^2\geq0

Therefore:x2+1≥1x^2+1\geq1

The minimum value is 11.

Hence, the range is:y≥1\boxed{y\geq1}

or:[1,∞)\boxed{[1,\infty)}

How Can You Tell Whether a Graph Represents a Function?

A useful method is the vertical line test.

Imagine drawing vertical lines across a graph.

  • If every vertical line touches the graph at most once, the graph represents a function.
  • If a vertical line intersects the graph more than once, the graph does not represent yy as a function of xx.

For example, a parabola opening upward passes the vertical line test.

A circle does not pass the vertical line test because some vertical lines intersect the circle at two points.

Transformations of Graphs

A graph can be shifted, reflected, stretched, or compressed.

Starting with:y=f(x)y=f(x)

Vertical Shift

y=f(x)+ky=f(x)+k

moves the graph upward by kk units when k>0k>0.

Horizontal Shift

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

moves the graph hh units to the right.

Reflection in the x-axis

y=−f(x)y=-f(x)

reflects the graph across the xx-axis.

Reflection in the y-axis

y=f(−x)y=f(-x)

reflects the graph across the yy-axis.

Understanding these transformations helps students quickly sketch more complicated graphs.

Practical Applications of Functions

Functions are not limited to textbook exercises. They are used to describe relationships in real life.

Distance and Time

If a vehicle travels at a constant speed, distance can be represented as a function of time:d(t)=vtd(t)=vt

where vv is speed.

Temperature

A mathematical function can describe how temperature changes with time.

Cost and Quantity

A shop may use a function to represent the total cost of buying a particular number of items.

Population Growth

Exponential functions can be used to model certain types of population growth.

Physics

Functions are widely used to describe motion, velocity, acceleration, and other physical quantities.

Common Mistakes Students Make

1. Confusing Domain and Range

Remember:

  • Domain → input values
  • Range → output values

2. Forgetting That a Function Has One Output for Each Input

A function may have the same output for different inputs, but one input cannot have two different outputs.

3. Sign Errors

Be careful when calculating:(−2)2=4(-2)^2=4

not −4-4.

4. Incorrectly Plotting Ordered Pairs

The first coordinate is xx, and the second is yy:(x,y)(x,y)

5. Joining Points Incorrectly

Some functions have straight-line graphs, while others have curves. The shape of the graph should match the type of function.

6. Ignoring Restrictions

For:f(x)=1xf(x)=\frac{1}{x}

x=0x=0 is not allowed.

For:f(x)=xf(x)=\sqrt{x}

real-valued inputs must satisfy:x≥0x\geq0

Common Questions Students Search For

What is a function in mathematics?

A function is a relation in which every input is associated with exactly one output.

What are functions and their graphs?

Functions describe relationships between inputs and outputs, while their graphs visually represent the corresponding ordered pairs on a coordinate plane.

What are the 10 basic functions and their graphs?

Common basic functions include constant, identity, linear, quadratic, cubic, absolute value, reciprocal, square root, cube root, and exponential functions.

How do I draw the graph of a function?

Choose suitable xx-values, calculate the corresponding yy-values, plot the ordered pairs, and connect them according to the nature of the function.

What is the difference between domain and range?

The domain contains the allowed input values, while the range contains the resulting output values.

How can I identify a function from its graph?

Use the vertical line test. If no vertical line intersects the graph more than once, the graph represents a function.

Functions and Class 9 Mathematics

Students studying Class 9 mathematics can benefit from understanding functions, graphs, coordinate geometry, algebraic expressions, and related concepts together.

For students looking for class 9 maths notes, solved questions, assessments, worksheets, and recorded lessons, Nisar Math Academy provides mathematics learning resources in an online format. Some Class 9 resources are available freely, while additional course materials are available through website membership.

Students can also use class 9 maths video lectures, notes, and assessments for revision and practice.

Conclusion

Functions provide a powerful way to describe relationships between quantities. A function assigns exactly one output to each input, and its graph provides a visual representation of that relationship.

The most useful basic graphs to recognize include the straight line, parabola, V-shaped absolute-value graph, reciprocal graph, square-root graph, cubic graph, and exponential graph.

By learning the functions and their graphs, domain and range, graphing methods, transformations, and common function types, students can build a strong foundation for more advanced mathematics.

Regular practice with tables, ordered pairs, equations, and graphs is one of the best ways to develop confidence in this topic.

Short Revision Notes

Function

A function is a relation in which every input has exactly one output.y=f(x)y=f(x)

Domain

The domain is the set of all permitted input values.

Range

The range is the set of all possible output values.

Important Basic Functions

FunctionFormulaGraph
Constantf(x)=cf(x)=cHorizontal line
Identityf(x)=xf(x)=xStraight line
Linearf(x)=mx+cf(x)=mx+cStraight line
Quadraticf(x)=x2f(x)=x^2Parabola
Cubicf(x)=x3f(x)=x^3S-shaped curve
Absolute value(f(x)=x
Reciprocalf(x)=1/xf(x)=1/xTwo branches
Square rootf(x)=xf(x)=\sqrt{x}Curved graph
Cube rootf(x)=x3f(x)=\sqrt[3]{x}S-shaped curve
Exponentialf(x)=axf(x)=a^xExponential curve

Important Formulas

Slope:m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}

Linear function:y=mx+cy=mx+c

Quadratic function:y=ax2+bx+cy=ax^2+bx+c

Vertex xx-coordinate:x=−b2ax=-\frac{b}{2a}

Distance between two points:d=(x2−x1)2+(y2−y1)2d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}

Vertical Line Test

A graph represents a function if every vertical line intersects it at most once.

10 MCQs on Functions and Their Graphs

1. Which statement correctly defines a function?

A. Every output has exactly one input
B. Every input has exactly one output
C. Every input has at least two outputs
D. Inputs and outputs must always be equal

Correct Answer: B

2. What is the basic identity function?

A. f(x)=x2f(x)=x^2
B. f(x)=1/xf(x)=1/x
C. f(x)=xf(x)=x
D. f(x)=∣x∣f(x)=|x|

Correct Answer: C

3. What is the graph of y=x2y=x^2?

A. Straight line
B. Circle
C. Parabola
D. V-shaped graph

Correct Answer: C

4. Find f(3)f(3) if:

f(x)=2x+5f(x)=2x+5

A. 6
B. 8
C. 10
D. 11

Correct Answer: D

5. What is the domain restriction for:

f(x)=1xf(x)=\frac{1}{x}

A. x>0x>0
B. x<0x<0
C. x≠0x\neq0
D. x=0x=0

Correct Answer: C

6. What is the shape of the graph of y=∣x∣y=|x|?

A. Circle
B. V-shape
C. Parabola
D. Horizontal line

Correct Answer: B

7. What is the slope of the line:

y=3x+4y=3x+4

A. 3
B. 4
C. -3
D. -4

Correct Answer: A

8. What is the range of:

f(x)=x2f(x)=x^2

for real xx?

A. y<0y<0
B. y>0y>0
C. y≥0y\geq0
D. All real values of yy

Correct Answer: C

9. Which graph has the general shape of a parabola?

A. Linear function
B. Quadratic function
C. Constant function
D. Reciprocal function

Correct Answer: B

10. Which test is commonly used to determine whether a graph represents a function?

A. Horizontal line test
B. Vertical line test
C. Distance test
D. Slope test

Correct Answer: B

Worksheet / Assignment

Part A: Definitions

  1. Define a function in your own words.
  2. What is meant by the domain of a function?
  3. What is meant by the range of a function?
  4. What is the vertical line test?

Part B: Conceptual Questions

  1. State the general form of a linear function.
  2. What is the general shape of the graph of a quadratic function?
  3. Why is x=0x=0 excluded from the domain of f(x)=1/xf(x)=1/x?
  4. Name four basic functions and state the general shape of each graph.

Part C: Numerical Questions

  1. If:

f(x)=4x−3f(x)=4x-3

find f(5)f(5).

  1. Complete the table for:

y=x2+1y=x^2+1

using:x=−2,−1,0,1,2x=-2,-1,0,1,2

  1. Find the slope of the line passing through:

(1,2)(1,2)

and(5,10)(5,10)

  1. Find the domain of:

f(x)=3x+4f(x)=\frac{3}{x+4}

  1. Find the range of:

f(x)=x2+2f(x)=x^2+2

for real xx.

Part D: Word Problems

  1. A taxi charges a fixed amount of Rs. 100 plus Rs. 50 per kilometre. Write a function C(x)C(x) for the total cost of travelling xx kilometres. Find the cost for 6 kilometres.
  2. The distance travelled by a car moving at a constant speed of 60 km/h is represented by:

d(t)=60td(t)=60t

where tt is time in hours. Find the distance travelled in 2.5 hours.

Worksheet Answer Key

  1. A function is a relation in which each input has exactly one output.
  2. The domain is the set of permitted input values.
  3. The range is the set of possible output values.
  4. The vertical line test determines whether a graph represents a function.

y=mx+cy=mx+c

  1. A parabola.
  2. Because division by zero is undefined.
  3. Examples: linear—straight line; quadratic—parabola; absolute value—V-shape; reciprocal—two branches.

f(5)=4(5)−3=20−3=17f(5)=4(5)-3=20-3=17

Answer: 17

xxx2+1x^2+1
-25
-12
01
12
25

m=10−25−1=84=2m=\frac{10-2}{5-1} =\frac{8}{4}=2

Answer: 2

x+4≠0x+4\neq0

Therefore:x≠−4\boxed{x\neq-4}

Since:x2≥0x^2\geq0

we have:x2+2≥2x^2+2\geq2

Therefore:y≥2\boxed{y\geq2}

The function is:C(x)=100+50xC(x)=100+50x

For 6 km:C(6)=100+50(6)C(6)=100+50(6)=100+300=100+300Rs. 400\boxed{Rs.\ 400}

d(2.5)=60(2.5)d(2.5)=60(2.5)150 km\boxed{150\text{ km}}

Frequently Asked Questions

1. What are functions and their graphs?

A function describes a relationship in which each input has exactly one output. Its graph is the set of corresponding points (x,y)(x,y) plotted on a coordinate plane.

2. What are the 10 basic functions and their graphs?

Ten commonly studied basic functions are constant, identity, linear, quadratic, cubic, absolute value, reciprocal, square root, cube root, and exponential functions.

3. What is the easiest way to graph a function?

Make a table of suitable xx-values, calculate the corresponding yy-values, plot the ordered pairs, and connect them according to the function’s graph shape.

4. What is the difference between domain and range?

The domain contains the input values, while the range contains the output values.

5. What is the vertical line test?

It is a graphical method for checking whether a graph represents a function. A vertical line must not intersect the graph more than once.

6. What is the graph of a linear function?

The graph of a linear function is a straight line.

7. What is the graph of a quadratic function?

The graph of a quadratic function is a parabola.

8. Where can students find Class 9 mathematics learning resources?

Students can find mathematics notes, recorded lectures, assessments, worksheets, and other learning resources through educational platforms such as Nisar Math Academy.

You May be Interested In:

Applications of Polygons: Uses of Polygons in Our Life with Examples

Ex 12.1 Class 9th – Complete Solution | Class 9 Maths Notes Chapter 12

Geometrical Properties of Parallelograms: Definition, Properties, Formulas and Examples

Join Nisar Math Academy for Class 9 Maths Video Lectures Notes and Assessments
================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

© Copyright 2026 - Functions and Their Graphs: Definition, Types, Examples and Basic Graphs « Nisar Math Academy. All rights reserved.

Nisar Ahmad