find the volume of the solid obtained by revolving the region bounded by the graph of f (x) = e^(−x), the x-axis, the y-axis, and the line x = 1 about the y-axis. in matlab
main.m
syms x;
f = exp(-x); % Define the function f(x) = e^(-x)volume = pi * int(f^2, x, 0, 1); % Calculate the volume of revolution using the definite integral formulavolume