Lesson Explainer: Equation of a Sphere | Nagwa Lesson Explainer: Equation of a Sphere | Nagwa

Lesson Explainer: Equation of a Sphere Mathematics • Third Year of Secondary School

Join Nagwa Classes

Attend live Mathematics sessions on Nagwa Classes to learn more about this topic from an expert teacher!

In this explainer, we will learn how to find the equation of a sphere given its center and how to find the center and the radius given the sphere’s equation.

Let us start by recalling the definition of a sphere.

Definition: Sphere

A sphere is the locus of all points (𝑥,𝑦,𝑧) that are a distance 𝑟 from a fixed point (𝑎,𝑏,𝑐).

In this definition, 𝑟 is the radius of the sphere, and the fixed point (𝑎,𝑏,𝑐) is the center of the sphere. We now want to use this definition to help us derive the equation of a sphere in standard form.

First, recall that we can calculate the distance between two points (𝑥,𝑦,𝑧) and (𝑥,𝑦,𝑧) using the formula 𝑑=(𝑥𝑥)+(𝑦𝑦)+(𝑧𝑧).

In our definition of a sphere, we have a set of points (𝑥,𝑦,𝑧) that are a fixed distance 𝑟 from the center of the sphere (𝑎,𝑏,𝑐). Therefore, by substituting into the distance formula, we have that 𝑟=(𝑥𝑎)+(𝑦𝑏)+(𝑧𝑐), which is an equation for the sphere. This, however, is not the standard form for the equation of a sphere. If we square both sides of the equation, we get 𝑟=(𝑥𝑎)+(𝑦𝑏)+(𝑧𝑐), which is the standard form of the equation of a sphere with radius 𝑟 (noting that 𝑟>0) and center (𝑎,𝑏,𝑐).

Definition: The Equation of a Sphere in Standard Form

The Cartesian equation of a sphere with radius 𝑟 and center (𝑎,𝑏,𝑐), in standard form, is (𝑥𝑎)+(𝑦𝑏)+(𝑧𝑐)=𝑟.

This means that if we know the coordinates for the center of a sphere along with the length of its radius, or if we can calculate these two pieces of information, then we can find the equation of the sphere.

With that in mind, let us look at our first couple of examples.

Example 1: Finding the Equation of a Sphere given Its Center and Radius

Give the equation of the sphere of center (11,8,5) and radius 3 in standard form.

Answer

We know that the standard form of the equation of a sphere is (𝑥𝑎)+(𝑦𝑏)+(𝑧𝑐)=𝑟, where (𝑎,𝑏,𝑐) is the center and 𝑟 is the length of the radius. Here, we are given the coordinates of the center of the sphere and, therefore, can deduce that 𝑎=11, 𝑏=8, and 𝑐=5. We are also told that 𝑟=3. Substituting these values, we find that (𝑥11)+(𝑦8)+(𝑧+5)=3.

Finally, evaluating the right-hand side gives (𝑥11)+(𝑦8)+(𝑧+5)=9.

Example 2: Finding the Center and Radius of a Sphere given Its Equation

Given that a sphere’s equation is (𝑥+5)+(𝑦12)+(𝑧2)289=0, determine its center and radius.

Answer

We know that the standard form of the equation of a sphere is (𝑥𝑎)+(𝑦𝑏)+(𝑧𝑐)=𝑟, where (𝑎,𝑏,𝑐) is the center and 𝑟 is the length of the radius. We need to rearrange the given equation into this form. First, we add 289 to both sides of the equation to give us (𝑥+5)+(𝑦12)+(𝑧2)=289.

Then, we rewrite the expression in the first set of parentheses to match the standard form equation to get (𝑥(5))+(𝑦12)+(𝑧2)=289.

Finally, noting that the square root of 289=17, we can rewrite our equation once more to get (𝑥(5))+(𝑦12)+(𝑧2)=17.

From here, we can determine that the center of the sphere has coordinates (5,12,2) and that the radius is 17.

Let us now look at an example where we apply what we have learned about the equation of a sphere to solve a geometric problem.

Example 3: Finding the Endpoint of a Sphere’s Diameter given the Other Endpoint and the Sphere’s Equation

Given 𝐴(0,4,4) and that 𝐴𝐵 is a diameter of the sphere (𝑥+2)+(𝑦+1)+(𝑧1)=38, what is the point 𝐵?

Answer

We can take two approaches to solve this problem. We can either solve the problem geometrically using vectors or solve it algebraically by considering the relative positions of the points that we know.

First, recall the standard form for the equation of a sphere: (𝑥𝑎)+(𝑦𝑏)+(𝑧𝑐)=𝑟, where (𝑎,𝑏,𝑐) is the center and 𝑟 is the length of the radius. Using this, we can see that the center of our sphere has coordinates (2,1,1) and we can draw a quick sketch of the sphere to help us visualize the problem.

We note that the points 𝐴, 𝐶, and 𝐵 lie on the same line, and because 𝐴𝐵 is a diameter of the sphere, we know that 𝐶 is the midpoint of 𝐴𝐵.

Method 1

