\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[top=0.9in, bottom=0.8in, left=0.7in, right=0.7in]{geometry}
\setlength{\headheight}{15pt}
\usepackage{amsmath, amssymb, amsthm}
\usepackage{fancyhdr}
\usepackage{enumitem}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepackage{booktabs}
\usepackage{tasks}
\usepackage{multicol}

% --- Header & Footer ---
\pagestyle{fancy}
\fancyhf{}
\lhead{\textbf{Arizona State University}}
\rhead{\textbf{MAT 266: Calculus for Engineers II}}
\renewcommand{\headrulewidth}{0.4pt}

% --- Max's Little Custom Macros ---
\settasks{
    label=\textbf{\Alph*.}, 
    label-width=1.5em,      
    item-indent=2.5em,      
    after-item-skip=2ex,    
    after-skip=0.5cm        
}

\newcounter{mcq}
\newcommand{\mcquestion}[1]{
    \stepcounter{mcq}
    \vspace{0.2cm}
    \noindent \textbf{\themcq.} #1
}

\newcommand{\mcoptions}[6]{
    \begin{tasks}(3)
        \task #1 \task #2 \task #3
        \task #4 \task #5 \task #6
    \end{tasks}
}

\newcommand{\mcoptionsWide}[6]{
    \begin{tasks}(2)
        \task #1 \task #2 \task #3
        \task #4 \task #5 \task #6
    \end{tasks}
}

\newcommand{\mcoptionsOnePerLine}[6]{
    \begin{tasks}(1)
        \task #1 
        \task #2 
        \task #3
        \task #4 
        \task #5 
        \task #6
    \end{tasks}
}

\begin{document}

% ================= PAGE 1 =================
    \begin{center}
        \vspace*{-1cm}
        {\Huge \textbf{PRACTICE EXAM 2}}\\[0.1cm]
    \end{center}
    \vspace{0.1cm}
    \noindent \textbf{Printed Name:} \underline{\hspace{8cm}} \textbf{Class Start Time:} \underline{\hspace{3.5cm}}

    \vspace{0.1cm}
    \noindent 
    \begin{itemize}[itemsep=0pt, leftmargin=1.5em, topsep=0pt]
        \item Record answers to Section 1 in the grid below, or you will receive a score of 0 for Section 1.
        \item Graphing Calculators without CAS are allowed. All other devices strictly prohibited.
        \item Only the first sheet of paper will be marked, and only returned if you come to office hours.
    \end{itemize}
    \vspace{0.1cm}

\noindent \textbf{\large SECTION 1: Multiple Choice: Record One Clear Letter Answer Here (6 Points Each)}
\begin{center}
\renewcommand{\arraystretch}{1.6}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}
\hline
\textbf{1} & \textbf{2} & \textbf{3} & \textbf{4} & \textbf{5} & \textbf{6} & \textbf{7} & \textbf{8} & \textbf{9} & \textbf{10} \\
\hline
\hspace{0.45cm} & \hspace{0.45cm} & \hspace{0.45cm} & \hspace{0.45cm} & \hspace{0.45cm} & \hspace{0.45cm} & \hspace{0.45cm} & \hspace{0.45cm} & \hspace{0.45cm} & \hspace{0.45cm} \\
\hline
\end{tabular}
\end{center}

\vspace{0.04cm}
\hrule
\vspace{0.14cm}

\noindent \textbf{\large SECTION 2: Free Response (40 Points Total)} \\
\textit{Show complete work. No credit for answers without justification.}

\vspace{0.2cm}

\noindent \textbf{Question 11 (16 Points): Volume of Revolution} \\
Consider the region bounded by $y = x$, and $y=2x^2$. Compute the volume of the solid of revolution generated by revolving this region about the \textbf{$y$-axis}.  Set up integrals for BOTH Disk/Washer AND Shell methods, and then finish integrating one of them. Show each step.

\begin{enumerate}[label=\alph*)]
    \item Sketch the 2D graph, indicate all points of intersection
    \item Set up the integral for the Disk/Washer method
    \item Set up the integral for the Shell method
    \item Solve one of the two integrals to find the \textbf{exact} volume.
\end{enumerate}

\vfill 
\noindent \textbf{Exact Answer:} \rule{10cm}{0.4pt} \hfill

\newpage

% ================= PAGE 2 =================

