\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 3}}\\[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 (15 Points): Interval of Convergence} \\

Consider the following power series:
$\displaystyle \sum_{n=1}^{\infty} \frac{(-1)^n (x + 3)^n}{5^n n}$
\begin{enumerate}
    \item Find the radius of convergence. 
    \item Find the largest open interval of convergence. 
\end{enumerate}

\vfill

\noindent \textbf{Radius:} \rule{4.3cm}{0.4pt}
\noindent \textbf{Open Interval:} \rule{8cm}{0.3pt} 

\newpage

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

\noindent \textbf{Question 12 (10 Points): Arc Length} \\
Find the length of the curve from $0$ to $\pi$ defined by 
$x = \cos(5t),  y = \sin(5t)$

\vfill 
\noindent \textbf{Exact answer:} \rule{6cm}{0.4pt}

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

\noindent \textbf{Question 13 (15 Points): Taylor Series} \\
For the function $f(x)=2x^3-x^2$:
\begin{enumerate}
    \item Find the first \textbf{four non-zero} coefficients of the Taylor Series about $a=2$. 
    \item Write down the Taylor polynomial approximation $P_3(x)$ about $a=2$ using these coefficients. 
\end{enumerate}

\vfill 
\noindent \textbf{Answer (a):} \rule{10cm}{0.4pt} \\
\vspace{0.5cm} \\
\noindent \textbf{Answer (b):} \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{Given a series $\displaystyle \sum_{n=1}^{\infty} a_n$ where the Ratio Test yields a limit of $L=0.1$, determine the correct conclusion regarding the convergence of the series.}
\vspace{0.1cm}
\mcoptionsWide
{No conclusion can be drawn} 
{The series converges conditionally}
{The series converges absolutely} 
{The series diverges}
{The series converges to $0.1$}
{The series converges to $0$}
\vspace{0.2cm}

% Q2
\mcquestion{Find the power series for $\displaystyle f(x) = \frac{5x^4}{3+x}$ ($|x| < 3$) using $\displaystyle \frac{1}{1-x} = \sum_{n=0}^{\infty} x^n$.}
\vspace{0.1cm}
\mcoptions
{$\displaystyle \sum_{n=0}^{\infty} (-1)^n \frac{5x^{n+4}}{3^{n+1}}$} 
{$\displaystyle \sum_{n=0}^{\infty} \frac{5x^{n+4}}{3^n}$}
{$\displaystyle \sum_{n=0}^{\infty} (-1)^n\frac{x^{n+4}}{3^{n+1}}$}
{$\displaystyle \sum_{n=0}^{\infty} (-1)^n\frac{5x^{n+1}}{3^{n+1}}$}
{$\displaystyle \sum_{n=0}^{\infty} \frac{5x^{n+4}}{3^{n+1}}$}
{$\displaystyle \sum_{n=0}^{\infty} (-1)^n \frac{5x^{n+4}}{3^n}$}
\vspace{0.2cm}

% Q3
\mcquestion{Find the largest open interval and radius of convergence $I$ and $R$ for the series:  $\displaystyle \sum_{n=1}^{\infty} n! (x - 4)^n 6^n$}
\mcoptions
{$I = (-\infty, \infty), \quad R = \infty$}
{$I = (3, 5), \quad R = 1$}
{$I = (-4, 4), \quad R = 4$}
{$I = (3.5, 4.5), \quad R = 0.5$}
{$I =\{4\}, \quad R = 0$} 
{$I = (-6, 6), \quad R = 6$}
\vspace{0.2cm}

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

% Q5
\mcquestion{Find the first three non-zero terms of the Maclaurin series for $f(x)$ on $(-1,1)$, given that $f$ satisfies: \\
$f(0)=0; \quad f'(0)=2; \quad f''(0)=0; \quad f'''(0)=-2; \quad f^{(4)}(0)=0; \quad f^{(5)}(0)=2$}
\mcoptions
{$\displaystyle 2x + \frac{2}{3!}x^3 + \frac{2}{5!}x^5$} 
{$\displaystyle 2x - 2x^3 + 2x^5$}
{$\displaystyle x - \frac{1}{3!}x^3 + \frac{1}{5!}x^5$}
{$\displaystyle 2 - \frac{2}{2!}x^2 + \frac{2}{4!}x^4$}
{$\displaystyle 2x - \frac{2}{3!}x^3 + \frac{2}{5!}x^5$} 
{$\displaystyle 2x - \frac{1}{3!}x^3 + \frac{1}{5!}x^5$}

\vfill
\newpage

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