First, let us look at how to solve the problem algebraically. As 𝐴 and 𝐵 are the end points of a diameter of the sphere and 𝐶 is the center, we know that 𝐶 is the midpoint of 𝐴𝐵. For a line in three-dimensional space, the midpoint, 𝐶, of a line segment with end points 𝐴(𝑥,𝑦,𝑧) and 𝐵(𝑥,𝑦,𝑧) can be calculated using the formula 𝐶=𝑥+𝑥2,𝑦+𝑦2,𝑧+𝑧2.

We can then deduce that 0+𝑥2,4+𝑦2,4+𝑧2=(2,1,1).

This gives us three equations: 𝑥2=2,4+𝑦2=1,4+𝑧2=1.

Solving these gives us 𝑥=4, 𝑦=6, and 𝑧=2. Therefore, the coordinates of 𝐵 are (4,6,2).

Method 2

For interest, if we want to solve the problem geometrically using vectors, we can deduce that 𝐴𝐶=𝐶𝐵; therefore, given that point 𝑂 is a relative center of the system, we have that 𝑂𝐵=𝑂𝐶+𝐴𝐶.

We have that 𝑂𝐶=(2,1,1) and 𝐴𝐶=𝑂𝐶𝑂𝐴. Therefore, 𝐴𝐶=(2,1,1)(0,4,4), which simplifies to (2,5,3).

We can now calculate 𝑂𝐵 as follows: 𝑂𝐵=(2,1,1)+(2,5,3), which simplifies to (4,6,2).

Therefore, the coordinates of 𝐵 are (4,6,2).

Before we look at our final example, let us recall how to complete the square for a quadratic expression.

How To: Completing the Square for a Quadratic Expression

Let us consider the expression 𝑎𝑥+𝑏𝑥+𝑐.

To complete the square, we start by factoring out the 𝑎: 𝑎𝑥+𝑏𝑎𝑥+𝑐𝑎.

Now, we consider the expression 𝑎𝑥+𝑏2𝑎. If we expand the square of the binomial, we find that 𝑎𝑥+𝑏2𝑎=𝑎𝑥+𝑏𝑎𝑥+𝑏(2𝑎), which we note is the same as the expression above, excluding the constant term.

Therefore, we can rewrite our original expression as follows: 𝑎𝑥+𝑏2𝑎𝑏(2𝑎)+𝑐𝑎.

Finally, multiplying through by 𝑎 gives 𝑎𝑥+𝑏2𝑎𝑏4𝑎+𝑐.

This is the form of our original expression after completing the square.

We can use the method outlined above to convert the general form of the equation of a sphere to standard form. If we consider the sphere whose general equation is 𝑥+𝑦+𝑧2𝑎𝑥2𝑏𝑦2𝑐𝑧+𝑑=0, then we can covert this to standard form by completing the squares for the quadratics in each of the three variables. If we start by rearranging the equation to group all of the terms containing the same variables, we get 𝑥2𝑎𝑥+𝑦2𝑏𝑦+𝑧2𝑐𝑧+𝑑=0.

Now, we can complete the square for each of the three quadratics to get (𝑥𝑎)𝑎+(𝑦𝑏)𝑏+(𝑧𝑐)𝑐+𝑑=0.

Finally, if we group together the constant terms, we can see that 𝑟=𝑎+𝑏+𝑐𝑑, and the center of the sphere has coordinates (𝑎,𝑏,𝑐).

To finish, let us look at an example where we need to identify the center and radius of a sphere whose equation is given in general form.

Example 4: Identifying the Center and Radius of a Sphere given Its Equation in General Form

Give the center and radius of the sphere 𝑥+𝑦+𝑧8𝑥+8𝑦+10𝑧+8=0.

Answer

Here, we are given the general form of the equation of a sphere, but we will need to compare the equation with the standard form of the equation of a sphere to determine its center and radius. Recall that the standard form for the equation of a sphere is (𝑥𝑎)+(𝑦𝑏)+(𝑧𝑐)=𝑟, where (𝑎,𝑏,𝑐) is the center and 𝑟 is the length of the radius.

First, let us group together the terms that contain the same variables: 𝑥8𝑥+𝑦+8𝑦+𝑧+10𝑧+8=0.

Now, we need to complete the square for the quadratics in each of the three variables, giving us (𝑥4)16+(𝑦+4)16+(𝑧+5)25+8=0.

Collecting the constant terms gives (𝑥4)+(𝑦+4)+(𝑧+5)49=0, and adding 49 to each side gives us (𝑥4)+(𝑦+4)+(𝑧+5)=49.

Finally, if we compare this with the standard form for the equation of a sphere, we can see that the center of the sphere is (4,4,5) and the radius of the sphere is 49=7.

Key Points

  • A sphere is a three-dimensional shape where every point is a distance 𝑟 (the radius of the sphere) from the center.
  • A sphere centered at the point (𝑎,𝑏,𝑐) with radius 𝑟 has the equation (in standard form) (𝑥𝑎)+(𝑦𝑏)+(𝑧𝑐)=𝑟. If we are given the equation of the sphere not in standard form, we can convert it to this form using algebraic methods and identify the center and radius by comparing the resulting equation to the general form.
  • To identify the center and radius of a sphere whose equation is given in general form, we can convert the equation to standard form by completing the square for each of the quadratics in each of the three variables.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy