If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Surface integral example

Practice computing a surface integral over a sphere.

The task at hand: Surface integral on a sphere.

In the last article, I talked about what surface integrals do and how you can interpret them. Here, you can walk through the full details of an example. If you prefer videos you can also watch Sal go through a different example.
Consider the sphere of radius 2, centered at the origin.
Your task will be to integrate the following function over the surface of this sphere:
f(x,y,z)=(x1)2+y2+z2

Step 1: Take advantage of the sphere's symmetry

The sphere with radius 2 is, by definition, all points in three-dimensional space satisfying the following property:
x2+y2+z2=22
This expression is very similar to the function:
f(x,y,z)=(x1)2+y2+z2
In fact, we can use this to our advantage...
Concept check: When you evaluate f(x,y,z)=(x1)2+y2+z2 on points that happen to be on the sphere with radius 2, what simpler expression do you get?

Keep in mind, f(x,y,z) does not equal this simpler expression everywhere, but only on the points where x2+y2+z2=4. Since we will only integrate over points on this sphere, though, we can justifiably replace the function f in the integral with this value.
Sphere((x1)2+y2+z2)dΣ=Sphere(2x+5)dΣ
Of course, this is not something you can do for every surface integral, but it's a good lesson to take advantage of symmetry when you can to make these integrals easier.

Step 2: Parameterize the sphere

To relate this surface integral to a double integral on a flat plane, we need to first find a function which parameterizes the sphere.
Concept check: Which of the following functions parameterizes the sphere with radius 2?
Choose 1 answer:

Great! Now we have a formula for the parameterization v(t,s) of the sphere, along with a corresponding region on the ts-plane. We can start expanding out surface integral like this:
Sphere(2x+5)dΣ=0π02π(2(2cos(t)sin(s))x-value of parameterization+5)|vt×vs|We need work this outdtds

Step 3: Compute both partial derivatives

The main beast to wrangle with in any surface integral is this little guy:
|vt×vs|
Concept check: To start, compute both partial derivatives of our parametric function:
v(t,s)=[2cos(t)sin(s)2sin(t)sin(s)2cos(s)]
vt(t,s)=
i^+
j^+
k^

vs(t,s)=
i^+
j^+
k^

Step 4: Compute the cross product

Compute the cross product of the two partial derivative vectors that you just found.
vt×vs=
i^+
j^+
k^

Step 5: Find the magnitude of the cross product.

Find the magnitude of the cross product that you just found.
|vt×vs|=

Notice, technically the answer should have an absolute value sign in it. However, because our parameterization only applies to the region where 0sπ, the value of sin(s) will always be positive anyway, so we are free to leave that out.

Step 6: Compute the integral

Taking everything we've done so far, here's what the surface integral has turned into:
Spheref(x,y,z)dΣ=Sphere(2x+5)dΣStep 1=0π02π(2(2cos(t)sin(s))+5)|vt×vs|dtdsStep 2=0π02π(2(2cos(t)sin(s))+5)(4sin(s))dtdsSteps 3, 4, 5=0π02π(16cos(t)sin2(s)+20sin(s))dtds
As a the final step, compute this double integral.
0π02π(16cos(t)sin2(s)+20sin(s))dtds=

Want to join the conversation?

  • spunky sam blue style avatar for user Arunabh Bhattacharya
    I could only understand the parameterization of ( x = r cos 𝜽 ; y = r sin 𝜽 ; z = 0 ) in the xy-plane from (0 to 2 π ) around z-axis.
    Could you please explain the parameterization of the varying radius from (0 to π). How do you get ( x y z ) as ( r cos sin; r sin sin; r cos) or (r cos cos; r sin sin; r sin) ?
    (4 votes)
    Default Khan Academy avatar avatar for user
  • marcimus pink style avatar for user pranavkarel22
    can someone explain why we have taken s only from 0 to pie and t 0 to 2pie
    (2 votes)
    Default Khan Academy avatar avatar for user
    • piceratops ultimate style avatar for user Robert
      s tells us how far up we need to go in the z-direction, and once you know your z-coordinate you trace out a circle parallel to the xy-plane on top of the sphreres surface. Since you can reach every point between -2 and 2 by letting s range from 0 to pi (remember, your z-component is 2cos(s) and cos reaches every value between -1 and 1 if you use every s between 0 and pi) any other value of s would only let you trace out a circle you already traced out

      For visuals on what I just said open the answer for the first concept check in step 2
      (4 votes)
  • duskpin ultimate style avatar for user Gavaskar
    Can you please help me solving this surface area integral
    Find the surface area of the portion of the sphere of radius 4,centre at origin that lies inside the cylinder x^2+y^2=12 and above the xy-plane.
    (2 votes)
    Default Khan Academy avatar avatar for user
  • piceratops ultimate style avatar for user Chris Duvivier
    Here in this Sal parameterized the sphere as:
    [ cos(t)cos(s) , cos(t)sin(s) , sin(t) ]
    Why is it so different? Does it give the same result?
    https://www.khanacademy.org/math/multivariable-calculus/integrating-multivariable-functions/surface-integrals-introduction/v/surface-integral-example-part-1-parameterizing-the-unit-sphere
    (1 vote)
    Default Khan Academy avatar avatar for user
    • blobby green style avatar for user Jason
      Yes, both approaches will yield that same final result, assuming the dimensions of the sphere are consistent and the functions that are being integrated over, are identical. It all hinges on how you define your s and t angles and their corresponding datums. This in turn affects the parametrization of the system.

      Sal's method defines his base circle in the x-y plane in terms of angle 0 < s < 2pi rotating about the z-axis. He then defines the varying radius of that circle in terms of the angle -pi/2 < t < pi/2 rotating about an arbitrary axis in the x-y plane. Sal seems to have set the x-y plane as his datum for angle t, such that t=0 in this plane.

      The above method seems to define the base circle in the x-y plane as well, but in terms of angle 0 < t < 2pi rotating about the z-axis. The varying radius of that circle is then defined in terms of the angel 0 < s < pi rotating about an arbitrary axis in the x-y plane. This method however has defined the positive z-axis as a datum, such that s = 0 in the positive vertical orientation.

      This is my understanding of the methods in these two solutions. I hope my explanation is clear enough for the distinction to be apparent to you. Remember that each mothod will have slightly different integral boundaries due to the choice of datum. Perhaps an experienced mathematician can do a better job of verballising this xD
      (3 votes)
  • blobby green style avatar for user festavarian2
    Unnecessarily confusing, because early on, he doesn't define what the parameters t and s represent: ie. he never states that t represents the delta theta in the x-y plane and that s is phi in the spherical coordinate system.
    Why didn't he do this?
    (2 votes)
    Default Khan Academy avatar avatar for user
  • blobby green style avatar for user Rafae Tariq
    What are Volume Integrals?



    Does the aforementioned symbol have any use or connection in that concept, if so what does that symbol mean?
    (1 vote)
    Default Khan Academy avatar avatar for user
    • blobby green style avatar for user lakern
      The circle/oval through the integral symbol doesn't formally change anything. Rather, it's a suggestion that the area being integrated over is somehow "closed." For example, a line integral over a circle would typically have a circle drawn through it because the circle is a closed curve. A double integral over the surface of a sphere might have the circle through it. A triple integral over the volume of a sphere might have the circle through it. (By the way, triple integrals are often called volume integrals when the integrand is 1.) I hope this helps you make sense of the notation.
      (2 votes)
  • spunky sam blue style avatar for user Arunabh Bhattacharya
    I would also like to understand Volume Integrals.
    (1 vote)
    Default Khan Academy avatar avatar for user