Skip to content
Gioi Toan
Start learning
A smiling cube standing in front of a cylinder

Notes on Lesson 3: Equation of the sphere (Maths 12 Chan troi sang tao, Chapter V)

Lesson summary

In space, given a point II and a positive number RR.

The equation x2+y2+z2−2ax−2by−2cz+d=0x^2 + y^2 + z^2 - 2ax - 2by - 2cz + d = 0 with a2+b2+c2−d>0a^2 + b^2 + c^2 - d > 0 is the equation of a sphere with centre I(a;b;c)I(a; b; c) and radius R=a2+b2+c2−dR = \sqrt{a^2 + b^2 + c^2 - d}.

This formula is exactly the distance formula between two points you learned in the coordinate system lesson, just squared on both sides to make it neater.

This content is not yet available in English. It is shown below in the original Vietnamese.

  • Nhận biết và lập được phương trình mặt cầu, xác định tâm và bán kính

A football, a globe or a soap bubble all bring to mind spheres. In space OxyzOxyz, a sphere is no longer a drawing but becomes an equation, and from that equation you can read off the centre and the radius. This lesson helps you recognise the equation of a sphere in two forms, find the centre and radius, form an equation when the centre and radius are known, and apply it to some practical problems such as coverage areas and GPS positioning.

Practise similar problems

Key ideas: what do you need to know?

Sphere and the equation of a sphere in canonical form

  • In space, given a point II and a positive number RR. The sphere with centre II and radius RR, denoted S(I;R)S(I; R), is the set of points MM in space satisfying IM=RIM = R.
  • The line segment joining two points on the sphere and passing through the centre II is a diameter of the sphere. The diameter has length 2R2R.
  • Given the sphere S(I;R)S(I; R). If IM=RIM = R then MM lies on the sphere; if IM<RIM < R then MM lies inside the sphere; if IM>RIM > R then MM lies outside the sphere.
  • In space OxyzOxyz, the sphere (S)(S) with centre I(a;b;c)I(a; b; c) and radius RR has equation (x−a)2+(y−b)2+(z−c)2=R2(x - a)^2 + (y - b)^2 + (z - c)^2 = R^2.
  • Example: (x−1)2+(y+2)2+(z−3)2=9(x - 1)^2 + (y + 2)^2 + (z - 3)^2 = 9 is the sphere with centre I(1;−2;3)I(1; -2; 3) and radius R=3R = 3.

In plain words: This formula is exactly the distance formula between two points you learned in the coordinate system lesson, just squared on both sides to make it neater. Look at the minus sign inside the brackets and you get the centre's coordinates: (x−a)2(x - a)^2 means the centre has x-coordinate aa, so (x+2)2(x + 2)^2 corresponds to a=−2a = -2. And the number on the right is R2R^2, not RR, so if you see 9 the radius is 3, not 9. This is the most common mistake.

Phrase by phrase
sphere with centre II and radius RR
The set of all points in space at exactly a distance R>0R > 0 from II.Example: The sphere with centre O(0;0;0)O(0; 0; 0) and radius 1 has equation x2+y2+z2=1x^2 + y^2 + z^2 = 1.
(x−a)2+(y−b)2+(z−c)2=R2(x - a)^2 + (y - b)^2 + (z - c)^2 = R^2
The equation of a sphere in canonical form, from which you can read off the centre and the square of the radius straight away.Example: (x−2)2+y2+(z+1)2=4(x - 2)^2 + y^2 + (z + 1)^2 = 4 has centre (2;0;−1)(2; 0; -1), R=2R = 2.
diameter of the sphere
The line segment joining two points on the sphere and passing through the centre, with length equal to twice the radius.Example: A sphere with radius R=3R = 3 has diameter 6.

Equation of a sphere in expanded form

  • The equation x2+y2+z2−2ax−2by−2cz+d=0x^2 + y^2 + z^2 - 2ax - 2by - 2cz + d = 0 with a2+b2+c2−d>0a^2 + b^2 + c^2 - d > 0 is the equation of a sphere with centre I(a;b;c)I(a; b; c) and radius R=a2+b2+c2−dR = \sqrt{a^2 + b^2 + c^2 - d}.
  • The condition a2+b2+c2−d>0a^2 + b^2 + c^2 - d > 0 is required for the equation to be a sphere.
  • An equation with a term containing a product such as xyxy is not the equation of a sphere.
  • Example: x2+y2+z2−2x+4y−6z+5=0x^2 + y^2 + z^2 - 2x + 4y - 6z + 5 = 0 has a=1a = 1, b=−2b = -2, c=3c = 3, d=5d = 5, so R=1+4+9−5=3R = \sqrt{1 + 4 + 9 - 5} = 3.

