

% LaTex2e
\documentclass[12pt]{article}
\usepackage{amssymb,latexsym}

\oddsidemargin 5pt \evensidemargin 5pt \marginparwidth 68pt
\marginparsep 10pt \topmargin 10pt \headheight 10pt
\headsep 15pt \footskip 35pt
\textheight = 625pt  \textwidth 440pt \columnsep 10pt \columnseprule 5pt

\pagestyle{myheadings}
\def\la{\langle}  \def\ra{\rangle}
\def\header{{\hfill Final \hfill A. Miller \hfill Fall 99
                                       \hfill Math 211\hfill}}
\markboth\header\header
\newcount\probno
\newcount\total
\newwrite\examTBLFile

\probno=0
\def\prob#1{\advance\probno by 1  \vfill\newpage  % \par
    \noindent\the\probno . (#1 pts)\advance\total by #1
    \immediate\write\examTBLFile{\the\probno
       \string& #1 \string&
       \string\qquad \string\\ \string\hline}}

\def\probx#1{\advance\probno by 1  \vfill  % \par
    \noindent\the\probno . (#1 pts)\advance\total by #1
    \immediate\write\examTBLFile{\the\probno
       \string& #1 \string&
       \string\qquad \string\\ \string\hline}}

\def\finishtbl{
    \immediate\write\examTBLFile{Total \string& \the\total
    \string& \qquad \string\\ \string\hline}
     }

\newwrite\ans
\immediate\openout\ans=answers
\outer\def\answer{\par\medbreak
  \immediate\write\ans{}
  \immediate\write\ans{\string\bigskip \the\probno . }
  \copytoblankline}
\outer\def\putanswer{\par\medbreak
  \immediate\write\ans{}
  \copytoblankline}
