Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Linear Functions Explained: Definition, Formula, and Graphs

Reviewed by:
ffImage
hightlight icon
highlight icon
highlight icon
share icon
copy icon
SearchIcon

How to Identify and Graph a Linear Function in Maths?

The concept of linear functions plays a key role in mathematics and is widely applicable to both real-life situations and exam scenarios. Understanding linear functions can help you solve equations, plot graphs, and model many real-life patterns—making it a fundamental topic for students in classes 8–12, as well as in JEE, NEET, and Olympiad preparation.


What Is a Linear Function?

A linear function is defined as a function that creates a straight line when graphed on a coordinate plane. The general form is \( f(x) = mx + c \) (or \( y = mx + c \)), where m is the slope and c is the y-intercept. Linear functions are used throughout mathematics in solving linear equations, understanding motion (constant speed), and business (cost vs. quantity problems).


Key Formula for Linear Functions

Here’s the standard formula: \( f(x) = mx + c \)


Where:
m = slope (rate of change)
c = y-intercept (where the line crosses the Y-axis)
x = independent variable
f(x) or y = dependent variable


Key Properties of Linear Functions

Property Explanation
Degree Always 1 (the highest exponent of x)
Graph Shape Straight Line
Rate of Change Constant (given by slope m)
Y-Intercept Where the line crosses the Y-axis (value c)
One Variable Standard linear function involves one independent variable

Forms of Linear Function Equations

Form Equation Usage
General \( ax + by + c = 0 \) Works for one or two variables
Slope-Intercept \( y = mx + c \) Most popular form for graphing
Point-Slope \( y - y_1 = m(x - x_1) \) Best if a point and slope are known
Intercept \( x/a + y/b = 1 \) Highlights intercepts easily

Graphing Linear Functions

To graph a linear function such as \( f(x) = 2x + 1 \):

  1. Choose any two x-values (for example, x = 0 and x = 2).
  2. Calculate y for each x:
    If x=0: y = 2(0) + 1 = 1
    If x=2: y = 2(2) + 1 = 5
  3. Plot the points (0,1) and (2,5) on a graph paper.
  4. Draw a straight line connecting the two points. That is the graph of the function.

Notice: The line is straight, not curved—this is a unique feature of linear functions.


Types & Examples of Linear Functions

  • Standard Linear Function: \( f(x) = 3x + 6 \)
  • Constant Linear Function: \( f(x) = 2 \) (slope = 0, flat line)
  • Linear Function of Two Variables: \( 2x + 3y = 7 \)
  • Real Life Example: "A taxi charges ₹50 as base fare and ₹10 per km" is modelled as \( f(x) = 10x + 50 \)

Step-by-Step Illustration

Let’s solve for x: \( 3x + 5 = 20 \)

1. Start with the equation: \( 3x + 5 = 20 \)

2. Subtract 5 from both sides: \( 3x = 15 \)

3. Divide by 3: \( x = 5 \)

4. Final Answer: x = 5

Common Linear Function Word Problem

Example: "If a gym membership costs ₹200 per month plus a registration fee of ₹500, write the linear function and find the total cost for 6 months."

1. Cost formula: Cost = 200x + 500, where x = number of months.

2. For 6 months: Cost = 200(6) + 500 = 1200 + 500 = ₹1700

3. Final Answer: ₹1700 is the total cost for 6 months.

Linear vs Nonlinear Functions

Feature Linear Function Nonlinear Function
Graph Straight Line Curve (parabola, circle, etc.)
Equation Only first power of x (e.g., 2x+3) Powers of x more than one, square roots, etc.
Slope Constant Variable (changes)

Speed Trick or Vedic Shortcut

Here’s a quick shortcut for graphing: If you know the y-intercept (c) and the slope (m) in \( y = mx + c \), plot the point (0, c), then use the slope (“rise over run”) to mark another point quickly. Vedic tricks like reverse calculation or digit-sum checks can also help spot calculation errors quickly. Vedantu’s live classes share more such shortcuts to boost confidence for JEE and boards.


Try These Yourself

  • Write a linear function that passes through (0, 2) with slope 5.
  • Is \( y = 2x^2 + 3 \) a linear function? Why or why not?
  • Graph \( y = -4x + 1 \) and list two points on its line.
  • Find the equation of a line parallel to \( y = 3x - 7 \) and passing through (2,5).

