Linear functions and graphs

Summary and examples

The general formula of a linear function is:

y=ax+b

a and b are arbitrary constants and are also called parameters.

The function is called linear because its graph is a straight line.

The parameters a and b have a meaning. The a is the slope of the line.

We distinguish:

  • a>0: the line goes from lower left to upper right;
  • a<0: the line goes from upper left to lower right;
  • a=0: the line is horizontal, so parallel to the X-axis.

The parameter b is the y-coordinate of  the intersection point of the line with the vertical axis, usually called the Y-axis.

Note that the slope a is the quotient of the y-increment and the increment of x. So:

a=\displaystyle\frac{\Delta y}{\Delta x}

The numerator represents the increment of y, the denominator the increment of x.

Example 1

Draw the line:

l: y=2x+5

and determine the slope and the exact intersection point of the line and the Y-axis.
In the figure the graph of this function is outlined.

2x+5

The intersection point of the line with the Y-axis is (0,5), and its slope is 2. This is enough information to draw the line, but a slope is difficult to use. It would be easier to draw the line if we would have two points on the line. We try to calculate the intersection point of the line with the X-axis. For each point on the X-axis we have y=0. So the line intersects the X-axis if:

0=2x+5
x=-2.5

Thus the intersection point of the line with the X-axis is: (-2.5,0).

Now we have two points (0,5) and (-2.5,0) on the line we can draw the line.

Example 2

Draw the line:

l: y=-x+2

and determine its slope and the exact intersection point with the Y-axis.

In the figure the graph of the function is drawn.

-x+5

The easiest way to draw the line is to find two points on it. The first point is (0,2) because b=2. We find the second point by taking y=0:

0=-x+2
x=2

and so the second point is (2,0).

Now the line can be easily drawn.

Example 3

Lines can intersect. Then they have an intersection point.

Calculate the coordinates of the intersection point of the lines of example 1 and 2:

l: y=2x+5
m: y=-x+2

In the figure both lines are drawn again.

In the intersection point S the two y-coordinates are equal. Then the right-hand sides have to be equal as well resulting in the following equation:

-x+2=2x+5

2x+5=-x+2
3x=-3
x=-1

Then the x-coordinate of S is -1 and thus the y-coordinate is equal to y=3 (substitute the value x=-1 in one of the equations). So the coordinates of S are (-1,3), see the figure.

Example 4

Give the formula of the line though the point P(1,3) with slope 2.
This assignment can be solved in two ways.
The general formula of the line is:

y=ax+b

Since the slope equals 2 we have:

a=2

The point P(1,3) is on the line so:

3=2.1+b
b=1

and thus the equation of the line is:

y=2x+1

Another way to solve this assignment is to apply a simple formula for any point P(x_p,y_p).
In this case we have: x_p=1 and y_p=3 and the slope is m=2.

The formula of the line is:

y-y_p=m(x-x_p)

When we apply this formula, we get:

y-3=2(x-1)
y=2x+1

Example 5

Calculate the formula of the line which goes through the points P(1,2) and Q(-1,1).

The slope of the line equals:

m=\displaystyle\frac{y_Q-y_P}{x_Q-x_P}

m is the increment of y divided by the increment of x; in this example the points P and Q are used.

Because the line goes through both P and Q we can apply the formula from example 4. We choose the point P and get:

y-2=\displaystyle\frac{1}{2}(x-1)
y=\displaystyle\frac{1}{2}x+\displaystyle\frac{3}{2}

The result would have been the same if the point Q was taken.

Example 6

We have the following two lines:

l: y=2x-1
m: y=ax+b

For which values of a and b do these lines have:

  1. no intersection point;
  2. one intersection point.

The lines have no intersection point when they are parallel. Then we have:

a=2 and b\neq-1

If  a=2 these lines have the same slope and then they are parallel or coincide. They coincide if in addition b=-1; then they have an infinite number of points in common.

The lines have just one intersection point if:

a\neq2

and then b may take any value.

Example 7

In example 3 we saw how we could calculate the intersection point of two lines:

l: y=2x+5
m: y=-x+2

We rewrite the formulas of both lines in the following way:

2x-y=-5
x+y=2

Solving the values of x and y of this is known as solving two linear equations with two variables.

Usually we solve this by eliminating one of the two variables. In this case we choose to eliminate y because the variable y is eliminated by adding both equations:

3x=-3
x=-1

When we substitute this value of x in one of the equations we get the value of y=3.

0
Web Design BangladeshWeb Design BangladeshMymensingh