The intersection point between graphs

Consider two functions, e.g.

f(x)=x2f(x)=x^2

and

g(x)=2x2x1g(x)=2x^2-x-1

If we draw the graphs, we see that they intersect at two points AA and BB (see below). How can we find the coordinates of these points?

Let's start by noting once more that the values along the xx-axis represent input values to the machines ff and gg, and the values along the yy-axis are their output values. For example, if we choose input x=0.5x=0.5, machine ff has the output

y=f(0.5)=0.52=0.25y=f(0.5)=0.5^2=0.25

and machine gg has the output

y=g(0.5)=20.520.51=1y=g(0.5)=2\cdot 0.5^2-0.5-1=-1

giving raise to the two points P1(0.50.25)P_1(0.5\vert 0.25) and P2(0.51)P_2(0.5\vert -1) on the graph of ff and gg. In particular note that although they have the same input, the output (or yy-coordinate) of the machines are different. This, of course, is to be expected, as they are different machines. Note, however, that at the point of intersection, AA, machine ff and machine gg produce for the same input the same output or yy-coordinate, and this is also true for point BB.

A short animation is shown below (uncollapse) ...

Show

So to find the xx-coordinate of a point of intersection between ff and gg, we have to search for those input values for ff and gg which produce the same output:

x is x-coordinate of intersection point if f(x)=g(x)\boxed{x \text{ is } x \text{-coordinate of intersection point if } f(x)=g(x)}

As f(x)=x2f(x)=x^2 and g(x)=2x2x1g(x)=2x^2-x-1, finding the xx-coordinate amounts to solving the equation

x2=2x2x1x^2 = 2x^2-x-1

At the moment we cannot solve this particular type of equation, but it turns out that this equation has the two solutions x1=0.618x_1=-0.618 and x2=1.618x_2=1.618 (verify it!). So the intersection point AA has the xx-coordinate 0.618-0.618, and BB has the xx-coordinate 1.6181.618. How do we find out yy-coordinates of these points? Well, as AA is on the graph of ff, the yy-coordinate of AA must be

y=f(0.618)=(0.618)2=0.382y=f(-0.618)=(-0.618)^2 = 0.382

and the yy-coordinate of BB must be

y=f(1.618)=(1.618)2=2.618y=f(1.618)= (1.618)^2= 2.618

As AA and BB are also on graph gg, we could find their yy-coordinate by using gg as well:

y=g(0.618)=2(0.618)23(0.618)=0.382y=g(-0.618)=2\cdot (-0.618)^2-3\cdot (-0.618)=0.382

and the yy-coordinate of BB must be

y=g(1.618)=2(1.618)231.618=2.618y=g(1.618)=2\cdot (1.618)^2-3\cdot 1.618= 2.618

Thus, the points of intersections have the coordinates A(0.6180.382)A(-0.618 \vert 0.382) and B(1.6182.618)B(1.618 \vert 2.618).

Exercise 1

Find the intersection point(s) between the graphs of ff and gg:

  1. f(x)=2xf(x)=2x, g(x)=0.5x+1g(x)=-0.5x+1

  2. f(x)=1f(x)=1, g(x)=x2g(x)=x^2

  3. f(x)=1f(x)=1, g(x)=25x2g(x)=\frac{25}{x^2}

  4. f(x)=x2+1f(x)=x^2+1, g(x)=2x2g(x)=-2x^2

Solution

Find xx with f(x)=g(x)f(x)=g(x), then solve the equation to get the xx-coordinates of the intersection points.

  1. S(0.40.8)S(0.4\vert 0.8)
  2. S1(11),S2(11)S_1(-1\vert 1), S_2(1\vert 1)
  3. S1(51),S2(51)S_1(-5 \vert 1), S_2(5 \vert 1)
  4. no solution, so no intersection point!