Writing Slope-Intercept Equations
Last Updated : 09 Nov, 2022
Straight-line equations, also known as "linear" equations, have simple variable expressions with no exponents and graph as straight lines. A straight-line equation is one that has only two variables: x and y, rather than variables like y2 or √x. Because it contains information about these two properties, one type of straight-line equation is called the slope-intercept form.
The equation of a straight line is given as:
y = mx + c
where m and c are constants, has a graph that is a straight line.
e.g.:
y = 3x / 2 + 5, y = 2 x + 7 etc.
Slope-intercept form of a straight line
The slope-intercept form of a straight line is probably the most frequently used way to express the equation of a line. Slope-intercept form i.e. y = mx + c is the equation of a straight line whose slope is m and which makes an intercept c on the y-axis. Here m and c can be any two real numbers.
The slope (or gradient) of the line is defined by the value of m in the equation. It may be either a positive, negative, or zero value.
- Positive gradient lines slope upwards from left to right.
- Negative gradient lines slant backward from left to right.
- Horizontal lines have a zero gradient.
The value of c is called the vertical intercept of the line. It is the value of y when x = 0. When drawing a line, c gives the position where the line cuts the vertical axis.
e.g.: y = 3x + 2, here the slope of the line is 3 (i.e. m = 3) and it makes an intercept of 2 on the y - axis (i.e. c = 2).
In order to use the slope-intercept equation, all needed to do is that first find the slope of a line and secondly determine the y-intercept of a line.
Now, Let's learn how to write the slope-intercept equation of a line, there are three different of it that are:
1. Slope-intercept equation from a graph
Equations in slope intercept form are formed by combining the slope and y-intercept of a line to form the following equation: y = m x + c.
To build a slope-intercept equation, one will need to use a graph to locate both the slope (m) and the y -intercept (b). Let's take a look at the process with the help of examples as:
Example 1: Find the slope-intercept form of line 3x - y + 2 = 0 from the graph shown below:
Graphical representation of equation: 3x-y+2 = 0 Solution:
In the above figure, the slope of the line is 3 which makes an intercept of 2 on y-axis.
Now, if the equation of a line isn't given, but the graph is given, then mark the x and y intercepts on the graph. Therefore, in the above graph
x-intercept is -2/3 and y-intercept is 2.
The slope of the line defined as the ratio of the change in y to the change in x between any two points on the line i.e.,
Slope = Change in y / Change in x
= (0 - 2) / (-2/3 - 0)
= 3
Therefore, the slope of the line is 3 which is making an intercept of 2 on y-axis. So, m is 3 and c is 2 and the equation of line from the graph is:
y = 3x + 2.
Example 2: Find the equation of the line having slope equal to 2 whose graph is shown below:

Solution:
From the given graph,
The slope(m) of the line is 2, and it is having y-intercept at (0,3).
So, the value of c = 3.
Putting the values of m and c, in the equation of line as:
y = mx +c
= (2)x + (3)
= 2x + 3
Hence, the equation of the line is: y = 2x + 3.
2. Slope-intercept equation from slope and a point
If the slope of the line is given which is passing through a point (x1, y1), then equation of line can be given as:
y - y1 = m(x - x1)
This form of the equation of a straight line is also known as “point-slope” form.
Example 1: Find the equation of a straight line passing through the point (3,2) having slope equal to 3.
Solution:
The graph for the straight line passing through the point (3,2) having slope equal to 3 is:

Given that,
Slope (m) = 3, and (x1, y1) = (3, 2)
The point-slope form is:
y - y1 = m(x - x1)
Now putting the values in the equation:
y - 2 = 3(x - 3)
= 3x - 9
y = 3x - 9 + 2
= 3x - 7
Hence, the equation of the line is: y = 3x - 7.
How can point-slope form be written as slope-intercept form?
Since, the slope-intercept form (i.e. y = mx + c) and point-slope form both are same equation but in different form.
The value of c (called the y-intercept) is where the line crosses the y-axis.
So point (x1, y1) is actually at (0, c) and the equation becomes:
y − y1 = m(x − x1)
(x1, y1) is actually (0, c): y − c = m(x − 0)
y − c = mx
y = mx + c
So, if one point on the line and the slope of the line is known, then the slope-intercept form as point-slope form can also be written.
Example 2: A line having slope, 4 and making its x-intercept at (5,0). Find its equation.
Solution:
Given that,
The slope (m) = 4, and (x1, y1) = (5, 0)
The point-slope form is:
y - y1 = m(x - x1)
Now putting the values in the equation:
y - 0 = 4(x - 5)
= 4x - 5
y = 4x - 5
Hence, the equation of the line is: y = 4x - 5.
3. Slope-intercept equation from two points
Example 1: Let's consider a line passing through points (1, 3) and (3,7) as shown in the graph.

