Chapter II · Functions of real variables

Graphs and the equation of a locus

§21 25 min

Coordinates, the graph of a function, and why the general equation of the first degree is a straight line and x2+y2+2Gx+2Fy+C=0x^2 + y^2 + 2Gx + 2Fy + C = 0 a circle (or nothing).

Why this matters

A function is a rule; a graph is a picture of the rule. §21 sets up the picture: coordinates, the graph as the set of all points (x,y)(x, y) that the rule allows, and the reverse reading in which an equation describes a locus. Every sketch in the rest of the chapter, and every figure in the rest of the book, uses this dictionary between equations and sets of points.

The idea

Draw two perpendicular lines through a point OO, the axes. A point PP is fixed by two signed distances: aa measured along the axis of xx and bb along the axis of yy. We write P=(a,b)P = (a, b) and call aa the abscissa and bb the ordinate of PP.

If yy is a function of xx, then every pair “x=ax = a has the value y=by = b” gives a point (a,b)(a, b). The set of all these points is the graph of the function. If aa has several values b,b′,b′′,…b, b', b'', \dots, there are several points above aa, which is how the vertical line test of the last lesson works.

The same dictionary can be read the other way. Start with an equation in xx and yy, and collect every point whose coordinates satisfy it. That set is the locus of the equation, and the equation is said to represent the locus. A point is on the locus exactly when substituting its coordinates makes the equation true.

Explore Which points satisfy Ax+By+C=0Ax + By + C = 0?

Try this. Drag the purple point along the line and watch the substitution stay at 00. Then change AA, BB, CC. Finally make B=0B = 0 exactly, and after that make A=B=0A = B = 0.

x−2y+2=0x - 2y + 2 = 0
xy
  • the locus
  • a point on it (drag)
Solving for yy: y=0.5 x+1y = 0.5\,x + 1, a one-valued function of xx defined for every xx, with slope −A/B=0.5-A/B = 0.5. Substituting the marked point: 1⋅0.137+(−2)⋅1.07+2=01\cdot0.137 + (-2)\cdot1.07 + 2 = 0.
What to notice

Whenever B≠0B \neq 0 the locus is a line that every vertical line crosses once: yy is a one-valued function of xx, defined everywhere. At B=0B = 0 the line turns vertical, and yy becomes a strange function: defined at one value of xx only, with every value there (Hardy’s footnote to §21). With A=B=0A = B = 0 the locus is either the whole plane or empty.

Hardy’s second example is the circle. Expanding (x−α)2+(y−β)2=ρ2(x - \alpha)^2 + (y - \beta)^2 = \rho^2 gives an equation of the form x2+y2+2Gx+2Fy+C=0x^2 + y^2 + 2Gx + 2Fy + C = 0. But not every equation of that form is a circle.

Explore When is x2+y2+2Gx+2Fy+C=0x^2 + y^2 + 2Gx + 2Fy + C = 0 a circle?

Try this. Move GG and FF and watch the centre. Then raise CC slowly until the circle shrinks to a point and disappears.

x2+y2−2x+y−3=0x^2 + y^2 - 2x + y - 3 = 0
xy
  • the locus
  • centre (−G, −F) and a radius
  • a point on it (drag)
Completing the squares: (x−1)2+(y+0.5)2=G2+F2−C=4.25(x - 1)^2 + (y + 0.5)^2 = G^2 + F^2 - C = 4.25. A circle with centre (1,−0.5)(1, -0.5) and radius 4.25=2.06\sqrt{4.25} = 2.06. The marked point is at distance 2.062.06 from the centre.
What to notice

The centre is always (−G,−F)(-G, -F), and the radius squared is G2+F2−CG^2 + F^2 - C. The circle exists exactly while this is positive; at zero the locus is one point; below zero it is empty, because a sum of two squares cannot be negative. That is why Hardy adds the condition G2+F2−C>0G^2 + F^2 - C > 0.

Precise statements

