# Find the volume between a sphere and a cylinder

I'm trying to find the integral of $f(x,y,z)=kz^2$, outside of the cylinder $x^2+y^2=a^2$, and inside the sphere $x^2+y^2+z^2=4a^2$. I got the integral:

$\int_0^{2\pi}\int_0^{a^2}\int_0^{\sqrt{4a^2-r^2}}r dzdrd\theta$

thank you!

• "The volume of $f$" is again nonsense. The integral of $f$ makes sense. – Martín-Blas Pérez Pinilla Mar 4 '18 at 23:14

Since you are using cylindrical coordinates all you to do is place the term $kz^2$ into the $3^{rd}$ integral. You should also check the way you bound $r,θ$

It's clear that the cylinder $x^2 + y^2 = a^2$ is bounded by the sphere $x^2+y^2+z^2= 4a^2$.

Therefore to the find the area bounded by the function $f(x,y,z) = kz^2$ inside the sphere and outside the cylinder, you would want to calculate the area bounded by the function inside the sphere, and then take away the area bounded by the function inside the cylinder.

Effectively, this would leave you with the bounded area inside the circle, but not inside the cylinder.

Combining these into one integral would be more challenging, as the integral for the sphere is with respect to $θ , \phi\ ,r$ and the integral for the cylinder is with respect to $z,r,θ$. Therefore I would rethink your method and reconsider your integral.

As for $kz^2$, this would be what you integrate. In your integral you have only used $r$, which I assume is your Jacobian for your change of variables. However, when calculating an area bounded by a function, you must multiply your Jacobian by the function, then integrate.

i.e. for your integral, you would integrate $rkz^2$, not just $r$.

To many formulas for a comment:

The sphere is: $$z^2 = 4a^2 - (x^2 + y^2) = 4a^2 - r^2,$$ $$z = \pm\sqrt{4a^2 - r^2}.$$

The cylinder is: $$a^2 = x^2 + y^2 = r^2,$$ $$r = a.$$

But "bounded by the graph of $f(x,y,z) = kz^2$" does not makes sense in $\Bbb R^3$ because the graph of $f$ is in $\Bbb R^4$. Being $f$ the integrand makes more sense. $z = f(x,y)$ for some $f$ of two variables also makes sense.

Your integration limits are a total disaster. For example, $r$ from $0$ to $a^2$ is the interior of a cylinder of radius... $a^2$! But you want the exterior of the cylinder $r = a$, i.e., $r \ge a$. For the upper bound of $r$, use the sphere.

Check what is actually $f$ and edit your question with the new integration limits.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9871233105659485, "perplexity": 177.5772097877644}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-43/segments/1570986705411.60/warc/CC-MAIN-20191020081806-20191020105306-00132.warc.gz"}