\def\copytoblankline{\begingroup\setupcopy\copyans}
\def\setupcopy{\def\do##1{\catcode`##1=12}\dospecials
     \catcode`\|=12\obeylines}
{\obeylines \gdef\copyans#1
  {\def\next{#1}%
  \ifx\next\empty\let\next=\endgroup%
  \else\immediate\write\ans{\next}\let\next=\copyans\fi\next}}
\def\printanswers{\newpage\begin{center} Answers \end{center}
    \immediate\closeout\ans\input answers}

\begin{document}

\bigskip

Calculators can be used, but will not be needed.  (Graders prefer no decimals
in your answer.)

You may bring one ``Cheat Sheet'', a single   8 1/2  x  11   sheet of paper
with anything you want written on both sides.

Show all your work.  Write clearly and carefully.  Little partial credit will
be given for the correct answer with incorrect or no work.  Cross out any
work or answers which you do not want graded.  Circle your answer.
Hand in your exam to your TA.


\par\vskip .25in
\begin{center}
Name\makebox[3in]{\hrulefill} \\
\end{center}

\begin{center}
Circle your TA section: \\
\end{center}

\begin{verbatim}
211 002 321     Lang, Mike           7:45  TR  B333 Van Vleck
211 002 322     Lang, Mike           8:50  TR   202 Bascom
211 002 324     Rhee, Kyoungwon      9:55  TR   301 Educ Sci
211 002 326     Rhee, Kyoungwon      11:00 TR  3331 Sterling
211 002 327     Hartwig, Brian       12:05 TR   346 Birge
211 002 328     Lee, Byungyoon       12:05 TR   341 Van Vleck
211 002 329     Lee, Byungyoon       1:20  TR   341 Van Vleck
211 002 331     Hartwig, Brian       2:25  TR   114 Ingraham
211 002 332     Kethireddypally      2:25  TR   223 Ingraham
211 002 334     Kethireddypally      3:30  TR  B325 Van Vleck
\end{verbatim}


% end file with \finishtbl
%\bigskip

\begin{center} \Large
 \begin{tabular}{||c|c|c||} \hline\hline
  Problem & Points & Score \\  \hline\hline
  \input{exam.tbl}
  \hline \hline
 \end{tabular}
\end{center}

\immediate\openout\examTBLFile=exam.tbl

\setcounter{page}{0}

\prob{8} % 10.3-27
A person initially places \$1000 in a savings account that pays 10\% per
year compounded continuously.  The person makes additional deposits
of \$100 per year continuously through each year.
\par Find a differential equation for $P(t)$, the amount on
deposit after $t$ years.  Solve it.
\answer $P^\prime=.10P+100$ and $P(0)=1000$ so
$P(t)=2000e^{.10t}-1000$

\prob{8} % exam 1
Duck soup production in the United States increased from 12 million
bowls in 1991 to 18 million bowls in 1995.  Assuming
production of soup to follow a linear equation, find the production
level predicted by these data for the year 2000.
\answer $25{1\over 2}$ million bowls.
\par Duck Soup, Marx Bros 1933.


\prob{8} % exam 1
\par\bigskip The cost function $C(x)$ for producing $x$ barrels
of kippered herring is defined by
$$C(x)=\left\{
\begin{array}{ll}
4x^2 +8           &  0< x < 2          \\
2x^2 + 8x         &  2 \leq x < 3      \\
{x^2}+ 14x        &  3 \leq x < 5      \\
\end{array}\right.$$
\par
At which points is $C(x)$ continuous? differentiable?
What is the marginal cost function, $MC(x)$?
\answer $C(x)$ is continuous in $(0,3)$ and $(3,5)$
(not at the point $x=3$).  It is differentiable at the same set of
points.
$$MC(x)=\left\{
\begin{array}{ll}
8x            &  0< x < 2    \\
4x+8          & 2 \leq x < 3  \\
2x+14          & 3 < x < 5     \\
\mbox{undefined} & x=3       \\
\end{array}\right.$$
\par Monkey Business, Marx Bros, 1931.


\prob{8} %  exam 1
Mrs.Claypool currently sells 100 subscriptions annually for
the New York Opera at a rate of \$40 per year.  Otis P. Driftwood,
the entrepreneur,
predicts that for each \$1 reduction in subscription
price an additional 5 subscriptions can be sold.  Under this
assumption what subscription rate maximizes revenue for the Opera?
\answer \$30
\par A Night at the Opera, Marx Bros, 1935.


\prob{8} % exam 2
Your greatuncle Cuthbert J. Twillie has died and left you a spendthrift
trust. Uncle Cuthbert believed that too much money would kill your
incentive to work hard, so he arranged that the trust would pay you nothing
until your 40th birthday (assume you are 20) and after which would pay you
\$500 each year for the next ten years.   The money is to be paid out as a
weekly allowance by the NGSEB Trust Company but
you may assume that the revenue stream is continuous. Assuming
prevailing interest rates are 10\% compounded continuously, what amount
should NGSEB be willing to pay you today in return for these future funds?
\answer ${5000}(e^{-2}-e^{-3})$ \par NGSEB, Never Give a Sucker an Even
Break, W.C.Fields 1941.

\prob{8} % exam 2
Dr.Hugo Z.Hackenbush, veteran veterinarian,  experiences weekly costs of
$$C(x)= 4+3x+e^{x\over 5}$$
in producing $x$ horse tranquilizer pills.
If the pills can be sold for \$33 each,
find the weekly production level of pills that maximizes profits.
\answer $5\ln(150)$
\par A day at the races, Marx Bros, 1937.


\prob{8} % exam 2
The population of the country of Freedonia is presently 6 thousand people.
This number is expected to double to 12 thousand in the next 30 years.
Assume that the population of Freedonia is given by an exponential
equation.  What will the average population of Freedonia be during this
30 year period?
\answer ${6\over \ln(2)}$
\par Duck Soup, Marx Bros 1933.


\prob{8} % 8.3-5
Find all critical points and classify them relative minimum, relative maximum,
or saddle for the function
$$f(x,y)=x^2-y^2+6x+4y+5$$
\answer Saddle point at $(-3,2)$

\prob{8} % 8.2-15
Find the partial derivatives $z_x$ and $z_y$ for
$$z={x\over y^2}-{y\over x^2}.$$
\answer $z_x={1\over y^2}+2{y\over x^3}$ and
$z_y=-2{x\over y^3}-{1\over x^2}$

\prob{8} % 8.3-21
The prices $p$ and $q$ of two items are related to the number of items,
$x$ and $y$, that will be sold during a fixed period of time by the
demand equations:
$$ p=20-x\;\;\;\;\; \;\;\;\;\; \;\;\;\;\; q=46-4y$$
The total cost of producing $x$ items of the first kind and $y$ items
of the second kind during this period of time is:
$$C(x,y)=100+7x+2y+xy$$
Find number of items, $x$ and $y$, for which profit will be a maximum.
\answer $x=4$ and $y=5$.




\finishtbl
\printanswers

\end{document}