Definition Graph; locus Hardy: §21

Let yy be a function of xx. Its graph is the set of all points (a,b)(a, b) such that bb is a value of yy for x=ax = a.

Given an equation ϕ(x,y)=0\phi(x, y) = 0, its locus is the set of all points (a,b)(a, b) with ϕ(a,b)=0\phi(a, b) = 0. The equation represents the locus, and is the equation of the locus.

Theorem Equations of the first degree are straight lines Hardy: §21

If AA and BB are not both zero, the locus of Ax+By+C=0Ax + By + C = 0 is a straight line. Conversely, every straight line is the locus of such an equation.

Theorem When the second-degree equation is a circle Hardy: §21

The locus of x2+y2+2Gx+2Fy+C=0x^2 + y^2 + 2Gx + 2Fy + C = 0 is the circle with centre (−G,−F)(-G, -F) and radius G2+F2−C\sqrt{G^2 + F^2 - C} if G2+F2−C>0G^2 + F^2 - C > 0; the single point (−G,−F)(-G, -F) if G2+F2−C=0G^2 + F^2 - C = 0; and empty if G2+F2−C<0G^2 + F^2 - C < 0. Every circle has an equation of this form.

The general equation of the second degree, ax2+2hxy+by2+2gx+2fy+c=0ax^2 + 2hxy + by^2 + 2gx + 2fy + c = 0, represents a conic (ellipse, parabola or hyperbola) when its coefficients satisfy suitable inequalities, and otherwise a pair of lines, a point, or nothing. Hardy leaves conics to books on analytical geometry, and so do we; you will meet several in §32.

Proofs

Hardy calls these results familiar and refers to analytical geometry. Here are short proofs, since they are the model for every “find the locus” argument.

Proof First-degree equations are lines
Strategy

Use one fact from geometry: three points with different abscissae lie on one line exactly when the “slope” (y2−y1)/(x2−x1)(y_2 - y_1)/(x_2 - x_1) between the first two equals the slope between the first and the third (similar triangles). Show that all points of the locus have the same slope between them, and deal separately with vertical lines.

If B=0B = 0, the locus is a vertical line

Then A≠0A \neq 0, and the equation says x=−C/Ax = -C/A, with yy arbitrary. That is the vertical line through (−C/A,0)(-C/A, 0).

If B≠0B \neq 0, solve for yy

The equation is equivalent to y=mx+ky = mx + k with m=−A/Bm = -A/B and k=−C/Bk = -C/B. So for each xx there is exactly one point of the locus, namely (x,mx+k)(x, mx + k).

All slopes are mm

For two points (x1,mx1+k)(x_1, mx_1 + k) and (x2,mx2+k)(x_2, mx_2 + k) with x1≠x2x_1 \neq x_2, the slope is m(x2−x1)x2−x1=m\dfrac{m(x_2 - x_1)}{x_2 - x_1} = m. By the fact in the strategy, every point of the locus lies on the line ℓ\ell through (0,k)(0, k) and (1,m+k)(1, m + k).

Every point of ℓ\ell is on the locus

The line ℓ\ell is not vertical, since (0,k)(0, k) and (1,m+k)(1, m + k) have different abscissae. Let QQ be any point of ℓ\ell, with abscissa xx. The locus contains (x,mx+k)(x, mx + k), which lies on ℓ\ell by the previous step. Both points are on ℓ\ell and on the vertical line through QQ, and a non-vertical line meets a vertical line only once, so Q=(x,mx+k)Q = (x, mx + k). Hence the locus is exactly ℓ\ell.

Conversely, every line has such an equation

A vertical line is x=cx = c, that is 1⋅x+0⋅y−c=01\cdot x + 0\cdot y - c = 0. A non-vertical line through (x0,y0)(x_0, y_0) with slope mm consists of the points with y−y0=m(x−x0)y - y_0 = m(x - x_0), which is mx−y+(y0−mx0)=0mx - y + (y_0 - m x_0) = 0.