\noindent \textbf{Question 12 (14 Points): Shell Method} \\
\begin{minipage}[t]{0.69\textwidth}
Set up and solve the integral for the volume generated by rotating the region bounded by $y = e^{-x^2}$, $y=0$, $x=0$, and $x=1$ about the $y$-axis.
(No credit will be given for using the wrong method)
\begin{enumerate}[label=\alph*)]
    \item Set up the integral for the Shell method
    \item Show all steps for the integration to give the \textbf{exact} volume.
\end{enumerate}
\end{minipage}
\begin{minipage}[t]{0.26\textwidth}
    \vspace{-10pt} % This invisible space helps align the top of the image with the top of the text
    \includegraphics[width=\textwidth]{Pictures/ExponentialPic.png}
\end{minipage}

\vfill
\noindent \textbf{Exact Answer:} \rule{11cm}{0.4pt} \hfill

\vspace{0.5cm}
\hrule
\vspace{0.5cm}

\noindent \textbf{Question 13 (10 Points): SET UP} \\
The flight path of an insect is recorded as $y^2 = (7x+2)^3$. Assuming $y \ge 0$, set up the integral for the distance flown from $x = 0$ to $x = 1$. \\Show steps of setting up the integral. 
\textbf{SET UP ONLY, DO NOT integrate!}

\vfill
\hfill

\newpage

% ================= PAGE 3 =================

\noindent \textbf{\large SECTION 1: Multiple Choice Questions} \\
\textit{Select the single best answer and write it in the grid on Page 1.}

\vspace{0.2cm} 

\mcquestion{Algebraically determine the behavior of $\displaystyle \int_{-\infty}^{0} \frac{1}{36+x^2} \, dx$.}
\mcoptions
{Diverges}
{Converges to $-\frac{\pi}{12}$}
{Converges to $\frac{\pi}{6}$}
{Converges to $0$}
{Converges to $\frac{\pi}{12}$} 
{Converges to $\frac{\pi}{4}$}

\vspace{0.3cm}

\noindent
\begin{minipage}[t]{0.69\textwidth}
\mcquestion{Set up the integral with respect to $x$ for the area of the region bounded by $y=3x$, $y=4-x$, and $y=0$.}
\mcoptionsWide
{$\displaystyle \int_0^1 3x \, dx + \int_1^4 (4-x) \, dx$} 
{$\displaystyle \int_0^4 (4-4x) \, dx$}
{$\displaystyle \int_0^1 (4-4x) \, dx$}
{$\displaystyle \int_0^1 (4-x) \, dx + \int_1^4 3x \, dx$}
{$\displaystyle \int_0^4 ((4-x) - 3x) \, dx$}
{$\displaystyle \int_0^1 3x \, dx - \int_1^4 (4-x) \, dx$}
\end{minipage}
\hfill
\begin{minipage}[t]{0.22\textwidth}
    \vspace{20pt}
    \includegraphics[width=\textwidth]{Pictures/AreaPic.png}
\end{minipage}

\vspace{0.7cm}

\mcquestion{Using the method of washers, which expression represents the volume of the solid obtained by rotating the region bounded by $y = x$ and $y = x^2$ about the line $y = -1$?}
\mcoptionsWide
{$\displaystyle \pi \int_0^1 \left[ (x-1)^2 - (x^2-1)^2 \right] \, dx$}
{$\displaystyle \pi \int_0^1 \left[ (x+1)^2 - (x^2+1)^2 \right] \, dx$} 
{$\displaystyle \pi \int_0^1 \left[ (x^2+1)^2 - (x+1)^2 \right] \, dx$}
{$\displaystyle \pi \int_0^1 \left[ x^2 - (x^2)^2 \right] \, dx$}
{$\displaystyle \pi \int_{-1}^0 \left[ (y+1)^2 - (y^2+1)^2 \right] \, dy$}
{$\displaystyle \pi \int_0^1 \left[ (x+1)^2 + (x^2+1)^2 \right] \, dx$}

\vspace{0.2cm}

\mcquestion{Calculate the work done by the force $F(x) = 10\cos(\pi x)$ moving an object from $x = 0$ to $x = 1/2$.}
\mcoptions
{$10$ Joules}
{$5/\pi$ Joules}
{$0$ Joules}
{$10/\pi$ Joules} 
{$5$ Joules}
{$-10/\pi$ Joules}

