︠f8f74cdb-2346-4b46-a187-150149a5d793︠
%md
# Alternate Integral for Surface Area
︡40ce4772-069d-41b1-927f-d5d2218df2e3︡{"done":true,"md":"\n# Alternate Integral for Surface Area"}
︠6c6bd417-0192-43e4-916b-4edd1a989dec︠
%md
After class on Monday, Cyrus asked me a great question.
> You know how volume is the integral of cross-sectional area? Why isn't surface area the integral of cross-sectional circumference?
Let's talk about this. Suppose $f(x)$ is a function on $[a,b]$, and (just to be safe), suppose that $f(x)$ is differentiable on $[a,b]$ and its derivative $f'(x)$ is continuous on $[a,b]$, too. Use the graph of $y=f(x)$ to create a solid of revolution by revolving the graph around the $x$-axis. In class, we derived an integral formula for the surface area, $S$, of this solid:
$$ S=\int_0^1 2 \pi f(x) \sqrt{1+f'(x)^2}dx $$
We arrived at this formula using a cut-up-and-add-up approach using conical frustrums to approximate a slice of the surface. Summing the surface areas of those frustrums, applying the Mean Value Theorem, and taking a limit led to the above definite integral.
Below you can see a SageMath representation of how a conical frustrum approximates a curving surface on a slice of the domain of the function that generates the solid.
︡679d7a03-e1ad-464c-b7d7-ac84da45eb77︡{"done":true,"md":"After class on Monday, Cyrus asked me a great question.\n\n> You know how volume is the integral of cross-sectional area? Why isn't surface area the integral of cross-sectional circumference?\n\nLet's talk about this. Suppose $f(x)$ is a function on $[a,b]$, and (just to be safe), suppose that $f(x)$ is differentiable on $[a,b]$ and its derivative $f'(x)$ is continuous on $[a,b]$, too. Use the graph of $y=f(x)$ to create a solid of revolution by revolving the graph around the $x$-axis. In class, we derived an integral formula for the surface area, $S$, of this solid:\n\n$$ S=\\int_0^1 2 \\pi f(x) \\sqrt{1+f'(x)^2}dx $$\n\nWe arrived at this formula using a cut-up-and-add-up approach using conical frustrums to approximate a slice of the surface. Summing the surface areas of those frustrums, applying the Mean Value Theorem, and taking a limit led to the above definite integral.\n\nBelow you can see a SageMath representation of how a conical frustrum approximates a curving surface on a slice of the domain of the function that generates the solid."}
︠bc9113ac-8451-4754-a055-4aea6565ad4cs︠
u=var('u')
line = 1+1/3*(u)
parabola = 1+1/9*(u)*(6-(u))
sur1 = revolution_plot3d(line, (u,0,3), opacity=0.75, rgbcolor=(0,0,1), show_curve=True, parallel_axis='x')
sur2 = revolution_plot3d(parabola, (u,0,3), opacity=0.25, rgbcolor=(1,0,0), show_curve=False, parallel_axis='x')
(sur1+sur2).save('graphics-3d-frustrum.png')
︡8c458b17-34ee-48bc-b4af-8bd8cad8836c︡{"done":true}
︠58f62e7d-87e7-4f96-92f7-ace115cfe052︠
%md
Cyrus's question may appear to be inspired by what we learned about volume and is a natural extension of that knowledge. Or it may appear to be inspired by noticing when $\Delta x$ is small, the frustrum is basically a circle, so it 'appears' that the surface area of the frustrum is essentially the circumference. Or it may appear to be inspired by wondering if we could use cylinders to approximate the surface of a slice of the solid and get a simpler formula for surface area. Regardless of how the very reasonable question arose, it's a question that's worth exporing
## Could it be true?
If it's true that the surface area is just the integral of cross-sectional circumferences, then we could write
$$S= \int_a^b 2 \pi f(x) dx. $$
There are two problems with this.
The first problem with this approach reveals itself when look at the definite integral as representing the area between the $x$-axis and the graph of the integrand. The second problem will be explored in the next section.
If the above integral were the surface area of a solid of revolution, then that surface area could be written as
$$ S = 2\pi \int_a^b f(x)dx,$$
which is a constant multiple of the area under the curve $y=f(x)$ on $[a,b]$. It would be remarkable if the surface area of a solid of revolution were equal to a multiple of the area betweent he axis of rotation and the generating curve! Unfortunately, it's not true. To see why, let's do a thought experiment that starts easy and then gets complicated.
Consider $A(x)=1-x$ and $B(x)=1+x(2-x)$ on $[0,1]$. The plots of these are shown below with $A(x)$ in blue and $B(x)$ in red. By inspection, it is clear to anyone who knows Calculus that
$$ \int_0^1 B(x)dx < \int_0^1 A(x)dx. $$
It follows that any positive constant multiple of the integrals also obeys the inequality. Specifically,
$$ \int_0^1 2\pi B(x)dx < \int_0^1 2\pi A(x)dx. $$
If it were true that the surface area of a solid of revolution were a $2 \pi$ times the area under its generating curve, then the surface area of the solid of revolution generated by $y=A(x)$ on $[0,1]$ would be greater than the surface area of the solid of revolution generated by $y=B(x)$ on $[0,1]$ for *any* $B(x)$ whose graph sat below the graph of $A(x)$ on $[0,1]$.
︡36df9602-00d6-4c1c-9761-3f4f6feced5a︡{"done":true,"md":"\nCyrus's question may appear to be inspired by what we learned about volume and is a natural extension of that knowledge. Or it may appear to be inspired by noticing when $\\Delta x$ is small, the frustrum is basically a circle, so it 'appears' that the surface area of the frustrum is essentially the circumference. Or it may appear to be inspired by wondering if we could use cylinders to approximate the surface of a slice of the solid and get a simpler formula for surface area. Regardless of how the very reasonable question arose, it's a question that's worth exporing\n\n## Could it be true?\n\nIf it's true that the surface area is just the integral of cross-sectional circumferences, then we could write\n\n$$S= \\int_a^b 2 \\pi f(x) dx. $$\n\nThere are two problems with this.\n\nThe first problem with this approach reveals itself when look at the definite integral as representing the area between the $x$-axis and the graph of the integrand. If the above integral were the surface area of a solid of revolution, then that surface area could be written as\n\n$$ S = 2\\pi \\int_a^b f(x)dx,$$\n\nwhich is a constant multiple of the area under the curve $y=f(x)$ on $[a,b]$. It would be remarkable if the surface area of a solid of revolution were equal to a multiple of the area betweent he axis of rotation and the generating curve! Unfortunately, it's not true. To see why, let's do a thought experiment that starts easy and then gets complicated.\n\nConsider $A(x)=1-x$ and $B(x)=1+x(2-x)$ on $[0,1]$. The plots of these are shown below with $A(x)$ in blue and $B(x)$ in red. By inspection, it is clear to anyone who knows Calculus that\n\n$$ \\int_0^1 B(x)dx < \\int_0^1 A(x)dx. $$\n\nIt follows that any positive constant multiple of the integrals also obeys the inequality. If it were true that the surface area of a solid of revolution were a constant multiple of the area under its generating curve, then the surface area of the solid of revolution generated by $y=A(x)$ on $[0,1]$ would be greater than the surface area of the solid of revolution generated by $y=B(x)$ on $[0,1]$ for *any* $B(x)$ whose graph sat below the graph of $A(x)$ on $[0,1]$."}
︠100192a6-5732-4795-ad63-aebdc347abe5s︠
plot1=plot(1-x,(x,0,1),color='blue')
plot2=plot(1+x*(x-2),(x,0,1),color='red')
(plot1+plot2).save("graphics-AandBcurves.png")
︡09030706-75cb-4f32-9480-9e21ab3b8b89︡{"done":true}
︠3013e258-da48-47b1-8bfb-70b089bf9d7f︠
%md
This certainly seems true for the functions $A(x)$ and $B(x)$ that we've graphed. We haven't thought much about surface areas of three dimensional solids, so our intuition about this is weak. To build our intuition about surface areas, consider this statement:
> the closer a part of the graph is to the solid's axis of rotation, the less surface area that part of the graph generates.
Even though the arc length of $B(x)$ on $[0,1]$ is greater than that of $A(x)$, because the graph $B(x)$ gets closer to the $x$-axis faster than $A(x)$, when rotated about the $x$-axis, its graph generates less surface area than the nearest part of $A(x)$. We can modify $B(x)$ slightly to 'fix' this. That is, we can modify $B(x)$ to increase the surface area of the solid it generates. We'll do this by taking a page out of Nature's playbook.
## Building a Counterexample
We're going to build an example function $B(x)$ whose graph lies above the $x$-axis andbelow the graph of $A(x)$, and that generates a solid of revolution whose surface area is clearly greater than the surface area of the solid generated by $A(x)$.
When Nature wants to make something bigger but has limited resources or space to work in, it braches or bends. For example, the human cortex (or grey matter) is a sheet of tissue consisting of the neurons that allow a human to think, and the amount of grey matter in a human brain depends on the size of the sheet of tissue that can fit near the top fo the skull. To get more of that sheet in there, Nature decided to fold it intricately so the surface area of the sheet is huge even though the volume in the skull in small. We see similar phenomena in the human intestines (more surface area means more efficient digestion), lungs (more surface area means more efficient oxygen transport into the blood), and nalas passages (more surface area means a greater chance the mucous membranes grab garbage from inhales air before it gets to the lungs).
So let's add ripples to $B(x)$ so the surface area of the solid it generates gets bigger.
︡c9e1b319-bcac-42dc-8046-698b0f582d28︡{"done":true,"md":"\nThis certainly seems true for the functions $A(x)$ and $B(x)$ that we've graphed. We haven't thought much about surface areas of three dimensional solids, so our intuition about this is weak. To build our intuition about surface areas, consider this statement:\n\n> the closer a part of the graph is to the solid's axis of rotation, the less surface area that part of the graph generates.\n\nEven though the arc length of $B(x)$ on $[0,1]$ is greater than that of $A(x)$, because the graph $B(x)$ gets closer to the $x$-axis faster than $A(x)$, when rotated about the $x$-axis, its graph generates less surface area than the nearest part of $A(x)$. We can modify $B(x)$ slightly to 'fix' this. That is, we can modify $B(x)$ to increase the surface area of the solid it generates. We'll do this by taking a page out of Nature's playbook.\n\n## Building a Counterexample\n\nWe're going to build an example function $B(x)$ whose graph lies above the $x$-axis andbelow the graph of $A(x)$, and that generates a solid of revolution whose surface area is clearly greater than the surface area of the solid generated by $A(x)$.\n\nWhen Nature wants to make something bigger but has limited resources or space to work in, it braches or bends. For example, the human cortex (or grey matter) is a sheet of tissue consisting of the neurons that allow a human to think, and the amount of grey matter in a human brain depends on the size of the sheet of tissue that can fit near the top fo the skull. To get more of that sheet in there, Nature decided to fold it intricately so the surface area of the sheet is huge even though the volume in the skull in small. We see similar phenomena in the human intestines (more surface area means more efficient digestion), lungs (more surface area means more efficient oxygen transport into the blood), and nalas passages (more surface area means a greater chance the mucous membranes grab garbage from inhales air before it gets to the lungs).\n\nSo let's add ripples to $B(x)$ so the surface area of the solid it generates gets bigger."}
︠6fa2616b-7a05-460b-822f-7f46859be967︠
%md
### Adding Ripples
Our favorite way to add ripples to a function is by adding one a sinusoidal function. Consider $s(x)=\sin(2 \pi x)$, a sinusoidal function with period $p=1$. A slight modification of this function give $s_M(x)=s(Mx)$ which has period $1/M$. This means that $s_M(x)$ will have $M$ equally spaced maxima and minima on $[0,1]$.
Define the function $$B_1(x)=s_M(x)+B(x).$$ Like $B(x)$, this function passes through $(0,1)$ and $(1,0)$, and will, on average, decrease between these points, having $M$ oscillations along the way.
Below is a plot of both $A(x)$ and $B_1(x)$ with $M=10$. The plot shows that $B_1(x)$ isn't the function we're looking for because it does not satisfy $0 \leq B(x) \leq A(x)$ for all $x$ in $[0,1]$. We need to get the oscillations 'under control' so the red graph never crosses the blue graph.
︡a5312a3a-f515-4476-bad3-5f5000a44c29︡{"done":true,"md":"\n### Adding Ripples\n\nOur favorite way to add ripples to a function is by adding one a sinusoidal function. Consider $s(x)=\\sin(2 \\pi x)$, a sinusoidal function with period $p=1$. A slight modification of this function give $s_M(x)=s(Mx)$ which has period $1/M$. This means that $s_M(x)$ will have $M$ equally spaced maxima and minima on $[0,1]$.\n\nDefine the function $$B_1(x)=s_M(x)+B(x).$$ Like $B(x)$, this function passes through $(0,1)$ and $(1,0)$, and will, on average, decrease between these points, having $M$ oscillations along the way.\n\nBelow is a plot of both $A(x)$ and $B_1(x)$ with $M=10$. The plot shows that $B_1(x)$ isn't the function we're looking for because it does not satisfy $0 \\leq B(x) \\leq A(x)$ for all $x$ in $[0,1]$. We need to get the oscillations 'under control' so the red graph never crosses the blue graph."}
︠244fb393-1766-4572-94c4-526daea64c3bs︠
M=10
s=1+x*(x-2)+1/(1+(x-1/2)^2)*sin(M*2*pi*x)
plot1=plot(abs(x-1),(x,0,1),color='blue')
plot2=plot(s,(x,0,1),color='red')
(plot1+plot2).save("graphics-addingripples.png")
︡cfd98e15-0661-4d52-a7c3-0dcb730a1c18︡{"done":true}
︠a83bd926-9c9d-41bb-b585-6e40f11a1f83︠
%md
We want to limiting the amplitude of the oscillations so they are small near $x=0$ and $x=1$ and not so big in between that the graphs cross. We'll do this by multiplying $s_M(x)$ by the function built from $$E(x)=\exp(-x^2),$$ pictured below.
We will narrow the function so its values get closer to zero faster. Let $$E_K(x)=\exp(-(K x)^2)$$ for some $K>1$. This $K$ compresses the graph of $E$ horizontally. We can compress the graph vertically be multiplying its output by a constant.
Below of a plot of $E(x)$ (in blue), $E_2(x)$ (in green), and $\frac{1}{2} E_2(x)$ (in red).
︡588d6ba2-6d03-4877-b061-2ddfee78fd0a︡{"done":true,"md":"\nWe want to limiting the amplitude of the oscillations so they are small near $x=0$ and $x=1$ and not so big in between that the graphs cross. We'll do this by multiplying $s_M(x)$ by the function built from $$E(x)=\\exp(-x^2),$$ pictured below.\n\nWe will narrow the function so its values get closer to zero faster. Let $$E_K(x)=\\exp(-(K x)^2)$$ for some $K>1$. This $K$ compresses the graph of $E$ horizontally. We can compress the graph vertically be multiplying its output by a constant.\n\nBelow of a plot of $E(x)$ (in blue), $E_2(x)$ (in green), and $\\frac{1}{2} E_2(x)$ (in red)."}
︠24955bcd-df8e-4f17-b6a1-49d0cd31080es︠
plot1=plot(exp(-x^2),(x,-3,3),color="blue")
plot2=plot(exp(-(2*x)^2),(x,-3,3),color="green")
plot3=plot(1/2*exp(-(2*x)^2),(x,-3,3),color="red")
(plot1+plot2+plot3).save("graphics-bumps.png")
︡05dc95ac-ddff-431a-b486-6f7556fbcae9︡{"done":true}
︠736ba956-1377-4d68-8c5f-ef4bdb740198︠
%md
Now we use $E_K(x)$ to control the amplitude of the sinusoidal function $s_M(x)$ that will give us our ripples. Before doing that, there one more tweak we need to make.
The function $E_K(x)$ is symmetric with respect to the $y$-axis. We would like to shift it right so its symmetry occurs somewhere in the middle of the interval $[0,1]$, so we use the function $E_K(x-1/2)$, which is symmetric about $x=1/2$. Therefore, the modified sinusoidal function is $$s_M(x) \cdot E_K(x-1/2)=\sin(2 M \pi x)\cdot \exp(-(K (x-1/2))^2).$$
A quick plot of $B(x)+s_M(x) \cdot E_K(x-1/2)$ shows the amplitude of our sinusoids is still too great, so we will compress them vertically by multiuplying $E_K(x-1/2)$ by a constant $c$ between 0 and 1. Guessing a checking suggests $c=1/5$ works. (We can always make it smaller later, if we need to.)
︡5265ecba-02d7-45f0-962d-50f07eaca9c2︡{"done":true,"md":"\nNow we use $E_K(x)$ to control the amplitude of the sinusoidal function $s_M(x)$ that will give us our ripples. Before doing that, there one more tweak we need to make.\n\nThe function $E_K(x)$ is symmetric with respect to the $y$-axis. We would like to shift it right so its symmetry occurs somewhere in the middle of the interval $[0,1]$, so we use the function $E_K(x-1/2)$, which is symmetric about $x=1/2$. Therefore, the modified sinusoidal function is $$s_M(x) \\cdot E_K(x-1/2)=\\sin(2 M \\pi x)\\cdot \\exp(-(K (x-1/2))^2).$$\n\nA quick plot of $B(x)+s_M(x) \\cdot E_K(x-1/2)$ shows the amplitude of our sinusoids is still too great, so we will compress them vertically by multiuplying $E_K(x-1/2)$ by a constant $c$ between 0 and 1. Guessing a checking suggests $c=1/5$ works. (We can always make it smaller later, if we need to.)"}
︠7745a06b-d80b-4a64-a427-134ea2e05053s︠
M=10
K=7
c=1/5
s=1+x*(x-2)+sin(M*2*pi*x)*exp(-(K*(x-1/2))^2)*c
plot1=plot(abs(x-1),(x,0,1),color='blue')
plot2=plot(s,(x,0,1),color='red')
(plot1+plot2).save("graphics-rippletry.png")
︡b163628f-cc0a-4c43-a0b4-77c8114507dc︡{"done":true}
︠58cf685c-3313-4b38-9ff7-f3d3b85f8c5a︠
%md
If you're not immediately convined that our 'rippled' curve generates a solid with a greater surface area than that generated by $A(x)$, you can increase $M$ to add more ripples. You can even shift $E_K(x)$ to be centered at $x=1/4$ to make the ripples start further away from the axis or rotation.
Here's a plot of a version of $B(x)$ with more ripples that start closer to $x=0$.
︡c5c7fe0a-4a2a-43b3-9b77-862db2d6222e︡{"done":true,"md":"\nIf you're not immediately convined that our 'rippled' curve generates a solid with a greater surface area than that generated by $A(x)$, you can increase $M$ to add more ripples. You can even shift $E_K(x)$ to be centered at $x=1/4$ to make the ripples start further away from the axis or rotation.\n\nHere's a plot of a version of $B(x)$ with more ripples that start closer to $x=0$."}
︠a7221c58-307f-45b2-b68c-f24c9c4a57c4s︠
M=20
K=7
c=1/6
x0=1/4
s=1+x*(x-2)+sin(M*2*pi*x)*exp(-(K*(x-x0))^2)*c
plot1=plot(abs(x-1),(x,0,1),color='blue')
plot2=plot(s,(x,0,1),color='red')
(plot1+plot2).save("graphics-moreripples.png")
︡875bd28d-4c89-48fd-8327-c039f34c0bec︡{"done":true}
︠cc34c6c4-acef-4a9f-87ce-ff0107bb1dc4︠
%md
We have created a convincing example of two functions with $0 \leq B(x) \leq A(x)$ that generate solids with surface areas measure in the opposite order. This shows that it's not possible that the surface area of a solid of revolution can be calculated as the integral of its cross-sectional circumferences.
This counterexample shows that we can't use cross-sectional circumferences to calculate the surface area of a solid of revolution, but it does not explain why this doesn't work.
## Why Does This Fail?
So understand why surface area is not the integral of cross-sectional area, we first need to agree that the definite integral we derived does work. Surface area of the solid generated by rotating $y=f(x)$ on $[a,b]$ about the $x$-axis is $$SA=\int_a^b 2 \pi f(x) \sqrt{ 1+ f'(x)^2} dx.$$
If it were also true that $$SA=\int_a^b 2 \pi f(x) dx,$$ then we could equate these formula and write
\begin{align*}
0 & = \int_a^b 2 \pi f(x) \sqrt{ 1+ f'(x)^2} dx -\int_a^b 2 \pi f(x) dx \\
& = \int_a^b 2 \pi f(x) (\sqrt{ 1+ f'(x)^2} -1 ) dx
\end{align*}
This means $\sqrt{1+f'(x)^2}=1$ for all $x$. This can only happen if $f'(x)=0$ for all $x$. Said another way: these formula agree only when $f(x)$ is a constant function. When $f(x)$ is not constant, *i.e.* when the output of $f(x)$ varies, the second formula fails.
We can see that changes in $y$ are important when calculating surface area by writing $f'(x)$ using Leibniz notation. Notice
\begin{align*}
\sqrt{ 1+ f'(x)^2} dx & = \sqrt{ 1+ \left( \frac{dy}{dx} \right)^2} dx \\
& = \sqrt{ 1+ \left( \frac{dy}{dx} \right)^2(dx)^2 } \\
& = \sqrt{ (dx)^2+ (dy)^2 }. \\
\end{align*}
This makes is clearer that changes in $y$ are important to the surface area calculation, much in the same way they are important to the calculation of arc length.
## Alternate Formula for Arc Length?
What if we approached calculating arc length in a similar manner, but approximating curve segments by horizontal lines instead of secant line segments. This approach to calculating arc length is illustrated below, where we have an arc (in blue) subdivided into four subarcs. On each subarc, we approximate the subarc with (1) a secant line (in green) and (2) a horizontal line (in red).
︡b4d5fbb8-f70d-4988-9c16-fbe66b649998︡{"done":true,"md":"\nWe have created a convincing example of two functions with $0 \\leq B(x) \\leq A(x)$ that generate solids with surface areas measure in the opposite order. This shows that it's not possible that the surface area of a solid of revolution can be calculated as the integral of its cross-sectional circumferences.\n\nThis counterexample shows that we can't use cross-sectional circumferences to calculate the surface area of a solid of revolution, but it does not explain why this doesn't work.\n\n## Why Does This Fail?\n\nSo understand why surface area is not the integral of cross-sectional area, we first need to agree that the definite integral we derived does work. Surface area of the solid generated by rotating $y=f(x)$ on $[a,b]$ about the $x$-axis is $$SA=\\int_a^b 2 \\pi f(x) \\sqrt{ 1+ f'(x)^2} dx.$$\nIf it were also true that $$SA=\\int_a^b 2 \\pi f(x) dx,$$ then we could equate these formula and write\n\\begin{align*}\n0 & = \\int_a^b 2 \\pi f(x) \\sqrt{ 1+ f'(x)^2} dx -\\int_a^b 2 \\pi f(x) dx \\\\\n& = \\int_a^b 2 \\pi f(x) (\\sqrt{ 1+ f'(x)^2} -1 ) dx\n\\end{align*}\nThis means $\\sqrt{1+f'(x)^2}=1$ for all $x$. This can only happen if $f'(x)=0$ for all $x$. Said another way: these formula agree only when $f(x)$ is a constant function. When $f(x)$ is not constant, *i.e.* when the output of $f(x)$ varies, the second formula fails.\n\nWe can see that changes in $y$ are important when calculating surface area by writing $f'(x)$ using Leibniz notation. Notice\n\\begin{align*}\n\\sqrt{ 1+ f'(x)^2} dx & = \\sqrt{ 1+ \\left( \\frac{dy}{dx} \\right)^2} dx \\\\\n& = \\sqrt{ 1+ \\left( \\frac{dy}{dx} \\right)^2(dx)^2 } \\\\\n& = \\sqrt{ (dx)^2+ (dy)^2 }. \\\\\n\\end{align*}\nThis makes is clearer that changes in $y$ are important to the surface area calculation, much in the same way they are important to the calculation of arc length.\n\n## Alternate Formula for Arc Length?\n\nWhat if we approached calculating arc length in a similar manner, but approximating curve segments by horizontal lines instead of secant line segments. This approach to calculating arc length is illustrated below, where we have an arc (in blue) subdivided into four subarcs. On each subarc, we approximate the subarc with (1) a secant line (in green) and (2) a horizontal line (in red)."}
︠4c75f293-9885-47ad-90fe-285ce8c6cfac︠
f=1+(x-2)^2
piece1=plot(f(1),(x,1,2),color='red')
piece2=plot(f(2),(x,2,3),color='red')
piece3=plot(f(3),(x,3,4),color='red')
piece4=plot(f(4),(x,4,5),color='red')
arc1=plot(f(1)+(f(2)-f(1))*(x-1),(x,1,2),color='green')
arc2=plot(f(2)+(f(3)-f(2))*(x-2),(x,2,3),color='green')
arc3=plot(f(3)+(f(4)-f(3))*(x-3),(x,3,4),color='green')
arc4=plot(f(4)+(f(5)-f(4))*(x-4),(x,4,5),color='green')
plot1=plot(f,(x,1,5),color='blue')
(piece1+piece2+piece3+piece4+arc1+arc2+arc3+arc4+plot1).save("graphics-stepversussecants.png")
︡1a7e94ec-4638-4a7a-a0e1-4db6be445baf︡{"file":{"filename":"/home/user/.sage/temp/project-bb11d7a0-da38-46fb-acc8-6a4fb6c4c11f/6720/tmp_ERsxhV.svg","show":true,"text":null,"uuid":"8735c8e1-b019-43e9-85c9-b71b68b20a5e"},"once":false}︡{"done":true}
︠dca0c66a-051d-4346-bd85-36b75cdbd061︠
%md
In our alternative formulation of approximating the length of a subarc using a horiztonal line segment, only the length of the line segments matter, not their distance from the $x$-axis, so the arc length approximation becomes
\begin{align*}
s & = \lim_{n \rightarrow \infty}\sum_{i=1}^n \Delta x \\
& = \int_a^b dx \\
& = b-a
\end{align*}
This formulation implies that the length of every arc over $[a,b]$ is the length of $[a,b]$, and **this is not true**. This only works if our function is a constant function!
This shows that it's important to account for how the output of the function $f(x)$ changes.
Something analogous is happening when we calculuate the surface area of a solid of revolution. We can't assume that surface area is the integral of cross-sectional circumference because that does not take into account how the function is getting closer to or farther from the axis of rotation. Only a horizontal cylinder has a surface area that equals the integral of its cross-sectional circumference.
︡4f5c4f24-ac53-470a-9632-692b8450bc6e︡{"done":true,"md":"\nIn our alternative formulation of approximating the length of a subarc using a horiztonal line segment, only the length of the line segments matter, not their distance from the $x$-axis, so the arc length approximation becomes\n\\begin{align*} \ns & = \\lim_{n \\rightarrow \\infty}\\sum_{i=1}^n \\Delta x \\\\\n& = \\int_a^b dx \\\\\n& = b-a\n\\end{align*}\nThis formulation implies that the length of every arc over $[a,b]$ is the length of $[a,b]$, and **this is not true**. This only works if our function is a constant function!\n\nThis shows that it's important to account for how the output of the function $f(x)$ changes.\n\nSomething analogous is happening when we calculuate the surface area of a solid of revolution. We can't assume that surface area is the integral of cross-sectional circumference because that does not take into account how the function is getting closer to or farther from the axis of rotation. Only a horizontal cylinder has a surface area that equals the integral of its cross-sectional circumference."}
︠45b5e8d6-5f50-4fd3-acc1-367df1f10fc7︠