\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 FINAL}}\\[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 the exam will not be returned.
    \end{itemize}
    \vspace{0.1cm}


\noindent \textbf{\large SECTION 1: Multiple Choice: Record One Clear Letter Answer Here (5 Points Each)}
\begin{center}
\renewcommand{\arraystretch}{1.6}
\begin{tabular}{|c|c|c|c|c|c|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} & \textbf{11} & \textbf{12} & \textbf{13} & \textbf{14} & \textbf{15} & \textbf{16}\\
\hline
\hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} & \hspace{0.25cm} \\
\hline
\end{tabular}
\end{center}

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

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

\vspace{0.2cm}

\noindent \textbf{Question 17 (10 Points): Cylindrical Shells} \\
Using the method of cylindrical shells, find the volume of the solid obtained by rotating the region bounded by $y = \cos(\frac{x^2}{4})$ and $y=0$, from $x=0$ to $x=2$ about the y-axis. \\
Show all steps of integration.

\begin{figure}[h]
    \raggedleft
    \includegraphics[width=0.3\textwidth]{Pictures/PracticeFinalShell.png}
\end{figure}

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

\newpage

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

\noindent \textbf{Question 18 (10 Points): Arc Length Representations} \\
The drone is flying west. Its path is given below, in three different forms we learned in this class. Its path is also graphed in red (in quadrant 1) starting from the origin. What arc length expressions represent the distance traveled by the drone? 
Set up all three integrals and then solve any \textbf{one of them}. 

\vspace{0.08cm}

\noindent \begin{minipage}[t]{0.65\textwidth}
\textbf{a) Cartesian:} $x^2=-y^2+y$ from $y=0$ to $y=1$ 
\vspace{0.4cm}

\textbf{b) Parametric:} $x = \frac{1}{2} \sin(2t), y = \sin^2(t)$ from $t=0$ to $t=\pi/2$
\vspace{0.4cm}

\textbf{c) Polar:} $r=\sin(\theta)$ from  $\theta=0$ to $\theta=\pi/2$
\vspace{1.3cm}

\textbf{Solution:} 
\vspace{0.2cm}

a) Cartesian setup: (calculate derivatives) 
\vspace{2.3cm}

b) Parametric setup: (calculate derivatives) 
\vspace{2.3cm}

c) Polar setup: (calculate derivatives) 
\vspace{2.3cm}
\end{minipage}
\begin{minipage}[t]{0.06\textwidth}
\hfill
\end{minipage}
\begin{minipage}[t]{0.29\textwidth}
    \vspace{-10pt}
    \includegraphics[width=\textwidth]{Pictures/PolarPic.png}
\end{minipage}

\vspace{0.5cm}
\noindent \textbf{Solve one of the integrals:}

\vfill

\noindent \textbf{Exact Answer:} \rule{10cm}{0.4pt} \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} 

% Q1
\mcquestion{Find the indefinite integral: $\displaystyle \int \frac{(\tan^{-1} x)^7}{1+x^2} \, dx$}
\mcoptionsWide
{$\displaystyle \frac{1}{7}(\tan^{-1} x)^6 + C$}
{$\displaystyle \frac{1}{8}(\tan^{-1} x)^8 (x + \frac{1}{3}x^3) + C$}
{$\displaystyle \frac{1}{8}\left(\frac{1}{1+x^2}\right)^8 + C$}
{$\displaystyle (\tan^{-1} x)^8 + C$}
{$\displaystyle \frac{1}{8}(\tan^{-1} x)^8 + C$} 
{$\displaystyle \frac{1}{7}(\tan^{-1} x)^8 + C$}
\vspace{0.6cm}