\vspace{0.2cm}

\mcquestion{Set up the integral for the volume of the solid generated by rotating the region bounded by $y = x^2 + 2$ and $y = 10 - x^2$ (in the first quadrant) about the y-axis.}
\mcoptionsWide
{$\displaystyle \int_0^2 2\pi x \left(2x^2 - 8\right) \, dx$}
{$\displaystyle \int_0^2 2\pi x \left(8 - 2x^2\right) \, dx$} 
{$\displaystyle \int_0^{\sqrt{8}} 2\pi x \left(8 - 2x^2\right) \, dx$}
{$\displaystyle \int_0^2 \pi \left((10 - x^2)^2 - (x^2 + 2)^2\right) \, dx$}
{$\displaystyle \int_0^2 2\pi \left(8 - 2x^2\right) \, dx$}
{$\displaystyle \int_0^2 2\pi x \left(x^2 + 2\right) \, dx$}

\vfill
\newpage

% ================= PAGE 4 =================



\vspace{0.3cm}

\mcquestion{Consider a cylindrical tank that is standing on its circular base with a radius of $7$ meters and a height of $14$ meters. Using $g \text{ m/s}^2$ for the acceleration due to gravity and $\rho \text{ kg/m}^3$ as the density of water, set up the integral for the work required to pump the water out of the tank if the tank is \textbf{half full} of water and it is being pumped out of a $1$-meter long vertical \textbf{spout} at the top of the tank.}
\mcoptionsWide
{$\displaystyle \int_0^{14} g \cdot \rho \cdot 49\pi(15 - y) \, dy$}
{$\displaystyle \int_0^{7} g \cdot \rho \cdot 49\pi(14 - y) \, dy$}
{$\displaystyle \int_0^{7} g \cdot \rho \cdot 49\pi(15 - y) \, dy$} 
{$\displaystyle \int_7^{14} g \cdot \rho \cdot 49\pi(15 - y) \, dy$}
{$\displaystyle \int_0^{7} g \cdot \rho \cdot 14\pi(15 - y) \, dy$}
{$\displaystyle \int_0^7 g \cdot \rho \cdot 49\pi(7 - y) \, dy$}

\vspace{0.3cm}

\mcquestion{Describe the behavior of the sequence $\displaystyle a_n = \frac{9^{n+1}}{11^n}$.}
\mcoptions
{Converges to $0$} 
{Converges to $9/11$}
{Diverges}
{Converges to $9$}
{Converges to $11/9$}
{Converges to $1$}

\vspace{0.3cm}

\mcquestion{Describe the behavior of the sequence $\displaystyle a_n = \frac{(1+7n)^2(2n+7)}{2n^2+n}$.}
\mcoptionsWide
{Converges to $7$}
{Converges to $49$}
{Converges to $0$}
{Converges to $\frac{7}{2}$}
{Diverges} 
{Converges to $98$}

\vspace{0.3cm}

\mcquestion{Describe the behavior of the series $\displaystyle \sum_{n=1}^\infty \frac{(2n+7)n}{(4n+1)^2}$}
\mcoptions
{Converges to $1/8$}
{Converges to $1/2$}
{Converges to $0$}
{Converges to $7$}
{Diverges} 
{Converges to $1/4$}

\vspace{0.3cm}

\mcquestion{Describe the behavior of the series $\displaystyle \sum_{n=0}^\infty 4 \cdot \left(\frac{1}{3}\right)^{n+1}$}
\mcoptions
{Converges to $4/3$}
{Diverges}
{Converges to $4/9$}
{Converges to $2$} 
{Converges to $4$}
{Converges to $6$}

\newpage

% ================= SOLUTIONS PAGE =================

\begin{center}
 {\huge \textbf{Solutions}}
\end{center}

\vspace{0.4cm}
\noindent 
\textbf{Section 1: Multiple Choice}\\
\renewcommand{\arraystretch}{1.6}
\begin{center}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}
\hline
\textbf{1} & \textbf{2} & \textbf{3} & \textbf{4} & \textbf{5} & \textbf{6} & \textbf{7} & \textbf{8} & \textbf{9} & \textbf{10} \\
\hline
E & A & B & D & B & C & A & E & E & D \\
\hline
\end{tabular}
\end{center}

\vspace{0.6cm}
\hrule
\vspace{0.4cm}