In plain words: The expanded form looks messier but is really just the canonical form after removing the brackets. Reading tip: the coefficient of x,y,zx, y, z is −2a,−2b,−2c-2a, -2b, -2c, so divide the coefficient by −2-2 to get the centre's coordinates. For example, if the coefficient of xx is −2-2 then a=1a = 1. For the radius, compute a2+b2+c2−da^2 + b^2 + c^2 - d and then take the square root. Remember to check the positive condition before the conclusion, because not every equation of that form is a sphere.

Phrase by phrase
x2+y2+z2−2ax−2by−2cz+d=0x^2 + y^2 + z^2 - 2ax - 2by - 2cz + d = 0
The expanded form of the equation of a sphere, the coefficients of x2,y2,z2x^2, y^2, z^2 all equal 1.Example: x2+y2+z2−4x+2z−4=0x^2 + y^2 + z^2 - 4x + 2z - 4 = 0.
a2+b2+c2−d>0a^2 + b^2 + c^2 - d > 0
The condition for the equation to really be a sphere.Example: x2+y2+z2−2x+2=0x^2 + y^2 + z^2 - 2x + 2 = 0 has 1+0+0−2<01 + 0 + 0 - 2 < 0 so it is not a sphere.
R=a2+b2+c2−dR = \sqrt{a^2 + b^2 + c^2 - d}
The formula for the radius from the coefficients of the expanded form.Example: x2+y2+z2−2x−2y−2z−3=0x^2 + y^2 + z^2 - 2x - 2y - 2z - 3 = 0 has R=1+1+1+3=6R = \sqrt{1 + 1 + 1 + 3} = \sqrt{6}.

Common mistakesMeeting the expanded form with a coefficient of x2,y2,z2x^2, y^2, z^2 different from 1 without first dividing both sides by that coefficient before reading off a,b,c,da, b, c, d.

TipExpanded form: take the coefficient of x,y,zx, y, z and divide it by −2-2 to get the centre coordinates; the square of the radius equals the sum of the squares of the centre coordinates minus the constant term.

TipBefore concluding that an equation is a sphere, check two things: the coefficients of x2,y2,z2x^2, y^2, z^2 are equal and non-zero, there are no terms containing xyxy, yzyz, zxzx, and the square of the radius is positive.

Form the equation of a sphere when the centre and radius are known

  • Knowing the centre I(a;b;c)I(a; b; c) and the radius RR, write (x−a)2+(y−b)2+(z−c)2=R2(x - a)^2 + (y - b)^2 + (z - c)^2 = R^2 straight away.
  • If you know the centre II and the sphere passes through the point AA, then the radius is exactly R=IAR = IA, calculated with the formula for the distance between two points.
  • If you know the diameter ABAB, then the centre is the midpoint of ABAB, and the radius is R=AB2R = \frac{AB}{2}.
  • Example: the sphere with centre I(1;0;−2)I(1; 0; -2) passing through A(3;1;1)A(3; 1; 1) has R=4+1+9=14R = \sqrt{4 + 1 + 9} = \sqrt{14}, equation (x−1)2+y2+(z+2)2=14(x - 1)^2 + y^2 + (z + 2)^2 = 14.

In plain words: Writing the equation of a sphere involves just two things: finding the centre and finding the radius. The centre is usually given, or it is the midpoint of the diameter. The radius is either given, or you have to work it out from the distance from the centre to a point that belongs to the sphere. Remember well: a point on the sphere is exactly one radius away from the centre, and that is the key to every exercise on forming an equation.

Phrase by phrase
the sphere passes through the point AA
The point AA lies on the sphere, so IA=RIA = R.Example: Centre OO, passing through A(1;2;2)A(1; 2; 2), so R=3R = 3.
diameter ABAB
The longest line segment joining two points of the sphere, passing through the centre.Example: A(0;0;0)A(0; 0; 0), B(2;0;0)B(2; 0; 0), then the centre is (1;0;0)(1; 0; 0), R=1R = 1.
the midpoint of ABAB
The point that divides ABAB into two congruent line segments; if ABAB is a diameter of the sphere, then the midpoint of ABAB is the centre of the sphere.Example: A(1;2;3)A(1; 2; 3), B(3;4;5)B(3; 4; 5) have midpoint (2;3;4)(2; 3; 4); if ABAB is a diameter, then the centre of the sphere is (2;3;4)(2; 3; 4).

