Unit 4, lesson 35

Curve Intersections and Which Curve Is Higher

How to find where two graphs meet by solving for equal outputs at a common input, how to reject false candidates, and how the sign of a difference shows which graph is higher.

  • Theory part 69
  • Practice part 70
  • Comparing Curves

Two taxi services price a ride in different ways, one with a high base fare and a low rate per kilometer, the other the reverse. For short rides one is cheaper, for long rides the other, and at one distance they cost the same. That break-even distance is where two graphs cross, and the question of which plan is cheaper is the question of which graph is lower. Calculus asks the same two questions whenever it finds the area between two curves.

Key terms

Curve intersection and common point

Definition A point (a,b)(a, b) is a common point, or intersection point, of two curves when it lies on both of them. For the graphs of functions y=f(x)y = f(x) and y=g(x)y = g(x) this means that aa is in the domain of ff and in the domain of gg, and

f(a)=g(a)=b.f(a) = g(a) = b.

The intersection of the two curves is the set of all such points.

In plain words The two graphs pass through the very same spot.

Example The graphs of f(x)=2xf(x) = 2x and g(x)=x+3g(x) = x + 3 meet where 2x=x+32x = x + 3, that is at x=3x = 3. Both functions give 66 there, so the common point is (3,6)(3, 6).

Same input and same output

Definition At an intersection of two function graphs, the input is the same for both functions and the output is the same for both functions. Equal outputs at different inputs do not give a common point, and a common input with different outputs does not either.

In plain words Both coordinates must agree. Hitting the same height at different places is not a meeting.

Example For f(x)=2xf(x) = 2x and g(x)=x+3g(x) = x + 3, we have f(2)=4f(2) = 4 and g(1)=4g(1) = 4. The output 44 is shared, but the points (2,4)(2, 4) and (1,4)(1, 4) are different points, so neither is an intersection. At the common input x=1x = 1 the outputs are 22 and 44, again no meeting. The only common point is (3,6)(3, 6).

Simultaneous equations

Definition The intersection points of y=f(x)y = f(x) and y=g(x)y = g(x) are the solutions (x,y)(x, y) of the two equations taken together. Eliminating yy gives the single equation

f(x)=g(x),x∈dom⁡(f)∩dom⁡(g).\begin{gathered} f(x) = g(x), \\[0.4em] x \in \operatorname{dom}(f) \cap \operatorname{dom}(g). \end{gathered}

Each solution x=ax = a gives the intersection point (a,f(a))(a, f(a)). Solutions outside the common domain do not count.

In plain words Set the two outputs equal, solve for xx, then use either formula to get the height.

Example Take f(x)=x2f(x) = x^2 and g(x)=x+2g(x) = x + 2, both defined for all real xx. Setting them equal,

x2=x+2  ⟺  x2−x−2=0  ⟺  (x−2)(x+1)=0.\begin{aligned} & x^2 = x + 2 \\[0.4em] \iff {} & x^2 - x - 2 = 0 \\[0.4em] \iff {} & (x - 2)(x + 1) = 0. \end{aligned}

So x=2x = 2 or x=−1x = -1. The intersection points are (2,4)(2, 4) and (−1,1)(-1, 1), and each one checks in both formulas.

Extraneous intersections

Definition Solving f(x)=g(x)f(x) = g(x) sometimes uses a step that is not reversible, such as squaring both sides. Such a step can produce candidates that are not solutions of the original equation. A candidate is a true intersection only if it lies in both domains and makes f(x)=g(x)f(x) = g(x) hold exactly. A candidate that fails is called extraneous and is discarded.

In plain words Squaring makes 2=−22 = -2 look like 4=44 = 4. After squaring, plug every candidate back into the original equation.

Example Find where y=xy = \sqrt{x} meets the line y=x−2y = x - 2. Squaring x=x−2\sqrt{x} = x - 2 gives

x=x2−4x+4  ⟺  x2−5x+4=0  ⟺  (x−1)(x−4)=0.\begin{aligned} & x = x^2 - 4x + 4 \\[0.4em] \iff {} & x^2 - 5x + 4 = 0 \\[0.4em] \iff {} & (x - 1)(x - 4) = 0. \end{aligned}

Check each candidate in the original equation. At x=1x = 1 the root gives 11 while the line gives −1-1, so x=1x = 1 is extraneous. At x=4x = 4 both give 22. The only intersection is (4,2)(4, 2). The false candidate appeared because x\sqrt{x} is never negative, while x−2x - 2 is negative at x=1x = 1.

Vertical difference

Definition For two functions ff and gg, the vertical difference is the function

