How to Graph a Linear Equation using Excel?
Last Updated : 10 Jun, 2022
The equation having the highest degree is 1 is known as a linear equation. If we plot the graph for a linear equation, it always comes out to be a straight line. There are different forms of linear equations such as linear equations in one variable, and linear equations in two variables.
- Linear equations in one variable: standard form of this equation is 'ax + b = 0', where a and b are real numbers and x is a variable.
- Linear equation in two variables: standard form or this equation is, 'ax + by = c', where a, b and c are real numbers, and x is a variable.
Graph a linear equation using Excel
Graph of Linear equation (one variable)
In only one variable, the value of only one variable is needed to be found. Therefore, the equation can be solved directly. Let's take one linear equation in one variable i.e 2x + 3 = 9.
Step 1: Solve the linear equation
2x + 3 = 9
2x = 9 - 3
2x = 6
x = 6/2
x = 3
Step 2: Plot the graph
For a linear equation in one variable, the graph will always have a line parallel to any axis.
For x = 3, the graph will be a line parallel to the y-axis which intersects the x-axis at 3, because for any value of y, the value of x is 3. Below table data can be used to plot the graph,
Co-ordinates taken is (3, 0), (3, 5), (3, 10), (3, 15), (3, -5), (3, -10), (3, -15).
Plot the graph using the following steps
Step 1: Select the data
Step 2: Click on the 'Insert' tab and select scatter with marker chart.
Output
Graph of Linear equation (two variables)
Let's take one linear equation in one variable i.e 2x + 3y = 6. In order to get the data points for plotting the graph, assume some value of x and find the corresponding y value.
For example, If x = 0
Substitute value of x in given equation,
2(0) + 3y = 6
3y = 6
y = 2
Then, the data point is (0, 2). Similarly, we can get different coordinates, those are (3, 0), (-3, 4), and (6, -2).
Plot the graph using the following steps
Step 1: Select the data
Step 2: Click on the 'Insert' tab and select scatter with marker chart.
Output
Similar Reads
How to make a 3 Axis Graph using Excel? 3 Axis Graphs in Excel are the graphs that have three axis. The need for a three-axis arises when the scale of the values is very different. For example, you are given an atom and you want to make a graph between its diameter, melting point, and colloidal nature. If they are plotted on the same scal
7 min read
How to Make a Line Graph in Excel - Easy Tutorial Line graphs are a highly valuable tool in Excel, helping users analyze trends and patterns effectively over time. They are widely used for time-series analysis in Excel, allowing a clear visual representation of changes in data. In this guide, you'll learn how to create a line graph in Excel, includ
10 min read
How to Create an Ogive Graph in Excel? Ogive graph, the name might scare you, but believe me this is very simple to create. The ogive graph is a cumulative frequency graph. The graph is plotted between the fixed intervals vs the frequency added up before. It is a curve plotted for cumulative frequency distribution on a graph. There are t
4 min read
How to plot a graph in R using CSV file ? To plot a graph in R using a CSV file, we need a CSV file with two-column, the values in the first column will be considered as the points at the x-axis and the values in the second column will be considered as the points at the y-axis. In this article, we will be looking at the way to plot a graph
2 min read
Solve Linear Equation and return 3D Graph in Python In this article, we will make the 3D graph by solving the linear equations using Python. Solve Linear Equation in Python Here we are going to create a different variable for assigning the value into a linear equation and then calculate the value by using linalg.solve() methods. Python3 # Python prog
2 min read