Common mistakesMistaking the number on the right for the radius: seeing (x−1)2+y2+z2=9(x - 1)^2 + y^2 + z^2 = 9 and saying straight away R=9R = 9, when it should be R=9=3R = \sqrt{9} = 3.

Some applications of the equation of a sphere in real life

  • Many objects in everyday life can be modelled by a sphere or part of a sphere: a ball, a globe, a soap bubble, a dome shaped like a hemisphere. When placed in the coordinate system OxyzOxyz, the surface of their model is a sphere or part of a sphere.
  • To write the equation, you identify the centre (usually the centre of the object, or a point whose coordinates are known) and the radius (usually half the diameter of the object).
  • A common problem: a point emits waves spreading equally in all directions; the set of points at exactly a distance RR from the source is a sphere with centre at the source and radius RR. The boundary of the coverage area up to a distance RR is exactly that sphere.
  • Example: a transmitter placed at I(1;2;3)I(1; 2; 3) covers a radius of 5 km, so the boundary of the coverage area is the sphere (x−1)2+(y−2)2+(z−3)2=25(x - 1)^2 + (y - 2)^2 + (z - 3)^2 = 25.

In plain words: A real-life exercise is just a problem on forming the equation of a sphere dressed up in everyday clothes. Just ask two questions: what plays the role of the centre, and what plays the role of the radius? For a ball, the centre is the centre of the ball and the radius is half the diameter. For a transmitter, the centre is where the transmitter is placed, the radius is the coverage range, and the boundary of the coverage area is the corresponding sphere. Do the unit conversion so everything matches, then write the equation as usual.

Phrase by phrase
the boundary of the coverage area
The set of points at exactly a distance equal to the coverage range from the transmitter.Example: Transmitter OO, range 2 km: x2+y2+z2=4x^2 + y^2 + z^2 = 4.
radius (usually half the diameter of the object)
For a spherical object, the radius is half the diameter.Example: A ball with diameter 22 cm has radius 11 cm.
waves spread equally in all directions
Points at the same distance from the source lie on the same sphere with centre at the source.Example: A wifi signal reaches 10 m: the boundary of the coverage area is a sphere of radius 10 m around the router.

Worked examples

Example 1

Find the centre and radius of each sphere:
a) (x−2)2+(y+1)2+(z−3)2=16(x - 2)^2 + (y + 1)^2 + (z - 3)^2 = 16;
b) x2+(y−4)2+(z+5)2=7x^2 + (y - 4)^2 + (z + 5)^2 = 7.

Show the solution to example 1

Step 1: Compare with the form (x−a)2+(y−b)2+(z−c)2=R2(x - a)^2 + (y - b)^2 + (z - c)^2 = R^2.
Step 2: a) We have a=2a = 2, b=−1b = -1 (because y+1=y−(−1)y + 1 = y - (-1)), c=3c = 3, R2=16R^2 = 16.
Why: The sign inside the brackets is opposite to the sign of the centre's coordinate, so y+1y + 1 gives the y-coordinate −1-1.
Step 3: a) R=16=4R = \sqrt{16} = 4.
Step 4: b) We have a=0a = 0, b=4b = 4, c=−5c = -5, R2=7R^2 = 7, so R=7R = \sqrt{7}.
Result: a) Centre I(2;−1;3)I(2; -1; 3), R=4R = 4; b) Centre I(0;4;−5)I(0; 4; -5), R=7R = \sqrt{7}.

Common mistakesGetting the sign of a centre coordinate wrong: (y+2)2(y + 2)^2 gives y-coordinate −2-2 instead of 22.

TipStandard form: the signs inside the brackets are opposite to the centre coordinates, and the number on the right is the square of the radius.

Example 2

Given the equation x2+y2+z2−2x+4y−6z+5=0x^2 + y^2 + z^2 - 2x + 4y - 6z + 5 = 0. Show that it is the equation of a sphere and find its centre and radius.

Show the solution to example 2

Step 1: Compare with the form x2+y2+z2−2ax−2by−2cz+d=0x^2 + y^2 + z^2 - 2ax - 2by - 2cz + d = 0: the coefficients of x2,y2,z2x^2, y^2, z^2 are all equal to 1, so it has the right form.
Step 2: The coefficient of xx is −2=−2a-2 = -2a so a=1a = 1; of yy is 4=−2b4 = -2b so b=−2b = -2; of zz is −6=−2c-6 = -2c so c=3c = 3; d=5d = 5.
Why: Divide the coefficient by −2-2 to get the centre's coordinate, no need to transform the whole equation.
Step 3: Calculate a2+b2+c2−d=1+4+9−5=9>0a^2 + b^2 + c^2 - d = 1 + 4 + 9 - 5 = 9 > 0, so this is a sphere.
Step 4: R=9=3R = \sqrt{9} = 3.
Result: Sphere with centre I(1;−2;3)I(1; -2; 3), radius R=3R = 3.

