Analytic Geometry › Chapter 1

Mathematical Preliminaries

Algebraic tools used throughout the course: completing the square, distance and inequalities, and the hyperbolic functions.

1.1Completing the Square

Completing the square rewrites a quadratic expression so that the variable appears once, inside a perfect square. It exposes the vertex of a parabola and the centre of a circle, and it is the first step in reducing most conic equations.

Theorem

For every real b, and for a\neq 0:

x^2+bx=\Bigl(x+\frac b2\Bigr)^2-\frac{b^2}{4},\qquad ax^2+bx+c=a\Bigl(x+\frac{b}{2a}\Bigr)^2+\Bigl(c-\frac{b^2}{4a}\Bigr).

The parabola y=ax^2+bx+c has vertex \bigl(-\tfrac{b}{2a},\;c-\tfrac{b^2}{4a}\bigr).

The method has three steps: factor out the leading coefficient, add and subtract the square of half the middle coefficient, then group the perfect square. Setting the result equal to zero gives the quadratic formula

x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}.

With two variables, the equation x^2+y^2+Dx+Ey+F=0 becomes

\Bigl(x+\frac D2\Bigr)^2+\Bigl(y+\frac E2\Bigr)^2=\frac{D^2+E^2}{4}-F,

a circle with centre \bigl(-\tfrac D2,-\tfrac E2\bigr) when the right side is positive, a single point when it is zero, and empty when it is negative.

Example

Identify x^2+y^2-6x+4y-12=0.

Group the terms: (x^2-6x)+(y^2+4y)=12. Add 9 and 4 to both sides:

(x-3)^2+(y+2)^2=25.

It is the circle with centre (3,-2) and radius 5.

Graph of a completed square. Change a, h and k in y=a(x-h)^2+k. The vertex is (h,k), and the readout shows the same function expanded.
Circle, point or no points? Change D, E and F in x^2+y^2+Dx+Ey+F=0. Only F decides whether the circle shrinks to a point and then disappears.

More completing the square

Use these rows as a drill. The last column says what the result tells you.

ExpressionCompleted formWhat it shows
x^2+3x+1\bigl(x+\tfrac32\bigr)^2-\tfrac54minimum -\tfrac54 at x=-\tfrac32
2x^2-12x+72(x-3)^2-11vertex (3,-11)
3x^2+2x-13\bigl(x+\tfrac13\bigr)^2-\tfrac43vertex \bigl(-\tfrac13,-\tfrac43\bigr)
-x^2+4x-1-(x-2)^2+3opens down, maximum 3 at x=2
-2x^2+8x-3-2(x-2)^2+5maximum 5 at x=2

In two and three variables, completing the square in each variable reveals the shape.

EquationCompleted formShape
x^2+y^2-6x+8y+9=0(x-3)^2+(y+4)^2=16circle, centre (3,-4), radius 4
4x^2+y^2-8x+6y-3=0\dfrac{(x-1)^2}{4}+\dfrac{(y+3)^2}{16}=1ellipse, centre (1,-3)
x^2-4y^2-2x-16y-19=0\dfrac{(x-1)^2}{4}-(y+2)^2=1hyperbola, centre (1,-2)
y^2-6y-4x+17=0(y-3)^2=4(x-2)parabola, vertex (2,3), p=1
x^2+y^2+4x-6y+13=0(x+2)^2+(y-3)^2=0a single point (-2,3)
x^2-y^2-2x-4y-3=0(x-1)^2-(y+2)^2=0two intersecting lines
x^2+y^2+2x+6y+20=0(x+1)^2+(y+3)^2=-10no points (empty set)
x^2+y^2+z^2-2x+4y-6z-11=0(x-1)^2+(y+2)^2+(z-3)^2=25sphere, centre (1,-2,3), radius 5

Example: leading coefficient

Reduce 2x^2+8x+1. Factor out the leading coefficient from the x terms only: 2(x^2+4x)+1. Add and subtract 4 inside the bracket:

