Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Mathematics
  • Number System and Arithmetic
  • Algebra
  • Trigonometry
  • Statistics
  • Probability
  • Geometry
  • Mensuration
  • Calculus
  • Logarithms
Open In App
Next Article:
Slope Intercept Form
Next article icon

Slope Intercept Form

Last Updated : 20 Jun, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

The slope-intercept formula is one of the formulas used to find the equation of a line. The slope-intercept formula of a line with slope m and y-intercept b is, y = mx + b. Here (x, y) is any point on the line. It represents a straight line that cuts both axes.

Slope intercept form of the equation is used to represent the equation of a straight line when the slope of the equation and the intercept on the y-axis is given.

In this article, we will learn about the slope-intercept form of a straight line, its derivation, graphs, and examples.

Table of Content

  • What is Slope Intercept Form?
  • How to Derive Slope Intercept Form?
  • Equation Related to Slope Intercept Form
    • Slope Intercept Form (When x Intercept is given)
    • Slope Intercept Form of Line Passing Through Origin
  • Converting Standard Form to Slope Intercept Form
  • Slope Intercept Form Graph
  • Slope Intercept Formula

What is Slope Intercept Form?

Slope Intercept Form of a Line is a way of representing the straight line in the cartesian plane. As the name suggests, in this form we are given the slope of the straight line and its intercept on the y-axis. The general method of representing the straight line in slope intercept form is

y = mx + c

Where m is the slope of the straight line and c is the intercept of the line on the y-axis.

The slope (m) of the line represents the gradient of the line and is calculated using the slope formula,

m = tanθ

Where θ is the angle made by the straight line with the x-axis.

And c is the intercept made by the straight line on the y-axis. If the intercept made by the straight line is in the negative y-axis then the equation of the straight line is, y = mx - c.

General Equation of Slope Intercept Form

The slope-intercept form of the equation represents the equation of the straight line having a specific slope and making an intercept with the y-axis.

As we represent the slope of the line with 'm'. The line cut the y-axis at (0, c) then the intercept made by the line with the y-axis is 'c', and the Slope Intercept Form Equation is,

y = mx + c

OR

y = (tan θ)x + c

The slope of the line is the gradient of the line with the x-axis. If the line makes an angle θ then its slope is given by taking the tangent of the angle(θ), i.e.

m = tan θ

How to Derive Slope Intercept Form?

We can derive the slope intercept form of any line:

  • From Point-Slope Form
  • From Two Point Form

Let's discuss these methods in detail.

Derivation from Point-Slope Form

The slope intercept of the line is easily derived using the formula for the equation of the straight line passing through a fixed coordinate and making the slope m with the x-axis.

Now to prove this take a line L with slope m with the x-axis and which cuts the y-axis at a distance of c units from the origin.

Slope Intercept Form
Slope Intercept Form

The distance 'c' on the y-axis is the y-intercept and the coordinate of the line where it cuts the y-axis is (0, c). It is given that the slope of the line is m.

We know that the equation of a line in point-slope form, that is passing through a point (x1, y1) and having the slope m is,

(y – y1) = m(x – x1)...(i)

Given, (x1, y1) = (0, c)

Putting this value in eq(i), we get;

y – c = m(x – 0)

y – c = mx

y = mx + c

This is the equation of the straight line in Intercept form. Here, m represents the slope of the straight line, and c represent the intercept made by the line on the y-axis.

Derivation from Two Point Form

The Two-Point Form of a linear equation is given by:

y - y_1 = \frac{y_2 - y_1}{x_2 - x_1} (x - x_1)

⇒ y = \left(\frac{y_2 - y_1}{x_2 - x_1}\right) x - \left(\frac{y_2 - y_1}{x_2 - x_1}\right)x_1 + y_1

As - \left(\frac{y_2 - y_1}{x_2 - x_1}\right)x_1 + y_1 is constant, thus let C = - \left(\frac{y_2 - y_1}{x_2 - x_1}\right)x_1 + y_1

Therefore, y = \left(\frac{y_2 - y_1}{x_2 - x_1}\right) x + C

As we know that slope of any line passing through two points is given as: m = \frac{y_2 - y_1}{x_2 - x_1}