Example 3

Which of the following equations is the equation of a sphere? For each equation that is a sphere, give the centre and radius.
a) x2+y2+z2−2x+2=0x^2 + y^2 + z^2 - 2x + 2 = 0;
b) 2x2+2y2+2z2−4x+8z−6=02x^2 + 2y^2 + 2z^2 - 4x + 8z - 6 = 0.

Show the solution to example 3

Step 1: a) We have a=1a = 1, b=0b = 0, c=0c = 0, d=2d = 2. Calculate a2+b2+c2−d=1+0+0−2=−1<0a^2 + b^2 + c^2 - d = 1 + 0 + 0 - 2 = -1 < 0.
Why: The condition a2+b2+c2−d>0a^2 + b^2 + c^2 - d > 0 is not satisfied, so no point satisfies the equation.
Step 2: a) Conclusion: it is not the equation of a sphere.
Step 3: b) Divide both sides by 2 so that the coefficient of x2,y2,z2x^2, y^2, z^2 equals 1: x2+y2+z2−2x+4z−3=0x^2 + y^2 + z^2 - 2x + 4z - 3 = 0.
Step 4: We have a=1a = 1, b=0b = 0, c=−2c = -2, d=−3d = -3. Calculate 1+0+4−(−3)=8>01 + 0 + 4 - (-3) = 8 > 0, so it is a sphere with R=8=22R = \sqrt{8} = 2\sqrt{2}.
Result: a) Not a sphere; b) Sphere with centre I(1;0;−2)I(1; 0; -2), R=22R = 2\sqrt{2}.

Common mistakesForgetting the condition a2+b2+c2−d>0a^2 + b^2 + c^2 - d > 0 and still concluding that x2+y2+z2−2x+5=0x^2 + y^2 + z^2 - 2x + 5 = 0 is a sphere even though 1−5<01 - 5 < 0.

Example 4

Form the equation of the sphere:
a) centre I(1;0;−2)I(1; 0; -2), radius R=3R = 3;
b) centre I(2;−1;3)I(2; -1; 3) and passing through the point A(4;2;1)A(4; 2; 1);
c) with A(1;2;3)A(1; 2; 3) and B(3;4;5)B(3; 4; 5) as the two ends of a diameter.

Show the solution to example 4

Step 1: a) Write the standard form straight away: (x−1)2+y2+(z+2)2=9(x - 1)^2 + y^2 + (z + 2)^2 = 9.
Step 2: b) Since AA belongs to the sphere, R=IA=(4−2)2+(2+1)2+(1−3)2=4+9+4=17R = IA = \sqrt{(4 - 2)^2 + (2 + 1)^2 + (1 - 3)^2} = \sqrt{4 + 9 + 4} = \sqrt{17}.
Why: A point on the sphere is exactly the radius away from the centre, and that is how to find RR when the problem gives only one point on the sphere.
Step 3: b) Equation: (x−2)2+(y+1)2+(z−3)2=17(x - 2)^2 + (y + 1)^2 + (z - 3)^2 = 17.
Step 4: c) The centre is the midpoint of ABAB: I(1+32;2+42;3+52)=(2;3;4)I\left(\frac{1 + 3}{2}; \frac{2 + 4}{2}; \frac{3 + 5}{2}\right) = (2; 3; 4).
Step 5: c) AB=22+22+22=12=23AB = \sqrt{2^2 + 2^2 + 2^2} = \sqrt{12} = 2\sqrt{3}, so R=AB2=3R = \frac{AB}{2} = \sqrt{3}.
Step 6: c) Equation: (x−2)2+(y−3)2+(z−4)2=3(x - 2)^2 + (y - 3)^2 + (z - 4)^2 = 3.
Result: a) (x−1)2+y2+(z+2)2=9(x - 1)^2 + y^2 + (z + 2)^2 = 9; b) (x−2)2+(y+1)2+(z−3)2=17(x - 2)^2 + (y + 1)^2 + (z - 3)^2 = 17; c) (x−2)2+(y−3)2+(z−4)2=3(x - 2)^2 + (y - 3)^2 + (z - 4)^2 = 3.

Common mistakesWhen forming the equation from a given diameter, taking R=ABR = AB straight away instead of R=AB2R = \frac{AB}{2}, or taking AA or BB as the centre instead of the midpoint ABAB.