% Q2
\mcquestion{Find the following indefinite integral: $\displaystyle \int 4x \sin(4x) \, dx$}
\mcoptionsWide
{$\displaystyle -x \cos(4x) - \frac{1}{4}\sin(4x) + C$}
{$\displaystyle -x \cos(4x) + \frac{1}{4}\sin(4x) + C$} 
{$\displaystyle -4x \cos(4x) + \sin(4x) + C$}
{$\displaystyle x \cos(4x) + \frac{1}{4}\sin(4x) + C$}
{$\displaystyle -x \sin(4x) + \frac{1}{4}\cos(4x) + C$}
{$\displaystyle -x \cos(4x) + 4\sin(4x) + C$}

% Q3
\mcquestion{Find the following indefinite integral: $\displaystyle \int 12\cos^2(3x) \, dx$}
\mcoptions
{$6x + \sin(6x) + C$} 
{$6x - \sin(6x) + C$}
{$12x + \sin(6x) + C$}
{$6x + \frac{1}{2}\sin(6x) + C$}
{$4\cos^3(3x) + C$}
{$6x + 6\sin(6x) + C$}
\vspace{0.8cm}

% Q4
\mcquestion{Find the form of the partial fraction decomposition of:  $\displaystyle \frac{2x^4 + 13x^3 - 8x + 1}{(x+4)^3(x^2+x+5)}$}
\mcoptionsWide
{$\displaystyle \frac{A}{(x+4)^3} + \frac{Bx+C}{x^2+x+5}$}
{$\displaystyle \frac{A}{x+4} + \frac{B}{(x+4)^2} + \frac{C}{(x+4)^3} + \frac{Dx+E}{x^2+x+5}$} 
{$\displaystyle \frac{A}{x+4} + \frac{B}{(x+4)^2} + \frac{C}{(x+4)^3} + \frac{D}{x^2+x+5}$}
{$\displaystyle \frac{A}{x+4} + \frac{B}{x^2+x+5}$}
{$\displaystyle \frac{A}{(x+4)^3} + \frac{D}{x^2+x+5}$} 
{$\displaystyle \frac{A}{x+4} + \frac{Bx+C}{(x+4)^2} + \frac{D}{(x+4)^3} + \frac{Ex+F}{x^2+x+5}$}
\vspace{0.8cm}


\vfill
\newpage

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

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


% Q6
\mcquestion{Algebraically determine the behavior of $\displaystyle \int_{-\infty}^{0} \frac{1}{81+x^2} \, dx$.}
\mcoptions
{Diverges}
{Converges to $-\frac{\pi}{18}$}
{Converges to $\frac{\pi}{9}$}
{Converges to $\frac{\pi}{18}$} 
{Converges to $\frac{\pi}{81}$}
{Converges to $0$}