Thus, y = mx + C

Equation Related to Slope Intercept Form

There are some special cases of slope intercept form that are discussed as follows:

Slope Intercept Form (When x Intercept is given)

Equation of the line can also be represented when the x-intercept of the line is given. The slope-intercept form if the x-intercept of the line is,

y = m(x – d)

Where,

  • m is the Slope of the straight line, and
  • d is the x-intercept of the straight line.

Slope Intercept Form of Line Passing Through Origin

The intercept form of the equation can also be made to pass through the origin (0, 0). If the line passes through the origin then the y-intercept made by the line is 0, i.e. c = 0 in this case. Suppose a line with slope m passes through the origin, then its equation of the line in slope-intercept form is,

y = mx

Where m is the slope of the line.

Converting Standard Form to Slope Intercept Form

The standard form of the equation of the straight line is,

ax + by + c = 0

We can convert slope into standard form of line as:

ax + by + c = 0

⇒ by = -ax - c

⇒ y = (-a/b)x + (-c/b)

Comparing with y = mx + c

We get the slope of line ax + by + c = 0 as m = (-a/b) and the y-intercept is (-c/b)

Slope Intercept Form Graph

Graph of the Slope Intercept Form of the straight line can easily be made using the points on the line. The slope-intercept form of the line is very interesting as it directly gives us the y-intercept made by the line, i.e. the point on the y-axis is directly given.

The slope-intercept form of the straight line is,

y = mx + c

Where c represents the y-intercept made by the line. Thus, the point at which the line cuts the y-axis is (0, c). Also, the slope of the line made by the x-axis is also directly given in the line it is represented by 'm' and it tells us about the gradient made by the line.

The image given below represents the graph of the slope-intercept form of the line.

Slope Intercept form Graph

Slope Intercept Formula

The slope-intercept formula is a way to express the equation of a straight line in the Cartesian coordinate system. It is one of the most commonly used forms for the equation of a line because it provides a direct way to identify the slope and the y-intercept of the line.

The slope-intercept form of a linear equation is given by:

y = mx + c

Read more,

  • Point Slope Form of Line
  • X and Y Intercept
  • Equation of Straight Line

Examples on Slope Intercept Form of a Line

Example 1: Find the equation of the straight line passing through (3, 3) and that has slope m = 5.

Solution:

Given,

Coordinates at which the line passes are (3, 3)

Slope of the line (m) = 5

Slope-intercept form of the line is,

y = mx+c

Substituting the values of (x, y) and m to get the value of c.

3 = 5(3) + c

⇒ 3 = 15 + c

⇒ c = 3 - 15 = -12

Thus, the required equation is,

y = 5x - 12

Example 2: Find the equation of the straight line passing through (0, 0) and that has slope m = 1/3.

Solution:

Given, Coordinates at which the line passes are (0, 0)

Slope of the line (m) = 1/3

Slope-intercept form of the line is,

y = mx+c

Substituting the values of (x, y) and m to get the value of c.

0 = 1/3(0) + c

⇒ c = 0

Thus, the required equation is,

y = (1/3)x + 0

⇒ 3y = x

Example 3: Find the equation of the lines if m = 1 and,

  • y-intercept made by line (c) is 4
  • x-intercept made by line (d) is 7

Solution:

Given: m = 1

(i) y-intercept = c = 4

Equation of the line in slope-intercept form is,

y = mx + c

⇒ y = (1)x + (4)

⇒ y = x + 4

⇒ x – y + 4 = 0

This is the required equation.

(ii) x-intercept = d = 7/3

Equation of line if slope and x-intercept given is,

y = m(x – d)

⇒ y = (1)[x – 7]

⇒ y = x - 7

⇒ x – y – 7 = 0

This is the required equation.

Example 4: Find the equation of the line in standard form if the slope-intercept form of the line is y = 2/3(x) + 7/9.

Solution:

Given equation,

y = 2/3(x) + 7/9

Standard form of the equation is ax + by + c = 0

Now given the equation in slope-intercept form,

 y = 2/3(x) + 7/9

Simplifying,

⇒ y = 6/9(x) + 7/9

⇒ y = (6x + 7)/9