Proof When the equation is a circle
Strategy

Complete the squares to turn the equation into a statement about the distance from (−G,−F)(-G, -F), and use Pythagoras: the distance from (x,y)(x, y) to (p,q)(p, q) is (x−p)2+(y−q)2\sqrt{(x - p)^2 + (y - q)^2}.

Complete the squares

Since x2+2Gx=(x+G)2−G2x^2 + 2Gx = (x + G)^2 - G^2 and y2+2Fy=(y+F)2−F2y^2 + 2Fy = (y + F)^2 - F^2, the equation is equivalent to (x+G)2+(y+F)2=G2+F2−C(x + G)^2 + (y + F)^2 = G^2 + F^2 - C.

Read the left side as a squared distance

By Pythagoras the left side is the square of the distance dd from (x,y)(x, y) to (−G,−F)(-G, -F). So the locus is the set of points with d2=G2+F2−Cd^2 = G^2 + F^2 - C.

Three cases

If G2+F2−C=ρ2>0G^2 + F^2 - C = \rho^2 > 0, the locus is the set of points at distance ρ\rho from (−G,−F)(-G, -F): the circle. If it is 00, then d=0d = 0 and the only point is the centre. If it is negative, no point qualifies, because d2≥0d^2 \ge 0.

Every circle has such an equation

The circle with centre (α,β)(\alpha, \beta) and radius ρ\rho is (x−α)2+(y−β)2=ρ2(x - \alpha)^2 + (y - \beta)^2 = \rho^2; expanding gives the form with G=−αG = -\alpha, F=−βF = -\beta, C=α2+β2−ρ2C = \alpha^2 + \beta^2 - \rho^2, and then G2+F2−C=ρ2>0G^2 + F^2 - C = \rho^2 > 0.

Worked examples and exercises

Hardy gives no numbered examples in §21; these practise its statements.

Exercise Both ways round ●○○ Hardy: §21

For the line 2x−3y+6=02x - 3y + 6 = 0, write yy as a function of xx and xx as a function of yy. Where does the line cross the axes?

Hint
Solve the equation for each variable in turn. A point on the axis of xx has ordinate 00.

Solution

y=23x+2y = \tfrac23 x + 2 and x=32y−3x = \tfrac32 y - 3. Both are one-valued and defined everywhere, as they must be for a line that is neither vertical nor horizontal. Putting y=0y = 0 gives x=−3x = -3; putting x=0x = 0 gives y=2y = 2. So the line crosses the axes at (−3,0)(-3, 0) and (0,2)(0, 2).

Exercise ●○○ Hardy: §21

Find the centre and radius of x2+y2−4x+6y−3=0x^2 + y^2 - 4x + 6y - 3 = 0, and decide what x2+y2+2x+4y+6=0x^2 + y^2 + 2x + 4y + 6 = 0 represents.

Hint
Match with x2+y2+2Gx+2Fy+C=0x^2 + y^2 + 2Gx + 2Fy + C = 0: here 2G=−42G = -4.

Solution

First: G=−2G = -2, F=3F = 3, C=−3C = -3, so the centre is (2,−3)(2, -3) and G2+F2−C=4+9+3=16G^2 + F^2 - C = 4 + 9 + 3 = 16: radius 44. Check by completing squares: (x−2)2+(y+3)2=16(x - 2)^2 + (y + 3)^2 = 16.

Second: G=1G = 1, F=2F = 2, C=6C = 6, and G2+F2−C=1+4−6=−1<0G^2 + F^2 - C = 1 + 4 - 6 = -1 < 0. The equation is (x+1)2+(y+2)2=−1(x + 1)^2 + (y + 2)^2 = -1, which no point satisfies: the locus is empty.

Exercise The vertical line as a function ●●○ Hardy: §21, footnote