% Q7
\mcquestion{Use \textbf{Simpson's Rule} to approximate $\displaystyle \int_{0}^{2} \frac{1}{x^4 + 3} \, dx$ with $n=4$. The choices are rounded to 5 decimals}
\mcoptions
{$0.44804$} 
{$0.45028$}
{$0.44859$}
{$0.48273$}
{$0.50500$}
{$0.48000$}
\vspace{0.8cm}

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

\vfill
\newpage

% ================= PAGE 5 =================

% Q9
\noindent
\begin{minipage}[t]{0.60\textwidth}
\mcquestion{Find the area between $y=\sin(x)$ and $y=\cos(x)$ and  from $x=0$ to $x=3$}
\mcoptionsOnePerLine
{$\displaystyle \int_0^3 \left(\cos(x)-\sin(x)\right) \, dx$}
{$\displaystyle \int_0^{\pi/4}  \left(\cos(x)-\sin(x)\right) \, dx$}
{$\displaystyle \int_0^2 \left(\cos(x)-\sin(x)\right) \, dx$}
{$\displaystyle \int_0^{\pi/4} \left(\cos(x)-\sin(x)\right) \, dx + \int_{\pi/4}^3  \left(\sin(x)-\cos(x)\right) \, dx$} 
{$\displaystyle \int_0^3 \left(\sin(x)-\cos(x)\right) \, dx$}
{$\displaystyle \int_0^{\pi/2} \left(\cos(x)-\sin(x)\right) \, dx + \int_{\pi/2}^3  \left(\sin(x)-\cos(x)\right) \, dx$} 
\end{minipage}
\hfill
\begin{minipage}[t]{0.35\textwidth}
    \vspace{0pt}
    \includegraphics[width=\textwidth]{Pictures/SinCosPic.png}
\end{minipage}
\vspace{0.8cm}

% Q10
\mcquestion{Find the first three non-zero terms of the Taylor series for $f(x) = 3e^{2x} - 4x$, centered at $a = 1$.}
\mcoptionsWide
{$\displaystyle 3e^2 + 6e^2(x-1) + 6e^2(x-1)^2$}
{$\displaystyle (3e^2 - 4) + 6e^2(x-1) + 6e^2(x-1)^2$}
{$\displaystyle (3e^2 - 4) + (6e^2 - 4)(x-1) + 6e^2(x-1)^2$} 
{$\displaystyle 3e^2 + (6e^2 - 4)(x-1) + 6e^2(x-1)^2$}
{$\displaystyle (3e^2 - 4) + (6e^2 - 4)(x-1) + 12e^2(x-1)^2$}
{$\displaystyle (3e^2 - 4) + 6e^2(x-1) + 12e^2(x-1)^2$}

% Q11
\mcquestion{Given $\cos(x) = \sum_{n=0}^{\infty} (-1)^n \frac{x^{2n}}{(2n)!}$, obtain the Maclaurin series for $f(x) = \frac{x^2}{2}\cos x$.}
\mcoptions
{$\displaystyle \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+2}}{2(2n)!}$} 
{$\displaystyle \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+1}}{2(2n)!}$}
{$\displaystyle \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+2}}{2(2n+1)!}$}
{$\displaystyle \sum_{n=0}^{\infty} \frac{(-1)^n x^{4n}}{2(2n)!}$}
{$\displaystyle \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+2}}{(4n)!}$}
{$\displaystyle \sum_{n=0}^{\infty} \frac{(-1)^n x^{2n+2}}{(2n)!}$}
\vspace{0.8cm}


% Q12
\mcquestion{For the parametric curve defined by $x = 3 + \sin (t), \quad y = 4 - \sin(3t)$, algebraically find the equation of the line tangent to the curve at the point corresponding to $t=0$.}
\mcoptions
{$y = -3x + 4$}
{$y = -3x + 13$} 
{$y = 3x - 5$}
{$y = -x + 7$}
{$y = 3x - 13$}
{$y = 3x + 13$}
\vspace{0.8cm}

\vfill
\newpage

% ================= PAGE 6 =================



% Q13
\mcquestion{Set up the integral to find the exact area enclosed by one loop of the polar curve $r = \sin(8\theta)$.}
\mcoptionsWide
{$\displaystyle \int_{0}^{\pi} \frac{1}{2}(\sin(8\theta))^2 \, d\theta$}
{$\displaystyle \int_{0}^{\pi/8} (\sin(8\theta))^2 \, d\theta$}
{$\displaystyle \int_{0}^{\pi/4} \frac{1}{2}(\sin(8\theta))^2 \, d\theta$}
{$\displaystyle \int_{0}^{\pi/8} (8\cos(8\theta))^2 \, d\theta$}
{$\displaystyle \int_{0}^{\pi/8} \frac{1}{2}(\sin(8\theta))^2 \, d\theta$} 
{$\displaystyle \int_{0}^{\pi} (\sin(8\theta))^2 \, d\theta$}
\vspace{0.8cm}

% Q14
\mcquestion{Find a Cartesian equation for the curve described by the polar equation: $\displaystyle r = \frac{3}{\cos\theta + 2\sin\theta}$}
\mcoptionsWide
{$x^2 + 4y^2 = 9$}
{$(x-3)^2 + (y-3/2)^2 = 9$}
{$x - 2y = 3$}
{$x + 2y = 3$} 
{$(x-3)^2 + 2(y-3/2)^2 = 3$}
{$x^2 + y^2 = 9$}
\vspace{0.8cm}