2\bigl[(x+2)^2-4\bigr]+1=2(x+2)^2-7.

Check by expanding: 2(x^2+4x+4)-7=2x^2+8x+1.

Example: a circle that shrinks to a point

Which set is x^2+y^2+4x-6y+13=0?

Complete both squares: (x+2)^2-4+(y-3)^2-9+13=0, so (x+2)^2+(y-3)^2=0. Both squares are non-negative, so both must be zero: the set is the single point (-2,3), not a circle.

Example: an equation with no points

What is x^2+y^2+4x+10=0?

(x+2)^2+y^2=4-10=-6. A sum of squares cannot be negative, so there are no real points. The equation has no shape.

Practice: one, two and three variables

Work each problem on paper before opening the answer. The sets grow from one variable to three.

Set A. One variable, x
  1. x^2+6x+2
    Answer
    (x+3)^2-7
  2. x^2-5x+4
    Answer
    \bigl(x-\tfrac52\bigr)^2-\tfrac94
  3. 2x^2-8x+5
    Answer
    2(x-2)^2-3
  4. -3x^2+12x-7
    Answer
    -3(x-2)^2+5
  5. 4x^2+4x-3
    Answer
    4\bigl(x+\tfrac12\bigr)^2-4
  6. \tfrac12x^2+2x+3
    Answer
    \tfrac12(x+2)^2+1
Set B. Two variables, x and y
  1. x^2+y^2-4x+6y-3=0
    Answer
    (x-2)^2+(y+3)^2=16: circle, centre (2,-3), radius 4.
  2. x^2+y^2+8x-2y+17=0
    Answer
    (x+4)^2+(y-1)^2=0: the single point (-4,1).
  3. x^2+y^2+2x+4y+10=0
    Answer
    (x+1)^2+(y+2)^2=-5: no points.
  4. 9x^2+4y^2-18x+16y-11=0
    Answer
    \dfrac{(x-1)^2}{4}+\dfrac{(y+2)^2}{9}=1: ellipse, centre (1,-2).
  5. x^2-9y^2-4x+18y-14=0
    Answer
    \dfrac{(x-2)^2}{9}-(y-1)^2=1: hyperbola, centre (2,1).
  6. y^2+4y-8x-4=0
    Answer
    (y+2)^2=8(x+1): parabola, vertex (-1,-2), p=2.
Set C. Three variables, x, y and z
  1. x^2+y^2+z^2+6x-4y+2z-2=0
    Answer
    (x+3)^2+(y-2)^2+(z+1)^2=16: sphere, centre (-3,2,-1), radius 4.
  2. x^2+y^2+z^2-2x-4y-6z+14=0
    Answer
    (x-1)^2+(y-2)^2+(z-3)^2=0: the single point (1,2,3).
  3. x^2+y^2+z^2+4x+2z+9=0
    Answer
    (x+2)^2+y^2+(z+1)^2=-4: no points.
  4. 4x^2+9y^2+36z^2-8x+18y-72z+13=0
    Answer
    \dfrac{(x-1)^2}{9}+\dfrac{(y+1)^2}{4}+(z-1)^2=1: ellipsoid, centre (1,-1,1), semi-axes 3,2,1.
  5. x^2+y^2-z^2-2x+4y+2z+2=0
    Answer
    (x-1)^2+(y+2)^2-(z-1)^2=1: hyperboloid of one sheet, centre (1,-2,1).
  6. x^2+y^2-2x+4y-z+8=0
    Answer
    z=(x-1)^2+(y+2)^2+3: elliptic paraboloid, vertex (1,-2,3).
Practice generator. Pick the number of variables, press New problem, complete the squares by hand, then enter your answer. The equations are random, so you can practise as long as you like. Some problems describe a single point or no points.

1.2Distance, Relations, and Inequalities

Analytic geometry turns geometric statements into equations and inequalities. A relation between coordinates, such as y\ge x^2, describes the set of all points whose coordinates satisfy it.

Distance and midpoint