⇒ 9y = 6x + 7

⇒ 6x + (-9)y + 7 = 0

This is the required equation in standard form and a = 6, b = -9, and c = 7.


Next Article
Slope Intercept Form

F

farhanhaider418
Improve
Article Tags :
  • Mathematics
  • School Learning
  • Class 11
  • Maths-Formulas
  • Maths-Class-11
  • Geometry
  • Math-Concepts

Similar Reads

    CBSE Class 11 Maths Notes
    CBSE Class 11 Maths Revision Notes have been designed in the most basic and detailed format possible, covering nearly all domains such as differential calculus, arithmetic, trigonometry, and coordinate geometry. We know how hard it gets when you shift to an altogether new grade where subjects are no
    15+ min read

    Chapter 1: Sets

    Representation of a Set
    Sets are defined as collections of well-defined data. In Math, a Set is a tool that helps to classify and collect data belonging to the same category. Even though the elements used in sets are all different from each other, they are all similar as they belong to one group. For instance, a set of dif
    8 min read
    Types Of Sets
    In mathematics, a set is defined as a well-defined collection of distinct elements that share a common property. These elements— like numbers, letters, or even other sets are listed in curly brackets "{ }" and represented by capital letters. For example, a set can include days of the week. The diffe
    13 min read
    Universal Sets
    Universal Set is a set that has all the elements associated with a given set, without any repetition. Suppose we have two sets P = {1, 3, 5} and Q = {2, 4, 6} then the universal set of P and Q is U = {1, 2, 3, 4, 5, 6}. We generally use U to denote universal sets. Universal Set is a type of set that
    6 min read
    Venn Diagram
    Venn diagrams are visual tools used to show relationships between different sets. They use overlapping circles to represent how sets intersect, share elements, or stay separate. These diagrams help categorize items, making it easier to understand similarities and differences. In mathematics, Venn di
    14 min read
    Operations on Sets
    Sets are fundamental in mathematics and are collections of distinct objects, considered as a whole. In this article, we will explore the basic operations you can perform on sets, such as union, intersection, difference, and complement. These operations help us understand how sets interact with each
    15+ min read
    Union of Sets
    Union of two sets means finding a set containing all the values in both sets. It is denoted using the symbol '∪' and is read as the union. Example 1:If A = {1, 3. 5. 7} and B = {1, 2, 3} then A∪B is read as A union B and its value is,A∪B = {1, 2, 3, 5, 7}Example 2:If A = {1, 3. 5.7} and B = {2, 4} t
    12 min read

    Chapter 2: Relations & Functions

    Cartesian Product of Sets
    The term 'product' mathematically refers to the result obtained when two or more values are multiplied together. For example, 45 is the product of 9 and 5.To understand the Cartesian product of sets, one must first be familiar with basic set operations such as union and intersection, which are appli
    7 min read
    Relations and Functions
    In mathematics, we often deal with sets of numbers or objects and the ways they are connected. Two important concepts that help us describe these connections are relations and functions.A relation is simply a connection between two sets of objects. Think of it as a rule that pairs elements from one
    3 min read
    Domain and Range of Relations
    The domain is the set of all possible input values (the "x" values), and the range is the set of all possible output values (the "y" values) in a relation.For any two non-empty sets A and B, we define the relation R as the subset of the Cartesian product of A × B where each member of set A is relate
    8 min read
    Piecewise Function
    Piecewise Function is a function that behaves differently for different types of input. As we know a function is a mathematical object which associates each input with exactly one output. For example: If a function takes on any input and gives the output as 3. It can be represented mathematically as
    11 min read
    Range of a Function
    Functions in math can be thought of as vending machines. Given the money in the form of input, they give some cans or cookies in return. Similarly, functions take some input numbers and give us some output. It can be said that, in real life, Everything can be formulated and solved with the help of f
    7 min read

    Chapter 3: Trigonometric Functions

    Measuring Angles
    Measurement of angles is very important in geometry for solving various geometrical problems and comparing angles in various geometrical figures. We use various geometric tools such as a protractor, and a compass for measuring angles. There are various types of angles measured by us and before learn
    7 min read
    Trigonometric Functions
    Trigonometric Functions, often simply called trig functions, are mathematical functions that relate the angles of a right triangle to the ratios of the lengths of its sides.Trigonometric functions are the basic functions used in trigonometry and they are used for solving various types of problems in
    6 min read
    Trigonometric Functions of Sum and Difference of Two Angles
    Trigonometry is a branch of mathematics, which deals with the angles, lengths, and heights of triangles and their relationships. It had played an important role in calculating complex functions or large distances which were not possible to calculate without trigonometry. While solving problems with
    15+ min read

    Chapter 4: Principle of Mathematical Induction

    Principle of Mathematical Induction
    Mathematical induction is a concept in mathematics that is used to prove various mathematical statements and theorems. The principle of mathematical induction is sometimes referred to as PMI. It is a technique that is used to prove the basic theorems in mathematics which involve the solution up to n
    11 min read

    Chapter 5: Complex Numbers and Quadratic Equations

    Complex Numbers
    Complex numbers are an essential concept in mathematics, extending the idea of numbers to include solutions for equations that don't have real solutions. Complex numbers have applications in many scientific research areas, signal processing, electromagnetism, fluid dynamics, quantum mechanics, and v
    12 min read
    Algebra of Real Functions
    The algebra of real functions refers to the study and application of algebraic operations on functions that map real numbers to real numbers. A function can be thought of as a rule or set of rules which map an input to an output knows as its image. It is represented as x ⇢ Function ⇢ y. A real funct
    5 min read
    Algebraic Operations on Complex Numbers
    A complex number is a number that includes both a real and an imaginary part. It is written in the form:z = a + biWhere:a is the real part,b is the imaginary part,i is the imaginary unit, satisfying i2 = −1.Algebraic operations on complex numbers follow specific rules based on their real and imagina
    7 min read
    Polar Representation of Complex Numbers
    Complex numbers, which take the form z = x + yi, can also be represented in a way that highlights their geometric properties. This alternative representation is known as the polar form. The polar representation of a complex number expresses it in terms of its magnitude (modulus) and direction (argum
    9 min read
    Absolute Value of a Complex Number
    The absolute value (also called the modulus) of a complex number z = a + bi is its distance from the origin in the complex plane. The absolute value tells you how far a number is from zero, regardless of its direction (positive or negative).It is denoted as ∣z∣ and is given by the formula:|z| = \sqr
    7 min read
    Conjugate of Complex Numbers
    In the world of mathematics, complex numbers are one of the most important discoveries by mathematicians as they help us solve many real-life problems in various fields such as the study of electromagnetic waves, engineering, and physics.The Conjugate of a Complex Number is also a complex number obt
    6 min read
    Imaginary Numbers
    Imaginary numbers are numbers as the name suggests are the number that is not real numbers. All the numbers real and imaginary come under the categories of complex numbers. Imaginary numbers are very useful in solving quadratic equations and other equations whose solutions can not easily be found us
    9 min read

    Chapter 6: Linear Inequalities

    Compound Inequalities
    Compound Inequalities are the combination of two or more inequalities. These inequalities are combined using two conditions that are AND, and OR. These conditions have specific meanings and they are solved differently. The inequities in compound inequalities are individually solved using normal rule
    10 min read
    Algebraic Solutions of Linear Inequalities in One Variable
    A linear inequality is a mathematical expression involving an inequality symbol (<, >, ≤, or ≥) and a linear expression. Unlike linear equations, which give a specific solution, linear inequalities define a range of possible solutions.Example: 2x+3>5 In this case, the inequality indicates t
    8 min read
    Graphical Solution of Linear Inequalities in Two Variables
    We know how to formulate equations of different degree, and it is used a lot in real life, but the question arises, is it always possible to convert a situation into an equation? Sometimes we get statements like, the number of Covid cases per day in Delhi has reached more than 10,000. This phrase “L
    8 min read
    Solving Linear Inequalities Word Problems
    We are well versed with equations in multiple variables. Linear Equations represent a point in a single dimension, a line in a two-dimensional, and a plane in a three-dimensional world. Solutions to linear inequalities represent a region of the Cartesian plane. It becomes essential for us to know ho
    10 min read

    Chapter 7: Permutations and Combinations

    Fundamental Principle of Counting
    The fundamental principle of counting is a basic concept used to determine the total number of possible outcomes in a situation where there are multiple independent events. It allows us to count a large number of possibilities without needing to list each one individually.For example, consider guess
    11 min read
    Permutation
    In Mathematics, Permutation is defined as a mathematical concept that determines the number of possible arrangements for a specific set of elements. therefore, it plays a big role in computer science, cryptography, and operations research. For example, take a set {1, 2, 3}:All Permutations taking al
    15+ min read
    Combinations
    Combination is a way of choosing items from a set, (unlike permutations) when the order of selection doesn't matter. In smaller cases, it's possible to count the number of combinations. Combination refers to the mixture of n things taken k at a time without repetition.Example: For set S = {a, b, c},
    8 min read

    Chapter 8: Binomial Theorem

    Binomial Theorem
    Binomial theorem is a fundamental principle in algebra that describes the algebraic expansion of powers of a binomial. According to this theorem, the expression (a + b)n where a and b are any numbers and n is a non-negative integer. It can be expanded into the sum of terms involving powers of a and
    15+ min read
    Pascal's Triangle
    Pascal's Triangle is a triangular arrangement of numbers where each number is the sum of the two numbers directly above it in the previous row. It is named after the French mathematician Blaise Pascal, although it was studied by mathematicians in various cultures long before him.Various patterns can
    9 min read

    Chapter 9: Sequences and Series

    Sequences and Series
    A sequence is an ordered list of numbers following a specific rule. Each number in a sequence is called a "term." The order in which terms are arranged is crucial, as each term has a specific position, often denoted as an​, where n indicates the position in the sequence.For example:2, 5, 8, 11, 14,
    10 min read
    General and Middle Terms - Binomial Theorem - Class 11 Maths
    Binomial theorem or expansion describes the algebraic expansion of powers of a binomial. According to this theorem, it is possible to expand the polynomial "(a + b)n" into a sum involving terms of the form "axzyc", the exponents z and c are non-negative integers where z + c = n, and the coefficient
    7 min read
    Arithmetic Series
    An arithmetic series is the sum of the terms of an arithmetic sequence, where an arithmetic sequence is a sequence of numbers in which the difference between consecutive terms is constant. Or we can say that an arithmetic progression can be defined as a sequence of numbers in which for every pair of
    5 min read
    Arithmetic Sequence
    An arithmetic sequence or progression is defined as a sequence of numbers in which the difference between one term and the next term remains constant.For example: the given below sequence has a common difference of 1.1 2 3 4 5 . . . n ⇑ ⇑ ⇑ ⇑ ⇑ . . . 1st 2nd 3rd 4th 5th . . . nth TermsThe Arithmetic
    8 min read
    Geometric Progression or GP
    Geometric Progression (GP) is a sequence of numbers where each term after the first is found by multiplying the previous term by a constant called the common ratio.For Example, the sequence given below forms a GP with a common ratio of 2 1 2 4 8 16 . . . n⇑ ⇑ ⇑ ⇑ ⇑ . . . 1st 2nd 3rd 4th 5th . . . nt
    12 min read
    Geometric Series
    In a Geometric Series, every next term is the multiplication of its Previous term by a certain constant, and depending upon the value of the constant, the Series may increase or decrease.Geometric Sequence is given as: a, ar, ar2, ar3, ar4,..... {Infinite Sequence}a, ar, ar2, ar3, ar4, ....... arn {
    3 min read
    Arithmetic Progression and Geometric Progression
    Arithmetic Progression and Geometric Progression: The word "sequence" in English means a collection of some numbers or objects in such a way that it has a first member, a second member, and so on. Sequences can be of anything, for example. - January, February, .... is the sequence of months in a yea
    10 min read
    Special Series in Maths - Sequences and Series | Class 11 Maths
    Special Series: A series can be defined as the sum of all the numbers of the given sequence. The sequences are finite as well as infinite. In the same way, the series can also be finite or infinite. For example, consider a sequence as 1, 3, 5, 7, … Then the series of these terms will be 1 + 3 + 5 +
    10 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences