Please login to create an exam or a quiz.
Find the derivative of \(\displaystyle y = (\cos{\left(x \right)})(9 - x)(x + 2)\).
Identifying \(\displaystyle f=\cos{\left(x \right)}\) and \(\displaystyle g=\left(9 - x\right) \left(x + 2\right)\) and using the product rule with \(\displaystyle f=\cos{\left(x \right)} \implies f'=- \sin{\left(x \right)}\). This leaves g as \(\displaystyle g = \left(9 - x\right) \left(x + 2\right)\) which also requires the product rule. Pushing down in the new product rule \(\displaystyle f=9 - x \implies f'=-1\) and \(\displaystyle g=x + 2 \implies g'=1\). Popping up a level gives \(\displaystyle g'=(x + 2)(-1)+(9 - x)(1)\)Popping up again (Back to the original problem) gives \(\displaystyle f'=(\cos{\left(x \right)})(7 - 2 x)+(\left(9 - x\right) \left(x + 2\right))(- \sin{\left(x \right)})=- \left(9 - x\right) \left(x + 2\right) \sin{\left(x \right)} + \left(9 - x\right) \cos{\left(x \right)} + \left(- x - 2\right) \cos{\left(x \right)}\)
\begin{question}Find the derivative of $y = (\cos{\left(x \right)})(9 - x)(x + 2)$.
\soln{9cm}{Identifying $f=\cos{\left(x \right)}$ and $g=\left(9 - x\right) \left(x + 2\right)$ and using the product rule with $f=\cos{\left(x \right)} \implies f'=- \sin{\left(x \right)}$. This leaves g as $g = \left(9 - x\right) \left(x + 2\right)$ which also requires the product rule. Pushing down in the new product rule $f=9 - x \implies f'=-1$ and $g=x + 2 \implies g'=1$. Popping up a level gives $g'=(x + 2)(-1)+(9 - x)(1)$Popping up again (Back to the original problem) gives $f'=(\cos{\left(x \right)})(7 - 2 x)+(\left(9 - x\right) \left(x + 2\right))(- \sin{\left(x \right)})=- \left(9 - x\right) \left(x + 2\right) \sin{\left(x \right)} + \left(9 - x\right) \cos{\left(x \right)} + \left(- x - 2\right) \cos{\left(x \right)}$}
\end{question}
\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath}
\usepackage[margin=2cm]{geometry}
\usepackage{tcolorbox}
\newcounter{ExamNumber}
\newcounter{questioncount}
\stepcounter{questioncount}
\newenvironment{question}{{\noindent\bfseries Question \arabic{questioncount}.}}{\stepcounter{questioncount}}
\renewcommand{\labelenumi}{{\bfseries (\alph{enumi})}}
\newif\ifShowSolution
\newcommand{\soln}[2]{%
\ifShowSolution%
\noindent\begin{tcolorbox}[colframe=blue,title=Solution]#2\end{tcolorbox}\else%
\vspace{#1}%
\fi%
}%
\newcommand{\hideifShowSolution}[1]{%
\ifShowSolution%
%
\else%
#1%
\fi%
}%
\everymath{\displaystyle}
\ShowSolutiontrue
\begin{document}\begin{question}(10pts) The question goes here!
\soln{9cm}{The solution goes here.}
\end{question}\end{document}<p> <p>Find the derivative of <img class="equation_image" title=" \displaystyle y = (\cos{\left(x \right)})(9 - x)(x + 2) " src="/equation_images/%20%5Cdisplaystyle%20y%20%3D%20%28%5Ccos%7B%5Cleft%28x%20%5Cright%29%7D%29%289%20-%20x%29%28x%20%2B%202%29%20" alt="LaTeX: \displaystyle y = (\cos{\left(x \right)})(9 - x)(x + 2) " data-equation-content=" \displaystyle y = (\cos{\left(x \right)})(9 - x)(x + 2) " /> .</p> </p><p> <p>Identifying <img class="equation_image" title=" \displaystyle f=\cos{\left(x \right)} " src="/equation_images/%20%5Cdisplaystyle%20f%3D%5Ccos%7B%5Cleft%28x%20%5Cright%29%7D%20" alt="LaTeX: \displaystyle f=\cos{\left(x \right)} " data-equation-content=" \displaystyle f=\cos{\left(x \right)} " /> and <img class="equation_image" title=" \displaystyle g=\left(9 - x\right) \left(x + 2\right) " src="/equation_images/%20%5Cdisplaystyle%20g%3D%5Cleft%289%20-%20x%5Cright%29%20%5Cleft%28x%20%2B%202%5Cright%29%20" alt="LaTeX: \displaystyle g=\left(9 - x\right) \left(x + 2\right) " data-equation-content=" \displaystyle g=\left(9 - x\right) \left(x + 2\right) " /> and using the product rule with <img class="equation_image" title=" \displaystyle f=\cos{\left(x \right)} \implies f'=- \sin{\left(x \right)} " src="/equation_images/%20%5Cdisplaystyle%20f%3D%5Ccos%7B%5Cleft%28x%20%5Cright%29%7D%20%5Cimplies%20f%27%3D-%20%5Csin%7B%5Cleft%28x%20%5Cright%29%7D%20" alt="LaTeX: \displaystyle f=\cos{\left(x \right)} \implies f'=- \sin{\left(x \right)} " data-equation-content=" \displaystyle f=\cos{\left(x \right)} \implies f'=- \sin{\left(x \right)} " /> . This leaves g as <img class="equation_image" title=" \displaystyle g = \left(9 - x\right) \left(x + 2\right) " src="/equation_images/%20%5Cdisplaystyle%20g%20%3D%20%5Cleft%289%20-%20x%5Cright%29%20%5Cleft%28x%20%2B%202%5Cright%29%20" alt="LaTeX: \displaystyle g = \left(9 - x\right) \left(x + 2\right) " data-equation-content=" \displaystyle g = \left(9 - x\right) \left(x + 2\right) " /> which also requires the product rule. Pushing down in the new product rule <img class="equation_image" title=" \displaystyle f=9 - x \implies f'=-1 " src="/equation_images/%20%5Cdisplaystyle%20f%3D9%20-%20x%20%5Cimplies%20f%27%3D-1%20" alt="LaTeX: \displaystyle f=9 - x \implies f'=-1 " data-equation-content=" \displaystyle f=9 - x \implies f'=-1 " /> and <img class="equation_image" title=" \displaystyle g=x + 2 \implies g'=1 " src="/equation_images/%20%5Cdisplaystyle%20g%3Dx%20%2B%202%20%5Cimplies%20g%27%3D1%20" alt="LaTeX: \displaystyle g=x + 2 \implies g'=1 " data-equation-content=" \displaystyle g=x + 2 \implies g'=1 " /> . Popping up a level gives <img class="equation_image" title=" \displaystyle g'=(x + 2)(-1)+(9 - x)(1) " src="/equation_images/%20%5Cdisplaystyle%20g%27%3D%28x%20%2B%202%29%28-1%29%2B%289%20-%20x%29%281%29%20" alt="LaTeX: \displaystyle g'=(x + 2)(-1)+(9 - x)(1) " data-equation-content=" \displaystyle g'=(x + 2)(-1)+(9 - x)(1) " /> Popping up again (Back to the original problem) gives <img class="equation_image" title=" \displaystyle f'=(\cos{\left(x \right)})(7 - 2 x)+(\left(9 - x\right) \left(x + 2\right))(- \sin{\left(x \right)})=- \left(9 - x\right) \left(x + 2\right) \sin{\left(x \right)} + \left(9 - x\right) \cos{\left(x \right)} + \left(- x - 2\right) \cos{\left(x \right)} " src="/equation_images/%20%5Cdisplaystyle%20f%27%3D%28%5Ccos%7B%5Cleft%28x%20%5Cright%29%7D%29%287%20-%202%20x%29%2B%28%5Cleft%289%20-%20x%5Cright%29%20%5Cleft%28x%20%2B%202%5Cright%29%29%28-%20%5Csin%7B%5Cleft%28x%20%5Cright%29%7D%29%3D-%20%5Cleft%289%20-%20x%5Cright%29%20%5Cleft%28x%20%2B%202%5Cright%29%20%5Csin%7B%5Cleft%28x%20%5Cright%29%7D%20%2B%20%5Cleft%289%20-%20x%5Cright%29%20%5Ccos%7B%5Cleft%28x%20%5Cright%29%7D%20%2B%20%5Cleft%28-%20x%20-%202%5Cright%29%20%5Ccos%7B%5Cleft%28x%20%5Cright%29%7D%20" alt="LaTeX: \displaystyle f'=(\cos{\left(x \right)})(7 - 2 x)+(\left(9 - x\right) \left(x + 2\right))(- \sin{\left(x \right)})=- \left(9 - x\right) \left(x + 2\right) \sin{\left(x \right)} + \left(9 - x\right) \cos{\left(x \right)} + \left(- x - 2\right) \cos{\left(x \right)} " data-equation-content=" \displaystyle f'=(\cos{\left(x \right)})(7 - 2 x)+(\left(9 - x\right) \left(x + 2\right))(- \sin{\left(x \right)})=- \left(9 - x\right) \left(x + 2\right) \sin{\left(x \right)} + \left(9 - x\right) \cos{\left(x \right)} + \left(- x - 2\right) \cos{\left(x \right)} " /> </p> </p>