Hardy remarks that when B=0B = 0 the equation Ax+By+C=0Ax + By + C = 0 makes yy “a function of xx defined for one value only of xx, and then having all values”. Explain this in terms of the definition of a function, and say which of the characteristics (1), (2), (3) of §20 it has.

Hint
Fix a value of xx and ask which yy satisfy Ax+C=0Ax + C = 0.

Solution

With B=0B = 0 (and A≠0A \neq 0) the equation is Ax+C=0Ax + C = 0, which does not mention yy. If x=−C/Ax = -C/A it is true whatever yy is, so every real yy corresponds to this xx. If x≠−C/Ax \neq -C/A it is false whatever yy is, so no yy corresponds. Thus yy is defined only at x=−C/Ax = -C/A, where it is infinitely many-valued. It lacks (1) and (2). It is given by an equation, so in the loose sense it has (3). It is still a function in Hardy’s sense, a very degenerate one.

Exercise A point that is a circle ●●○ Hardy: §21

For which values of cc is the locus of x2+y2−2x+c=0x^2 + y^2 - 2x + c = 0 a circle, a point, or empty? For which cc does the circle pass through the origin?

Hint
Here G=−1G = -1, F=0F = 0, C=cC = c.

Solution

G2+F2−C=1−cG^2 + F^2 - C = 1 - c. The locus is a circle with centre (1,0)(1, 0) and radius 1−c\sqrt{1 - c} when c<1c < 1, the single point (1,0)(1, 0) when c=1c = 1, and empty when c>1c > 1. It passes through (0,0)(0, 0) when 0+0−0+c=00 + 0 - 0 + c = 0, that is c=0c = 0, giving the circle of radius 11 about (1,0)(1, 0). In polar coordinates this is r=2cos⁡θr = 2\cos\theta, which reappears in the next lesson.

Check yourself

Check yourself True or false?

Every equation Ax+By+C=0Ax + By + C = 0 (with AA, BB not both zero) defines yy as a one-valued function of xx.

Why

False. If B=0B = 0 the line is vertical: yy is then defined for a single xx only, and has every value there. When B≠0B \neq 0 the statement is true.

Check yourself Enter a number

What is the radius of the circle x2+y2−6x+8y=0x^2 + y^2 - 6x + 8y = 0?

Why

G=−3G = -3, F=4F = 4, C=0C = 0, so the radius is 9+16−0=5\sqrt{9 + 16 - 0} = 5. (The circle passes through the origin, since C=0C = 0.)

Check yourself Choose one

The locus of x2+y2+2x+1=0x^2 + y^2 + 2x + 1 = 0 is

Why

Completing the square gives (x+1)2+y2=0(x + 1)^2 + y^2 = 0. Both squares must be zero, so x=−1x = -1 and y=0y = 0. In the notation of the theorem, G2+F2−C=1+0−1=0G^2 + F^2 - C = 1 + 0 - 1 = 0. The first option forgets to subtract CC.

Check yourself Choose one

For the point P=(−2,5)P = (-2, 5), which statement is correct?

Why

The abscissa is the first coordinate (measured along the axis of xx), the ordinate the second. The distance from OO is 4+25=29\sqrt{4 + 25} = \sqrt{29}, which is the polar coordinate rr of the next lesson.

Hardy’s language

Summary

Summary
  • A point is fixed by its coordinates (a,b)(a, b): abscissa and ordinate. The graph of a function is the set of all points (x,y)(x, y) with yy a value at xx.
  • An equation represents its locus: the set of points whose coordinates satisfy it.
  • Ax+By+C=0Ax + By + C = 0 (with AA, BB not both 00) is a straight line, and every line has such an equation; B=0B = 0 gives a vertical line.
  • x2+y2+2Gx+2Fy+C=0x^2 + y^2 + 2Gx + 2Fy + C = 0 is a circle about (−G,−F)(-G, -F) of radius G2+F2−C\sqrt{G^2 + F^2 - C} when that is positive, a point when it is zero, and nothing when it is negative.