d(x)=f(x)−g(x),x∈dom⁡(f)∩dom⁡(g).\begin{gathered} d(x) = f(x) - g(x), \\[0.4em] x \in \operatorname{dom}(f) \cap \operatorname{dom}(g). \end{gathered}

Its value is the signed vertical distance from the graph of gg up to the graph of ff at the input xx. The intersections of the two graphs occur exactly at the zeros of dd.

In plain words Stand at one input and measure from the graph of gg to the graph of ff. The size of the number is the gap, and its sign tells you which graph is on top.

Example For f(x)=x+2f(x) = x + 2 and g(x)=x2g(x) = x^2,

d(x)=x+2−x2=−(x−2)(x+1).\begin{aligned} d(x) &= x + 2 - x^2 \\[0.4em] &= -(x - 2)(x + 1). \end{aligned}

At x=0x = 0 the gap is d(0)=2d(0) = 2, so the line is 22 units above the parabola there. The zeros x=−1x = -1 and x=2x = 2 are the intersections found before.

Which curve is higher

Definition At an input xx in both domains, the graph of ff is higher than the graph of gg when f(x)−g(x)>0f(x) - g(x) > 0, lower when f(x)−g(x)<0f(x) - g(x) < 0, and the graphs meet when the difference is 00. Higher and lower are statements about one input at a time.

In plain words Subtract and look at the sign. Positive means the first function is on top.

Example For f(x)=x+2f(x) = x + 2 and g(x)=x2g(x) = x^2 the difference at x=−2x = -2 is d(−2)=−4d(-2) = -4, so the parabola is higher there. At x=0x = 0 it is 22, so the line is higher. Later, the area between two curves is built from the top function minus the bottom function, so getting this sign right matters.

Interval splitting

Definition Suppose d=f−gd = f - g is continuous on an interval and has no zeros there. Then dd keeps one sign on the whole interval, by the intermediate value theorem, since a continuous function that took a positive and a negative value on an interval would have to equal 00 somewhere between them. So when ff and gg are continuous on their domains, find all zeros of dd and all points where the common domain breaks into separate intervals, split the common domain at those points, and test one input in each piece. A sampled picture or a table of values alone does not prove where the graphs cross or which is higher, because two crossings can hide between sample points.

In plain words The graphs can only swap places where they meet or where something breaks. Between those points, one test value tells you the whole story.

Example For d(x)=x+2−x2d(x) = x + 2 - x^2 the zeros are −1-1 and 22.

IntervalTest inputSign of ddHigher graph
(−∞,−1)(-\infty, -1)−2-2negativeparabola
(−1,2)(-1, 2)00positiveline
(2,∞)(2, \infty)33negativeparabola

Sampling alone can mislead. For f(x)=x2f(x) = x^2 and g(x)=3x−2.16g(x) = 3x - 2.16 the differences at x=0,1,2,3x = 0, 1, 2, 3 are 2.162.16, 0.160.16, 0.160.16 and 2.162.16, all positive. Yet the difference factors as (x−1.2)(x−1.8)(x - 1.2)(x - 1.8), so the graphs cross twice and the line is higher on (1.2,1.8)(1.2, 1.8).

Check yourself

  1. Find the intersection points of f(x)=x2−2xf(x) = x^2 - 2x and g(x)=x+4g(x) = x + 4, and decide which graph is higher between them.
Show the answer

Setting the outputs equal gives x2−3x−4=0x^2 - 3x - 4 = 0, so (x−4)(x+1)=0(x - 4)(x + 1) = 0 and x=4x = 4 or x=−1x = -1. The points are (4,8)(4, 8) and (−1,3)(-1, 3). At x=0x = 0 the difference g(x)−f(x)g(x) - f(x) equals 44, which is positive, so the line is higher on (−1,4)(-1, 4).

  1. Find every intersection of y=x+2y = \sqrt{x + 2} and y=xy = x.
Show the answer

Squaring gives x+2=x2x + 2 = x^2, so (x−2)(x+1)=0(x - 2)(x + 1) = 0 and the candidates are 22 and −1-1. At x=−1x = -1 the root gives 11 and the line gives −1-1, so that candidate is extraneous. At x=2x = 2 both give 22. The only intersection is (2,2)(2, 2).

  1. Where is the graph of f(x)=x3f(x) = x^3 higher than the graph of g(x)=xg(x) = x?
Show the answer

The difference factors as x3−x=x(x−1)(x+1)x^3 - x = x(x - 1)(x + 1), with zeros −1-1, 00 and 11. Testing −2-2, −0.5-0.5, 0.50.5 and 22 gives the signs negative, positive, negative and positive. So the cubic is higher on (−1,0)∪(1,∞)(-1, 0) \cup (1, \infty).

How this lesson connects