Frequent Errors and Misunderstandings

  • Confusing linear and nonlinear equations (e.g., treating \( y = x^2 + 2 \) as linear).
  • Forgetting that in the standard form \( y = mx + c \), x must have power 1 only.
  • Swapping x and y axes while plotting points on the graph.
  • Not using enough points for the graph, leading to a crooked line instead of a straight one.

Relation to Other Concepts

The idea of linear functions connects closely with linear equations in one variable, systems of equations, slope, and coordinate geometry. Mastering linear functions makes it easier to learn about quadratic functions, straight line equations, and calculus topics.


Classroom Tip

A quick way to remember linear functions: “Straight line, straight solution!” If the highest power of your variable is 1, you’re safe—it's a linear function. Teachers in Vedantu’s sessions also use color-coding on graphs to help students instantly spot the slope and intercept, making it easier during revision or quick problem-solving.


We explored linear functions—from definition, formula, examples, common mistakes, and links to other maths topics. Practice more questions and access interactive practice sheets at Vedantu to master linear functions for any exam or classroom challenge. Your confidence will soar as you connect patterns in algebra and everyday life with this powerful concept!


Explore Related Topics:


FAQs on Linear Functions Explained: Definition, Formula, and Graphs

1. What is a linear function in Maths?

A linear function in Maths is a relationship between two variables where the change in one variable is always proportional to the change in the other. It can be represented by an equation of the form f(x) = mx + c, where 'm' represents the slope (rate of change) and 'c' represents the y-intercept (the point where the line crosses the y-axis). The graph of a linear function is always a straight line.

2. How do you identify if an equation is a linear function?

An equation represents a linear function if it can be written in the form f(x) = mx + c or a similar equivalent form like ax + by = c. Key characteristics include: the highest power of the variable (x) is 1; there are no products or divisions of variables; and there are no variables within radicals or exponents.

3. What are the different forms of a linear function equation?

Linear functions can be expressed in several forms, each useful in different contexts:

  • Slope-intercept form: y = mx + c
  • Standard form: Ax + By = C
  • Point-slope form: y - y₁ = m(x - x₁)
  • Two-point form: (y - y₁) / (x - x₁) = (y₂ - y₁) / (x₂ - x₁)

4. What is the graph of a linear function?

The graph of a linear function is always a straight line. The slope (m) determines the steepness and direction of the line, while the y-intercept (c) indicates where the line intersects the y-axis.

5. What is the difference between linear and nonlinear functions?

A linear function has a constant rate of change and graphs as a straight line. A nonlinear function has a variable rate of change and graphs as a curve (parabola, hyperbola, etc.). Nonlinear functions contain variables raised to powers other than 1, or variables within radicals or exponents.

6. How is slope calculated in a linear function?

The slope (m) of a linear function represents the rate of change. It's calculated using the formula: m = (y₂ - y₁) / (x₂ - x₁), where (x₁, y₁) and (x₂, y₂) are any two points on the line. A positive slope indicates an increasing line, a negative slope indicates a decreasing line, and a slope of zero indicates a horizontal line.

7. How do you find the x-intercept of a linear function?

To find the x-intercept (where the line crosses the x-axis), set y = 0 in the linear function equation and solve for x. The x-intercept represents the value of x when the function's output is zero.

8. How do you graph a linear function using the slope and y-intercept?

First, plot the y-intercept (c) on the y-axis. Then, use the slope (m) to find a second point. Remember, slope is rise/run; so, from the y-intercept, move 'rise' units vertically and 'run' units horizontally to locate the second point. Draw a straight line through both points to complete the graph.

9. What are some real-life applications of linear functions?

Linear functions model many real-world scenarios. Examples include: calculating the cost of goods (with a fixed price per unit and a setup fee); determining distance traveled at a constant speed; analyzing simple interest calculations; and predicting population growth under constant growth conditions.

10. What is the domain and range of a linear function?

Unless otherwise specified, the domain (all possible x-values) and range (all possible y-values) of a linear function are both all real numbers ((-∞, ∞)).

11. How do you find the equation of a line given two points?

First, calculate the slope (m) using the formula m = (y₂ - y₁) / (x₂ - x₁). Then, use the point-slope form: y - y₁ = m(x - x₁), substituting the slope and the coordinates of one of the points. Simplify the equation to obtain the slope-intercept form (y = mx + c) or standard form.

12. What does it mean when the slope of a linear function is zero?

A slope of zero indicates a horizontal line. This means there is no change in the y-value as the x-value changes; the function represents a constant value.