Determine the slope-intercept form of the line.
Solution:
According to two-point form of a straight line, slope of the line can be given as:
m = (y2 - y1) / (x2 - x1)
Substitute the given values in the above expression:
m = (7 - 3) / (3 - 1)
= 4/2
= 2
Now, substitute the value of m in slope-intercept form:
y = 2x + c
Now, y = 2x + c line passes through the points (1,3) and (3,7).
Substitute one of the coordinates in the equation:
y = 2x + c
3 = 2(1) + c
3 - 2 = c
c = 1
Thus, the equation of line is y = 2x + 1.
Example 2: Write the equation of the line passing through (4,7) and (6,13).
Solution:
Use the formula to find the slope between the two points.
Slope, (m) = (13 - 7) / (6 - 4)
= 6/2
= 3
Substitute 3 for m in the equation y = mx + c.
⇒ y = 3x + c
Substitute one of the coordinates in the above equation:
7 = 3(4) + c
c = -12 + 7
= -5
Therefore, the slope-intercept form is given as: y = 3x - 5
4. Constructing linear equations from the context
Now let's learn how to construct linear equations from the word problems.
Example 1: The local water supply has a leak, it is losing 4 gallons of water every second. After 15 seconds, the water level is at 1024 gallons. Write an equation representing this situation.
Solution:
The above problem can be represented in slope-intercept form i.e. y = mx + c, where the y-axis denotes the level of water and x-axis denotes the time in seconds.
Now, the water level is changing at 4 gallons per sec.
And since,
Slope = Change in y / Change in x
Therefore,
Slope = 4 gallons / 1 sec
= 4
But here water supply has a leak, and it is losing 4 gallons per second, which means slope is decreasing, therefore slope of the line will be '-4'
Now, After 15 seconds, the water level was found to be at 1024 gallons.
So, by putting these values in y = mx + c, we get:
1024 gallons = (-4 gallons/ secs) × (15 secs) + c
1024 = -60 + c
c = 1084 gallons.
Now, putting the values of m and c to get the generalized equation of the line:
y = (-4) x + 1084
y = -4x + 1084
Hence, the above problem can be represented in a linear equation as: y = -4x + 1084
Example 2: Ram was hiking up a mountain. She started her hike at an elevation of 800 meters and ascended at a constant rate. After 5 hours, she reached an elevation of 1300 meters.
Solution:
Let y represent Ram's elevation (in m) after x hours. Construct a linear equation for the relationship between elevation and number of hours.
Ram started her hike at 800 m, that means (0, 800) was her starting point. Looking closely at this point, the y-intercept of the graph between elevation (y-axis) and a number of hours (x-axis).
So, the value of c will be 800. Now, he is ascending at a constant rate and reaches 1300 m after 5 hours, i.e. he is at (1200, 5).
Now, using the two-point formula to find the slope of the line:
m = y2 - y1 / x2 - x1
= (1300 - 800) / (5 - 0)
= 500 / 5
= 100
Substitute 100 for m and 800 for c in the equation of slope-intercept form:
y = 100x + 800.
Conclusion
To find the slope-intercept form of the line, one is needed to find:
- The slope of the line and
- The y-intercept of the line
- Now, if a graph of a line whose slope is '1' and y-intercept at (0,5) is given, simply substitute m = 1 and c = 5 into the slope-intercept form.
⇒ y = x + 5
- Suppose, it is required to find the equation of a line passing through (3, 2) and having slope = 3, use point-slope form [i.e. y - y1 = m(x - x1) ] to find the equation of the line. Substitute the given values: y - 2 = 3 (x - 3)
⇒ y = 3x - 7
- If a line is passing through two points, use two point form to find the equation of the line.
e.g.: if a line is passing through points (1,3) and (2,5) slope of the line can be given by:
⇒ m = (5-3) / (2-1)
= 2
Putting the value of m and one of the coordinate in y = mx + c we get:
y = mx + c
3 = (2)1 + c
c = 1
So, the equation of the line will be y = 2x + 1.
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 SetSets 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 SetsIn 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 SetsUniversal 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 DiagramVenn 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 SetsSets 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 SetsUnion 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 SetsThe 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 FunctionsIn 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 RelationsThe 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 FunctionPiecewise 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 FunctionFunctions 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
Chapter 4: Principle of Mathematical Induction
Chapter 5: Complex Numbers and Quadratic Equations
Complex NumbersComplex 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 FunctionsThe 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 NumbersA 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 NumbersComplex 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 NumberThe 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 NumbersIn 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 NumbersImaginary 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 InequalitiesCompound 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 VariableA 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 VariablesWe 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 ProblemsWe 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 CountingThe 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
PermutationIn 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
CombinationsCombination 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
Chapter 9: Sequences and Series
Sequences and SeriesA 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 MathsBinomial 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 SeriesAn 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 SequenceAn 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 GPGeometric 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 SeriesIn 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 ProgressionArithmetic 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 MathsSpecial 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