The distance between A(x_1,y_1,z_1) and B(x_2,y_2,z_2) and the midpoint M of AB are

|AB|=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2},\qquad M=\Bigl(\tfrac{x_1+x_2}{2},\tfrac{y_1+y_2}{2},\tfrac{z_1+z_2}{2}\Bigr).

In the plane, drop the z terms.

Basic inequalities

For vectors \mathbf u,\mathbf v and positive numbers a,b:

|\mathbf u+\mathbf v|\le|\mathbf u|+|\mathbf v|,\qquad |\mathbf u\cdot\mathbf v|\le|\mathbf u|\,|\mathbf v|,\qquad \frac{a+b}{2}\ge\sqrt{ab}.

For a real number x: |x-a|<r \iff a-r<x<a+r.

Example: distance

Find the distance between A(1,2,3) and B(4,6,15).

|AB|=\sqrt{3^2+4^2+12^2}=\sqrt{169}=13.

Example: a region

Describe \{(x,y):\ x^2+y^2\le 4,\ y\ge x\}.

The first condition is the closed disc of radius 2 centred at the origin. The second is the half-plane on or above the line y=x, which passes through the centre. The region is a half-disc with area \tfrac12\pi\cdot 2^2=2\pi.

1.3Hyperbolic Functions: Definitions and Identities

The hyperbolic functions play the same role for the hyperbola x^2-y^2=1 that sine and cosine play for the circle.

Definition

\sinh x=\frac{e^x-e^{-x}}{2},\qquad \cosh x=\frac{e^x+e^{-x}}{2},\qquad \tanh x=\frac{\sinh x}{\cosh x}.

Identities

\cosh^2x-\sinh^2x=1,\qquad \sinh 2x=2\sinh x\cosh x,\qquad \cosh 2x=\cosh^2x+\sinh^2x,
\sinh(x\pm y)=\sinh x\cosh y\pm\cosh x\sinh y,\qquad \cosh(x\pm y)=\cosh x\cosh y\pm\sinh x\sinh y.
FunctionDerivativeInverse
\sinh x\cosh x\operatorname{arsinh}x=\ln\bigl(x+\sqrt{x^2+1}\bigr)
\cosh x\sinh x\operatorname{arcosh}x=\ln\bigl(x+\sqrt{x^2-1}\bigr),\ x\ge1
\tanh x1-\tanh^2x\operatorname{artanh}x=\tfrac12\ln\tfrac{1+x}{1-x},\ |x|<1

Because \cosh^2t-\sinh^2t=1, the point (\cosh t,\sinh t) lies on the right branch of x^2-y^2=1. This is the basis of the parametrizations in Section 2.6 and of the hyperboloid parametrizations in Chapter 7.

Example

If \sinh x=\tfrac34, find \cosh x, \tanh x and x.

From \cosh^2x=1+\tfrac9{16}=\tfrac{25}{16} and \cosh x>0 we get \cosh x=\tfrac54 and \tanh x=\tfrac35. Then e^x=\cosh x+\sinh x=2, so x=\ln 2.

Q1Chapter 1: Quiz and Problems

Common student mistakes

Common errorx^2+6x=(x+6)^2-36

Correctx^2+6x=(x+3)^2-9

Add the square of half the coefficient, (6/2)^2=9, not the square of the coefficient.

Common errorx^2+y^2-6x=7\ \Rightarrow\ (x-3)^2+y^2=7

Correct(x-3)^2+y^2=7+9=16

Whatever you add to one side to complete a square must be added to the other side.

Common error2x^2+8x+1=2(x+2)^2+1

Correct2x^2+8x+1=2(x+2)^2-7

The factor 2 multiplies the added 4, so 2(x+2)^2 contains an extra 8 that must be subtracted.

Common error\sqrt{3^2+4^2}=3+4=7

Correct\sqrt{3^2+4^2}=5

A square root of a sum is not the sum of the square roots.

Common error\cosh^2x+\sinh^2x=1

Correct\cosh^2x-\sinh^2x=1