%Q6
\mcquestion{Find a parameterization below that is for a circle of radius 6 and center at $(-1,2)$.}
\mcoptionsWide
{$x = -1+6\cos t, \  y = 2+6\sin(6t); \  0 \le t \le 2\pi$}
{$x = -1+6\cos t, \  y = 2+6\sin t; \  0 \le t \le 2\pi$} 
{$x = -1-6\cos t, \  y = 2-\sin t; \  0 \le t \le 2\pi$}
{$x = -1-6\cos t, \  y = 2-6\sin(6t); \  0 \le t \le 2\pi$}
{$x = 6\cos t, \  y = 6\sin t; \  0 \le t \le 2\pi$}
{$x = 1+6\cos t, \  y = -2+6\sin t; \  0 \le t \le 2\pi$}
\vspace{0.4cm}


% Q7
\mcquestion{Find the first three non-zero terms of the Taylor series for $f(x) = \ln(x-3)$ at $a = 4$.}
\mcoptionsWide
{$\displaystyle (x-4) - (x-4)^2 + 2(x-4)^3$}
{$\displaystyle (x-4) - \frac{1}{2}(x-4)^2 + \frac{1}{6}(x-4)^3$}
{$\displaystyle (x-4) - \frac{1}{2}(x-4)^2 + \frac{1}{3}(x-4)^3$} 
{$\displaystyle (x-3) - \frac{1}{2}(x-3)^2 + \frac{1}{3}(x-3)^3$}
{$\displaystyle 1 + (x-4) + \frac{1}{2}(x-4)^2$}
{$\displaystyle (x-4) + \frac{1}{2}(x-4)^2 + \frac{1}{3}(x-4)^3$}
\vspace{0.4cm}

% Q8
\mcquestion{Find $\frac{dy}{dx}$ for the parametric curve $x = \cos(5t) - 3t^3; \quad y = t^2 - 4t$}
\mcoptionsWide
{$\displaystyle \frac{-\sin(5t) - 9t^2}{2t - 4}$}
{$\displaystyle \frac{2t - 4}{\cos(5t) - 3t^3}$}
{$\displaystyle \frac{t^2 - 4t}{5\sin(5t) - 9t^2}$}
{$\displaystyle \frac{2t - 4}{-5\sin(5t) - 9t^2}$} 
{$\displaystyle \frac{\cos(5t) - 3t^3}{t^2 - 4t}$}
{$\displaystyle \frac{2t - 4}{-5\sin(5t) + 9t^2}$}
\vspace{0.4cm}

%Q9
\mcquestion{Which simplified expression represents the length of the curve defined by $\begin{cases} x = \cos(5t) \\ y = \sin(7t) \end{cases}$ for $0 \le t \le \pi$?}
\mcoptionsWide
{$\displaystyle \int_{0}^{\pi} \sqrt{\cos^2(5t) + \sin^2(7t)} \, dt$}
{$\displaystyle \int_{0}^{\pi} \sqrt{-25\sin^2(5t) + 49\cos^2(7t)} \, dt$} 
{$\displaystyle \int_{0}^{\pi} \sqrt{-5\sin(5t) + 7\cos(7t)} \, dt$}
{$\displaystyle \int_{0}^{\pi} \sqrt{25\sin^2(5t) + 49\cos^2(7t)} \, dt$} 
{$\displaystyle \int_{0}^{\pi} \sqrt{5\sin(5t) + 7\cos(7t)} \, dt$}
{$\displaystyle \int_{0}^{\pi} \sqrt{25\cos^2(5t) + 49\sin^2(7t)} \, dt$}
\vspace{0.4cm}

%Q10
\mcquestion{Eliminate the parameter to find the Cartesian equation of the curve: $x = 2 + 3\cos t, \quad y = 5 + 3\sin t$}
\mcoptionsWide
{$(x-2)^2 + (y-5)^2 = 3$}
{$(x-2)^2 + (y-5)^2 = 9$} 
{$(x+2)^2 + (y+5)^2 = 9$}
{$(x-2)^2 + (y-5)^2 = 1/9$}
{$(x-2) + (y-5) = 9$}
{$\displaystyle \frac{(x-2)^2}{3} + \frac{(y-5)^2}{3} = 1$}

\newpage

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

\begin{center}
 {\Huge \textbf{Solutions}}\\[0.1cm]
\end{center}
\vspace*{-0.3cm}
\noindent \textbf{Multiple Choice Answers} 
\vspace*{-0.6cm}
\begin{center}
\renewcommand{\arraystretch}{1.5}
\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
C & A & E & A & E & B & C & D & D & B \\
\hline
\end{tabular}
\end{center}