Example 5

A broadcasting station is placed at the point I(1;2;3)I(1; 2; 3) (unit: km), and the signal spreads evenly in all directions with a range of 5 km. Write the equation of the sphere describing the boundary of the coverage area. Does a person standing at M(4;6;3)M(4; 6; 3) receive the signal?

Show the solution to example 5

Step 1: The boundary of the coverage area is the set of points exactly 5 km from the station, so it is the sphere with centre I(1;2;3)I(1; 2; 3) and radius R=5R = 5.
Step 2: Equation: (x−1)2+(y−2)2+(z−3)2=25(x - 1)^2 + (y - 2)^2 + (z - 3)^2 = 25.
Step 3: Calculate IM=(4−1)2+(6−2)2+(3−3)2=9+16+0=5IM = \sqrt{(4 - 1)^2 + (6 - 2)^2 + (3 - 3)^2} = \sqrt{9 + 16 + 0} = 5.
Why: Compare the distance to the centre with the radius: less than means inside the coverage area, equal means exactly on the boundary, greater than means outside.
Step 4: IM=5=RIM = 5 = R, so MM lies exactly on the boundary and still receives the signal.
Result: (x−1)2+(y−2)2+(z−3)2=25(x - 1)^2 + (y - 2)^2 + (z - 3)^2 = 25; the person at MM is on the boundary, so they receive the signal.

Example 6

A ball has a diameter of 22 cm and is placed in the coordinate system OxyzOxyz so that the centre of the ball is the point I(10;20;11)I(10; 20; 11) (unit: cm). Write the equation of the sphere describing the surface of the ball. Is the point P(10;20;25)P(10; 20; 25) inside, on, or outside the ball?

Show the solution to example 6

Step 1: The radius of the ball is R=222=11R = \frac{22}{2} = 11 cm.
Step 2: The surface of the ball is the sphere with centre I(10;20;11)I(10; 20; 11) and radius 11: (x−10)2+(y−20)2+(z−11)2=121(x - 10)^2 + (y - 20)^2 + (z - 11)^2 = 121.
Step 3: Calculate IP=0+0+(25−11)2=14IP = \sqrt{0 + 0 + (25 - 11)^2} = 14.
Why: 14>1114 > 11, so PP is farther from the centre than the radius, that is, it lies outside the ball.
Step 4: Check by substituting the coordinates of PP into the left-hand side: (25−11)2=196>121(25 - 11)^2 = 196 > 121, which matches the conclusion.
Result: (x−10)2+(y−20)2+(z−11)2=121(x - 10)^2 + (y - 20)^2 + (z - 11)^2 = 121; the point PP lies outside the ball.

Terms

Sphere
The set of points in space at a fixed distance R>0R > 0 from a fixed point.Example: The sphere with centre OO and radius 1.
Equation of a sphere
The relation linking the coordinates of points on the sphere.Example: (x−1)2+y2+z2=4(x - 1)^2 + y^2 + z^2 = 4.
Standard form
The form (x−a)2+(y−b)2+(z−c)2=R2(x - a)^2 + (y - b)^2 + (z - c)^2 = R^2, from which you read off the centre and the square of the radius straight away.Example: (x−2)2+(y−1)2+z2=9(x - 2)^2 + (y - 1)^2 + z^2 = 9.
Expanded form
The form x2+y2+z2−2ax−2by−2cz+d=0x^2 + y^2 + z^2 - 2ax - 2by - 2cz + d = 0 with a2+b2+c2−d>0a^2 + b^2 + c^2 - d > 0.Example: x2+y2+z2−2x+4z−4=0x^2 + y^2 + z^2 - 2x + 4z - 4 = 0.
Centre of the sphere
The point equidistant from every point on the sphere, denoted I(a;b;c)I(a; b; c).Example: Centre I(1;−2;3)I(1; -2; 3).
Radius
The distance from the centre to any point on the sphere, denoted RR.Example: R=3R = 3.
Condition a2+b2+c2−d>0a^2 + b^2 + c^2 - d > 0
The condition for an equation in expanded form to be a genuine sphere.Example: x2+y2+z2−2x+5=0x^2 + y^2 + z^2 - 2x + 5 = 0 is not a sphere because 1−5<01 - 5 < 0.
Diameter
The longest line segment joining two points of the sphere, twice as long as the radius.Example: If R=2R = 2 then the diameter is 4.

Practise similar problems

Practice questions from the Ket noi tri thuc series on the same ideas as this lesson. Answer each one and get it marked straight away.