Set up the equation of a straight line: formula & examples

You already got to know linear functions in school. Their function equation can be determined in many different ways. In this article, you will learn exactly that. You will learn how to set up the equation of a linear function.

Set up the equation of a straight line – structure

Before we can start setting up the equation of a straight line, let’s first look at what a linear function is and what its functional equation looks like.

the linear function has the general functional equation:

Here is the pitch and the y-intercept.

The graph of a linear function is always one Just. Therefore, the functional equation of a linear function is also called line equation designated.

You already know straight lines from geometry. A straight line is an infinitely long straight line.

y-intercept t

First, let’s look at what exactly the y-intercept is.

Of the y-intercept determines the point of intersection of the straight line with the y-axis.

The intersection of the straight line and the y-axis has the coordinates .

The figure shows an example of the y-intercept of a linear function.

Figure 1: Y-intercept of a linear function

incline m

In addition to the y-intercept, the slope of a linear function is of great importance.

the incline m determines how steeply a straight line falls or rises.

The slope of a line can be less than 0, equal to 0, or greater than 0. The course of the graph depends on the slope:

  • : The line rises. The graph of the function runs from bottom left to top right (Figure 2).

  • : The straight line runs parallel to the x-axis. This type of function will also constant function called.

  • : The straight falls. The graph of the function runs from top left to bottom right (Figure 3).

Given the slope angle of a straight line, the slope can be calculated:

In the figure you can see the slope triangle, the two points and and the slope angle.

Figure 4: Calculate slope

Now that you know all the important terms of the linear function, let’s look at how the equation of a linear function can be set up with different specifications.

Set up the equation of a straight line with two points

You can set up the equation of a line for a linear function given two points and the line.

The procedure for setting up the equation of a straight line from two points is always the same:

  1. Calculate the slope using the formula
  2. Substituting the slope m and a point into the general equation of a straight line
  3. Calculate y-intercept t
  4. Specify the equation of the line

Let’s take a look at this procedure with an example.

Task 1

The points and are given. Find the equation of the line g that runs through these points.

solution

1. Calculate the slope

You need to plug the appropriate coordinates into the slope formula:

.

So the slope of the line is 3.

2. Inserting the slope m and a point into the general equation of a straight line

If you plug the slope into the general equation of a straight line, you get:

.

Now you have to insert one of the two points into the equation of the line. We now use:

.

3. Calculate y-intercept t

4. State the equation of the line

Set up the equation of a straight line with a point and the y-intercept t

You can also set up the equation of a line for a linear function given the y-intercept t and a point on the line.

Here, too, there is a certain procedure:

  1. Inserting the y-intercept t into the general equation of a straight line
  2. Calculate the slope m
  3. Specify the equation of the line

You can understand the procedure again using an example.

exercise 2

Find the equation of the line that goes through the point and has the y-intercept.

solution

1. Inserting the y-intercept t into the general equation of a straight line

2. Calculate the slope m

There are two different ways to calculate the slope:

  1. Variant: Calculate the slope m using the two points and . It then works like in the previous example.
  2. Variant: Plug the point into the equation and solve for m.

So plug the point into the equation and solve for m.

3. State the equation of the line

Set up the equation of a straight line with a point and slope m

You can set up the equation of a line for a linear function given the slope m and a point on the line.

You can do this as follows:

  1. Inserting the gradient m into the general equation of a straight line
  2. Calculate the y-intercept t by inserting the point
  3. Specify the equation of the line

To understand this better, you can look at the example.

task 3

Find the equation of the straight line that goes through the point and has the slope.

solution

1. Inserting the gradient m into the general equation of a straight line

2. Calculate the y-intercept t by inserting the point

Substitute the point into the functional equation:

3. State the equation of the line

We want to look at this again with an example.

task 4

Determine the equation of the straight line that runs through the point and has the slope.

solution

1. Set up the straight line equation in point-gradient form

Substitute the slope and the point into the point-slope form:

2. Conversion into the general equation of a straight line

In some cases, the slope is not given directly, but must first be determined before the straight line equation can be calculated. Let’s look at these cases one by one.

Determining the slope – parallel line

Sometimes it is the case that you should set up the functional equation of a straight line that runs through a certain point and parallel to another straight line.

Two straight lines and are parallelif their slopes match:

.

The following example shows you how this helps you to solve tasks.

task 5

Set up the equation of the line for the linear function parallel to the line and through the point.

solution

You must first consider the slope of the straight line you are looking for. Since it is parallel to the line, both lines have the same slope.

The slope of both lines is .

Now you can find the equation of the line using the same procedure as above.

Determining the slope – vertical line

But sometimes you also have to set up the functional equation of a straight line that runs through a certain point and perpendicular to another straight line.

Two straight and stand perpendicular to each other if the product of their slopes is:

How does that look when applied to a concrete example?

task 6

Write down the equation of the line for the linear function perpendicular to the line and passing through the point.

solution

You must first consider the slope of the straight line you are looking for. Since it is perpendicular to the straight line, the slope of the straight line you are looking for must be:

.

This equation can be solved by:

Now the slope and a point are given again and you can determine the equation of the straight line using the procedure from above.

Whether you divide by 0.5 or multiply by 2 in the penultimate calculation step is the same!

Determining the slope – slope angle

In some tasks, you first have to calculate the slope from the slope angle before you can set up the straight line equation.

task 7

Find the equation of the straight line of the linear function that has the y-intercept and intersects the x-axis with the angle.

solution

You can insert the y-intercept directly into the normal form of the straight line equation:

.

The slope can be calculated using the formula:

.

You can use this to write the equation of a straight line:

.

Usually the 1 in front of the x is not written down:

.

Determine straight line equation from function graph

You can also determine an equation of a straight line using the function graph of the linear function.

All you have to do is determine the y-intercept from the graph and the slope using two suitable points.

task 8

Determine the equation of the straight line depicted in the coordinate system.

Figure 5: Determine the straight line equation from the function graph

solution

Read off the y-intercept t

The y-intercept is the intersection of the straight line with the y-axis. In this example is .

Figure 6: Read the y-intercept from the graph

It is not always so easy to read the y-intercept from the graph. Sometimes the exact value can only be determined by calculation. Then you need to choose two points on the graph that are easy for you to read and then calculate the y-intercept and slope.

Determine slope m

You can determine the slope of the straight line by choosing two suitable points and then calculating the slope. In this example, the slope is .

Figure 7: Read the gradient from the graph

So the equation of the line is:

Set up the equation of a straight line – the most important thing

  • line equation of the linear function in normal form:
    • m is the pitch
    • t is the y-intercept
  • Equation of a straight line using two points and set up:

    • Calculate the slope using the formula .
    • Substituting the slope m and a point into the general equation of a straight line.
    • Calculate y-intercept t
    • Specify the equation of the line
  • Line equation using a Point and the y-intercept t set up:

    • Inserting the y-intercept t into the general equation of a straight line
    • Calculate the slope m
    • Specify the equation of the line
  • Equation of a straight line using a Point and the incline m set up:

    • Version 1:

      • Inserting the gradient m into the general equation of a straight line

      • Calculate the y-intercept t by inserting the point

      • Specify the equation of the line

    • Variant 2:

    • Determine slope:

      • Slopes of parallel straight lines:

      • Slopes of vertical lines:

      • Calculate slope from slope angle:

  • straight line equation from the function graphs determine