\noindent \textbf{Question 11: Volume of Revolution} \\
Intersection: $x = 2x^2 \implies 2x^2 - x = 0 \implies x(2x-1) = 0 \implies x=0, x=1/2$. \\Corresponding $y$-values: $y=0, y=1/2$.

\includegraphics[width=0.3\textwidth]{Pictures/RevolutionPic.png}

\begin{align*}
    \text{\textbf{b) Washer Setup:}} \quad & \boxed{V = \pi \int_{c}^{d}  (R^2- r^2) \, dy }\\
    \quad V &= \pi \int_{0}^{1/2} \left[ \left(\sqrt{\frac{y}{2}}\right)^2 - (y)^2 \right] \, dy = \pi \int_{0}^{1/2} \left( \frac{y}{2} - y^2 \right) \, dy \\
    \text{\textbf{c) Shell Setup:}}  \quad & \boxed{V = \int_{a}^{b} 2\pi (r) (h) \, dx }\\
    \quad V &= \int_{0}^{1/2} 2\pi x (x - 2x^2) \, dx = 2\pi \int_{0}^{1/2} (x^2 - 2x^3) \, dx \\
    \text{\textbf{d) Evaluation (Shell):}} \quad V &= 2\pi \left[ \frac{x^3}{3} - \frac{x^4}{2} \right]_{0}^{1/2} = 2\pi \left[ \left(\frac{1}{24} - \frac{1}{32}\right) - 0 \right] = 2\pi \left( \frac{4 - 3}{96} \right) = \frac{\pi}{48}
\end{align*}

\vspace{0.4cm}
\hrule
\newpage

\noindent \textbf{Question 12: Shell Method:} $\boxed{V = \int_{a}^{b} 2\pi (r) (h) \, dx }$
   
    {\textbf{a) Integral Setup:}}$$V = \int_{0}^{1} 2\pi x e^{-x^2} \, dx $$
    {\textbf{b) Evaluation via substitution:}} \\ \text{Let } $u =-x^2 \implies du = -2x \, dx $\\
    $x=0 \implies u=0$\\
     $x=1 \implies u=-1$\\
    $$ V = -\pi \int_{0}^{-1} e^{u} \, du = \pi \int_{-1}^{0} e^{u} \, du $$
    $$= \pi \left[ e^u \right]_{-1}^{0} = \pi(e^0 - e^{-1}) = \boxed{\pi \left( 1 - \frac{1}{e} \right)}$$
    
\vspace{0.4cm}
\hrule
\vspace{0.4cm}

\noindent \textbf{Question 13: Arc Length Formula}: $\boxed{L = \int_{a}^{b} \sqrt{1 + \left(\frac{dy}{dx}\right)^2} \, dx }$
\begin{align*}
    y &= (7x+2)^{3/2} \\
    \implies y' &= \frac{3}{2}(7x+2)^{1/2}(7) = \frac{21}{2}(7x+2)^{1/2} {\space}{~~}\textbf{(used chain rule)}\\ 
    (y')^2 &= \left( \frac{21}{2}(7x+2)^{1/2} \right)^2 = \frac{441}{4}(7x+2) 
    \end{align*}
   $$ \boxed{L = \int_{0}^{1} \sqrt{1 + \frac{441}{4}(7x+2)} \, dx} $$
\\
\\
\textbf{Extra}: If you want to integrate, use substitution:
\\
\text{Let } $u =1 + \frac{441}{4}(7x+2) \implies du = \frac{441}{4}(7) \, dx=\frac{3087}{4} \,dx $\\
Then
$$\int \sqrt{1 + \frac{441}{4}(7x+2)} \, dx=\frac{4}{3087} \int \sqrt{u} \, du$$
$$=\frac{4}{3087}  \frac{2}{3} u^{\frac{3}{2} } +C = \frac{8}{9261} \left( 1+\frac{441}{4}(7x+2)\right)^{\frac{3}{2}} + C $$
Then
$$L = \int_{0}^{1} \sqrt{1 + \frac{441}{4}(7x+2)} \, dx = \frac{8}{9261} \left[ \left(1+\frac{441}{4}(7(1)+2)\right)^{\frac{3}{2}} - \left( 1+\frac{441}{4}(0+2)\right)^{\frac{3}{2}} \right]= \boxed{2/3}$$

\end{document}