The hyperbolic identity has a minus sign. The plus sign gives \cosh2x.

Common error|x-2|<3\ \Rightarrow\ x<5

Correct-1<x<5

An absolute value inequality gives two bounds, 2-3<x<2+3.

Multiple-choice quiz

1 Complete the square: x^2-8x+3.
2 The circle x^2+y^2+2x-4y-4=0 has radius
3 The distance between A(1,-2,3) and B(3,2,7) is
4 \tanh(\ln 3)=
5 The equation x^2+y^2-6x+8y+25=0 describes
6 The equation x^2+y^2+4x+10=0 describes
7 Complete the square: 2x^2-8x+5.
8 The minimum value of x^2+6x+13 is
9 The sphere x^2+y^2+z^2-4x+6y-2z-2=0 has radius
10 \sinh(\ln2)=
11 The graph of y=-2(x-1)^2+5 is a parabola with
Answered 0 of 11 · Correct 0

Written problems

Problem 1. Show that x^2+y^2-4x+6y+13=0 is a single point and find it. (4 marks)

Show solution

Group and complete the squares: (x-2)^2-4+(y+3)^2-9+13=0, so

(x-2)^2+(y+3)^2=0.

A sum of two squares is zero only when both are zero, so the only solution is the point (2,-3).

Problem 2. Prove from the definitions that \cosh 2x=2\cosh^2x-1. (4 marks)

Show solution

2\cosh^2x-1=2\cdot\dfrac{e^{2x}+2+e^{-2x}}{4}-1=\dfrac{e^{2x}+e^{-2x}}{2}+1-1=\dfrac{e^{2x}+e^{-2x}}{2}=\cosh2x.

Problem 3. Complete the square in each case and say what it shows: (i) x^2-10x+30; (ii) 3x^2+12x+5; (iii) -2x^2+8x-3; (iv) x^2+y^2-10x+4y+4=0. (8 marks)

Show solution

(i) (x-5)^2+5: minimum 5 at x=5.

(ii) 3(x^2+4x)+5=3(x+2)^2-12+5=3(x+2)^2-7: vertex (-2,-7).

(iii) -2(x^2-4x)-3=-2(x-2)^2+8-3=-2(x-2)^2+5: maximum 5 at x=2.

(iv) (x-5)^2-25+(y+2)^2-4+4=0, so (x-5)^2+(y+2)^2=25: the circle with centre (5,-2) and radius 5.

Problem 4. Find the minimum of f(x)=x^2-6x+11 and the value of x where it occurs. (3 marks)

Show solution

f(x)=(x-3)^2+2. The square is never negative, so the minimum is 2, reached at x=3.

Problem 5. Show that x^2+y^2+z^2-2x+4y-6z+14=0 is a single point and find it. (4 marks)

Show solution

(x-1)^2-1+(y+2)^2-4+(z-3)^2-9+14=0, so (x-1)^2+(y+2)^2+(z-3)^2=0. The only solution is the point (1,-2,3).

Problem 6. Complete the squares and describe the set: (a) x^2+y^2-8x+2y+8=0; (b) x^2+y^2+6x-4y+20=0. (6 marks)

Show solution

(a) (x-4)^2+(y+1)^2=16+1-8=9: the circle with centre (4,-1) and radius 3.

(b) (x+3)^2+(y-2)^2=9+4-20=-7: no points.

Short essay

Essay. Explain why completing the square links algebra to geometry. Use at least two examples from this chapter. (about 150 words)

Show model answer

Completing the square turns an expression whose geometry is hidden into one where it can be read off. For x^2+y^2+Dx+Ey+F=0 it gives the centre (-\tfrac D2,-\tfrac E2) and the radius, and it also tells us when the set is a point or empty. For ax^2+bx+c it gives the vertex of the parabola and, by setting the expression to zero, the quadratic formula. The same step later reduces every conic with no xy term to its standard form. A strong answer states the identity, shows one worked reduction, and says what is read from the result.