To find the volume of the surface of revolution between x=0 and x=4, we need to use the formula
main.m54 chars2 lines
where a
is the starting value of x
(which is 0 in this case) and b
is the ending value of x
(which is 4 in this case).
Before we can use this formula, we need to rewrite f(x)
and g(x)
in terms of y
and then solve for x
.
Given:
f(x) = 2 * tan(x)
g(x) = sec(x) - 1
We can rewrite f(x)
and g(x)
in terms of y
:
y = 2 * tan(x)
=> x = atan(y/2)
y = sec(x) - 1
=> sec(x) = y + 1
=> cos(x) = 1/(y+1)
=> x = acos(1/(y+1))
Using these new expressions of x
, we can rewrite the formula for the volume:
main.m202 chars7 lines
Finally, we can compute the volume in Matlab using the following script:
main.m128 chars4 lines
We get V = 80.8535
as the volume of surface of revolution.
gistlibby LogSnag