\vspace{0.2cm}
\hrule
\vspace{0.2cm}

\noindent \textbf{Question 11 (15 Points): Interval of Convergence} \\
Consider the following power series:
$\displaystyle \sum_{n=1}^{\infty} \frac{(-1)^n (x + 3)^n}{5^n n}$\\
Find (a) the radius of convergence and (b) the largest open interval of convergence. \\
\vspace*{-0.2cm}

(a) Apply the Ratio Test:
\vspace{-0.2cm}
\begin{align*}
    \lim_{n \to \infty} \left| \frac{a_{n+1}}{a_n} \right| &= \lim_{n \to \infty} \left| \frac{(-1)^{n+1}(x+3)^{n+1}}{5^{n+1}(n+1)} \cdot \frac{5^n n}{(-1)^n(x+3)^n} \right| \\
    &= \lim_{n \to \infty} \left| \frac{x+3}{5} \cdot \frac{n}{n+1} \right| = \frac{|x+3|}{5}=L
\end{align*}

Note: we used $\lim_{n \to \infty}   \frac{n}{n+1} =1$\\

For absolute convergence, we need $L<1$

$$\frac{|x+3|}{5} < 1 \implies |x+3| < 5$$ 

From this inequality, we now know the radius of convergence: $\boxed{R = 5}$\\
\\
\vspace{-0.2cm}
(b) Interval of Convergence:
$$|x+3| < 5 \implies -5 < x+3 < 5 \implies -8 < x < 2$$
Since the problem only asks for the open interval, we do not need to check endpoints. \\
Open Interval of convergence: $\boxed{(-8, 2)}$

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

\noindent \textbf{Question 12 (10 Points): Arc Length} \\
Find the length of the curve from $0$ to $\pi$ defined by $x = \cos(5t), y = \sin(5t)$. \\
Derivatives with respect to $t$: $\quad  x'(t) = -5\sin(5t) \quad \quad  y'(t) = 5\cos(5t) $

Apply the arc length formula $\boxed{L = \int_{a}^{b} \sqrt{(x'(t))^2 + (y'(t))^2} \, dt}$  

\begin{align*}
    L &= \int_{0}^{\pi} \sqrt{(-5\sin(5t))^2 + (5\cos(5t))^2} \, dt \\
      &= \int_{0}^{\pi} \sqrt{25\sin^2(5t) + 25\cos^2(5t)} \, dt \\
      &= \int_{0}^{\pi} \sqrt{25(\sin^2(5t) + \cos^2(5t))} \, dt \\
      &= \int_{0}^{\pi} \sqrt{25(1)} \, dt = \int_{0}^{\pi} 5 \, dt \\
      &= \left[ 5t \right]_{0}^{\pi} = 5\pi
\end{align*} 

Exact answer: $\boxed{5\pi}$

\newpage

\noindent \textbf{Question 13 (15 Points): Taylor Series} \\
For the function $f(x)=2x^3-x^2$:
\begin{enumerate}
    \item Find the first \textbf{four non-zero} coefficients of the Taylor Series about $a=2$. 
    \item Write down the Taylor polynomial approximation $P_3(x)$ about $a=2$ using these coefficients. 
\end{enumerate}

First, evaluate derivatives at $a=2$ to find $f^{(n)}(a)$:
\begin{align*}
    f(x) &= 2x^3 - x^2 \implies f(2) = 2(8) - 4 = 12 \\
    f'(x) &= 6x^2 - 2x \implies f'(2) = 6(4) - 4 = 20 \\
    f''(x) &= 12x - 2 \implies f''(2) = 12(2) - 2 = 22 \\
    f'''(x) &= 12 \implies f'''(2) = 12
\end{align*}
(a) The Taylor coefficients $c_n = \frac{f^{(n)}(a)}{n!}$:
\begin{align*}
    c_0 &= \frac{12}{0!} = \boxed{12} \\
    c_1 &= \frac{20}{1!} = \boxed{20} \\
    c_2 &= \frac{22}{2!} =\frac{22}{2}= \boxed{11} \\
    c_3 &= \frac{12}{3!} = \frac{12}{6}=\boxed{2}
\end{align*}
(b) The Taylor polynomial: 
$$ \boxed{T_n(x) = \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!} (x-a)^k} $$ 
$$ = \boxed{f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \cdots + \frac{f^{(n)}(a)}{n!}(x-a)^n} $$
\\Thus, the Taylor polynomial approximation for $f(x)=2x^3-x^2$ centered at $a=2$ is:
$$ \boxed{T_3(x) = 12 + 20(x-2) + 11(x-2)^2 + 2(x-2)^3} $$

\end{document}