From a straight line to the function equation

A common problem is the following one. We are looking for the equation of a linear function ff, but all we know are the coordinates of two points through which the graph of ff passes. Such a graph is shown below. It passes through the points A(13)A(1\vert 3) and B(67)B(6\vert 7). How do we find its function equation

f(x)=ax+bf(x)=ax+b

Here is how it works. We can use the two points to find the slope aa by choosing the slope triangle as shown in the figure above. Δx\Delta x then tells you how to get from the xx-coordinate of AA to the xx-coordinate of BB

Δx=61=5\Delta x = 6-1=5

and Δy\Delta y tells you how to get from the yy-coordinate of AA to the yy-coordinate of BB

Δy=73=4\Delta y = 7-3=4

Thus we have

a=ΔyΔx=45=0.8a=\frac{\Delta y}{\Delta x}=\frac{4}{5}=0.8

We therefore have

f(x)=0.8x+bf(x)=0.8x+b

How can we find bb? Well, we know that the graph passes through AA, so we know that

f(1)=30.81+b=3b=2.2f(1)=3 \rightarrow 0.8\cdot 1+b=3 \rightarrow b=2.2

Of course we could have taken BB as well, and get the same bb:

f(6)=70.86+b=7b=2.2f(6)=7 \rightarrow 0.8\cdot 6+b=7 \rightarrow b=2.2

The function equation of ff is therefore

f(x)=0.8x+2.2f(x)=0.8x+2.2
Exercise 1
Q1

Find the function equation of a linear function ff whose graph

  1. passes through the points U(14)U(1|4) and V(56)V(5|6)
  2. passes through the points U(33.2)U(-3|3.2) and V(210)V(2|-10)
  3. has an yy-intercept at 3.3-3.3 and crosses the xx-axis at 4.4-4.4
  4. intersects the yy-axis at 44 and the xx-axis at 77
  5. is the diagonal of a square of side length 22 (two solutions), where the lower left point of the square is at the origin.
  6. has yy-intercept 3-3 and slope 2-2.
Q2

Determine the point of intersection SS between the straight lines gg and hh

Q3

Consider the linear function f(x)=0.5x+1f(x)=0.5x+1. Find another linear function whose graph forms a right angle with the graph of ff and passes through the point P(43)P(4|3).

Solution
A1

f(x)=ax+bf(x)=ax+b. Draw a figure!!

  1. a=ΔyΔx=24=0.5a=\frac{\Delta y}{\Delta x}=\frac{2}{4}=0.5, thus f(x)=0.5x+bf(x)=0.5x+b. f(1)=40.51+b=4b=3.5f(1)=4 \rightarrow 0.5\cdot 1+b=4 \rightarrow b=3.5. Thus f(x)=0.5x+3.5f(x)=\underline{0.5x+3.5}.

  2. a=ΔyΔx=13.25=2.64a=\frac{\Delta y}{\Delta x}=\frac{-13.2}{5}=-2.64, thus f(x)=2.64x+bf(x)=-2.64x+b. f(2)=102(2.64)+b=10b=4.72f(2)=-10 \rightarrow 2\cdot (-2.64)+b=-10 \rightarrow b=-4.72. Thus f(x)=2.64x4.72f(x)=\underline{-2.64x-4.72}.

  3. U(4.40)U(-4.4|0), V(03.3)V(0|-3.3). a=ΔyΔx=3.34.4=0.75a=\frac{\Delta y}{\Delta x}=\frac{-3.3}{4.4}=\underline{-0.75}, thus f(x)=0.75x+bf(x)=-0.75x+b. b=3.3b=-3.3 (yy-intercept). Thus f(x)=0.75x3.3f(x)=\underline{-0.75x-3.3}.

  4. U(04)U(0|4), V(70)V(7|0) a=ΔyΔx=47a=\frac{\Delta y}{\Delta x}=\frac{-4}{7}, thus f(x)=47x+bf(x)=-\frac{4}{7}x+b. f(0)=4=bf(0)=4=b, thus f(x)=47x+4f(x)=\underline{-\frac{4}{7}x+4}.

  5. The square is shown below.Solution 1: graph passes through U(02)U(0\vert 2) and V(20)V(2\vert 0), thus f(x)=x+2f(x)=\underline{-x+2}. Solution 2: graph passes through U(00)U(0\vert 0) and V(22)V(2\vert 2), thus f(x)=xf(x)=\underline{x}.

  6. f(x)=2x3f(x)=\underline{-2x-3}.

A2

First, find the function equations of hh and gg. g(x)=ax+bg(x)=ax+b with slope a=43a=\frac{4}{3}, so g(x)=43x+bg(x)=\frac{4}{3}x+b. As point P(11)P(1|1) is on gg, it follows g(1)=1431+b=1b=13g(x)=43x13g(1)=1\rightarrow \frac{4}{3}\cdot 1+b=1 \rightarrow b=-\frac{1}{3} \rightarrow g(x)=\frac{4}{3}x-\frac{1}{3}. h(x)=ax+bh(x)=ax+b with slope a=33=1a=-\frac{3}{3}=-1, so h(x)=x+bh(x)=-x+b. As point P(15)P(1|5) is on hh, it follows h(1)=51+b=5b=6h(x)=x+6h(1)=5\rightarrow -1+b=5 \rightarrow b=6 \rightarrow h(x)=-x+6. Second, we can find the xx-coordinate of SS: Find xx such that

g(x)=h(x)g(x)=h(x)43x13=x+6\frac{4}{3}x-\frac{1}{3}=-x+673x=1937x=19x=197=2.71....\frac{7}{3}x=\frac{19}{3} \rightarrow 7x=19 \rightarrow x=\frac{19}{7}=2.71... .

The yy-coordinate is given by y=h(197)=197+6=237=3.28...y=h(\frac{19}{7})=-\frac{19}{7}+6=\frac{23}{7}=3.28.... We could have taken the function gg as well, but this will get the same yy-coordinate. The point SS has therefore the coordinates S(197237)\underline{S(\frac{19}{7}|\frac{23}{7})}.

A3

Let us call the new function gg, and the function equation is g(x)=ax+bg(x)=ax+b. From the figure (see below) it follows that the graph of gg has slope a=42=2a=\frac{-4}{2}=-2 and because it passes through the point P(43)P(4|3), it is g(4)=324+q=3q=11g(x)=2x+11g(4)=3\rightarrow -2\cdot 4+q=3\rightarrow q=11 \rightarrow \underline{g(x)=-2x+11}.