% Q15
\mcquestion{Find the radius of convergence of the power series $\displaystyle \sum_{n=1}^{\infty} (-1)^n \frac{ (2n-1)}{9^n n!}(x-6)^n$.}
\mcoptions
{$0$}
{$6$}
{$9$}
{$\infty$} 
{$1/9$}
{$1$}
\vspace{0.8cm}

% Q16
\mcquestion{Find the open interval of convergence of the power series $\displaystyle \sum_{n=1}^{\infty} (-1)^n \frac{ (2n-1)}{9^n n!}(x-6)^n$.}
\mcoptions
{$(5, 7)$}
{$(-3, 15)$}
{$(-\infty, \infty)$} 
{$(-9, 9)$}
{$(-15, 3)$}
{Only at $x=6$}

\newpage

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

\begin{center}
 {\Huge \textbf{Solutions}}\\[0.1cm]
\end{center}
\vspace*{-0.3cm}
\noindent \textbf{MC Answers} 
\vspace*{-0.6cm}
\begin{center}
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{|c|c|c|c|c|c|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} & \textbf{11} & \textbf{12} & \textbf{13} & \textbf{14} & \textbf{15} & \textbf{16} \\
\hline
E & B & A & B & C & D & A & D & D & C & A & B & E & D & D & C \\
\hline
\end{tabular}
\end{center}

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

\noindent \textbf{Question 17 (10 Points): Cylindrical Shells} \\
Rotate the region bounded by $y = \cos(\frac{x^2}{4})$ and $y=0$, from $x=0$ to $x=2$ about the y-axis.

\[ \text{\textbf{Shell Setup:}} \quad \boxed{V = \int_{a}^{b} 2\pi (r)(h) \, dx } \]
\begin{align*}
    V &= \int_{0}^{2} 2\pi x \cos\left(\frac{x^2}{4}\right) \, dx
\end{align*}
Use $u$-substitution: Let $u = \frac{x^2}{4}$, so $du = \frac{x}{2} \, dx \implies 2du = x \, dx$. \\
Change bounds: $x=0 \implies u=0$ and $x=2 \implies u=1$.
\begin{align*}
    V &= 2\pi \int_{0}^{1} \cos(u) (2 \, du) = 4\pi \int_{0}^{1} \cos(u) \, du \\
      &= 4\pi \Big[ \sin(u) \Big]_0^1 = 4\pi (\sin(1) - \sin(0)) = \boxed{4\pi \sin(1)}
\end{align*}

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

\noindent \textbf{Question 18 (10 Points): Arc Length Representations} \\[0.2cm]
\textbf{a) Cartesian:} $x^2=-y^2+y \implies x = \sqrt{y-y^2}$. \\[0.1cm]
$x'(y) = \frac{1-2y}{2\sqrt{y-y^2}}$. Integral: $\boxed{L = \int_0^1 \sqrt{1 + \frac{(1-2y)^2}{4(y-y^2)}} \, dy}$
\\[0.4cm]
\textbf{b) Parametric:} $x = \frac{1}{2} \sin(2t), y = \sin^2(t)$. \\[0.1cm]
$x'(t) = \cos(2t)$, $y'(t) = 2\sin(t)\cos(t) = \sin(2t)$. Integral: $\boxed{L = \int_0^{\pi/2} \sqrt{\cos^2(2t) + \sin^2(2t)} \, dt}$
\\[0.4cm]
\textbf{c) Polar:} $r=\sin(\theta)$. \\[0.1cm]
$r'(\theta) = \cos(\theta)$. Integral: $\boxed{L = \int_0^{\pi/2} \sqrt{\sin^2(\theta) + \cos^2(\theta)} \, d\theta}$
\\[0.4cm]
\textbf{Evaluation (using Polar/Parametric identity $\sin^2 + \cos^2 = 1$):}
\[ L = \int_0^{\pi/2} \sqrt{1} \, d\theta = \Big[ \theta \Big]_0^{\pi/2} = \boxed{\frac{\pi}{2}} \]

\end{document}