\chapter{Linear and quadratic functions}
Before we start the main topics of the Mathematics \& Statistics element of the module, we will spend some time reviewing linear and quadratic functions.  To some extent, you have already done this in the summer revision booklet.  Nonetheless, it is important that you have completely mastered the basics before we move onto more challenging material; the aim of the first chapter, then, is to quickly cover some old ground, and we will do this through several examples.    

\section{Linear functions}
Linear functions occur often in accounting and finance.  For example, 
\[
y=3x+4
\]
is a linear function.  We know this is a linear function because when we produce a graph of the function, we get a straight line.  For example, we can calculate the value of $y$ for various values of $x$ by substitution (see \textcolor{orange}{Section 1.1.5} of the \textcolor{orange}{summer revision booklet}); for instance, when $x=2$, we get
\[
y=3\times 2+4 = 6+4 = 10,
\]
bearing in mind the rules of \textsc{bidmas} (see  \textcolor{orange}{Section 1.1.1} of the  \textcolor{orange}{summer revision booklet}).  Similarly, for other values of $x$, we can obtain the following table of results:
\begin{center}
\begin{tabular}{|c|c c c c c c c c|} \hline
$x$       &0   &1 &2  &3  &4  &5  &6  &7 \\ \hline
$y$       &4   &7 &10 &13 &16 &19 &22 &25 \\ \hline
\end{tabular}
\end{center}
Plotting $x$ against $y$ and joining up the points gives the graph shown overleaf.  Notice that we get a straight line -- and so we could have produced exactly the same graph using just two points instead of the eight we considered here (you only need two points to draw a straight line!).

\newpage
  
\begin{center}
\includegraphics[angle=-90]{graph1.ps}
%\caption{Lee}
\end{center}

\vspace{-2.5cm}

Generally, we write down a linear function in the following way:
\[
y= mx +c,
\]
where $m$ is the \textit{gradient} and $c$ is the ($y$)--\textit{intercept}.  Notice that, in a linear function, there are no ``squared'' terms or ``cubed'' terms in $x$ ($x^{2}$ or $x^{3}$, respectively).  In fact, the highest power of $x$ is 1, since $x^{1}=x$.  Thus, we know a function is linear if the highest power in $x$ is 1.  If the highest power in $x$ was 2, i.e. $x^{2}$, then we would have a \textit{quadratic} function (see Section 1.2); the inclusion of a cubed term, i.e. $x^{3}$, would give a \textit{cubic} function, and so on.  Also notice that the gradient is always the number that is ``stuck'' to the $x$; that is, the gradient is the $x$ \textit{coefficient}.  The intercept is the ``other'' number, and is sometimes called the \textit{constant}. In our earlier example, where $y=3x+4$, the gradient is 3 and the intercept is 4 -- you should be able to see the intercept on the graph.  Some things to note about the gradient:
\begin{itemize}
\item The \textit{sign} of the gradient (positive/negative) indicates the direction of the slope (uphill/downhill respectively)
\item The \textit{size} of the gradient indicates how steep the line is, where bigger numbers give steeper lines
\end{itemize}
We will come back to finding the equation of a line shortly.  
\subsection{Solving linear equations}
In the  \textcolor{orange}{summer revision booklet} (\textcolor{orange}{Section 1.2.4}), you should have thought about how to solve simple linear equations.  
Let's consider some more complicated examples.  Don't forget to bear in mind the rules about dealing with negatives! (see  \textcolor{orange}{Section 1.1.2} of the  \textcolor{orange}{summer revision booklet}). 

  \vspace{0.5cm}

\framebox[17cm]{ \parbox[t]{16cm}{
\vspace{0.4cm}
Solve each of the following linear equations for $x$ and $t$ respectively.
\begin{itemize}
\item [\textbf{1.}] $\displaystyle \frac{6}{x+4}=4$; 
\item [\textbf{2.}] $\displaystyle \frac{-4t+4}{5t-6} =-8$. 
\end{itemize}

\huge
\ding{46}
\normalsize

\vspace{15.25cm}
}}

\subsection{Finding the equation of a line}
See  \textcolor{orange}{Sections 1.2.3 and 1.2.5} of the  \textcolor{orange}{summer revision booklet} for more details.  
  \vspace{0.5cm}

\framebox[17cm]{ \parbox[t]{16cm}{

\vspace{0.4cm}

Suppose we are told that the gradient of a line is 6.  We are also told that the line passes through the point $(3,25)$.  What is the equation of this line?

\vspace{0.4cm}
\huge 
\ding{46}
\normalsize

\vspace{6.5cm}

}}

  \vspace{0.5cm}

\framebox[17cm]{ \parbox[t]{16cm}{
\vspace{0.4cm}

Suppose we are told that a line passes through the points $(1,3)$ and $(5,35)$.  What is the equation of the line?

\vspace{0.4cm}

\huge 
\ding{46}
\normalsize

\vspace{9cm}
}}


\newpage


\framebox[17cm]{ \parbox[t]{16cm}{

\vspace{0.15cm}

\LARGE

\ovalbox{{\color{blue} {\sf \textbf{Example 1.1}}}}

\normalsize

\vspace{0.25cm}

The United Nations believes the annual consumption of rice in India ($y$ kilograms per household) is a linear function of the unit cost ($x$ US \$).  They also know that, when the unit cost of rice is \$12, the annual consumption of rice is 40.8kg per household; when this unit cost doubles, the corresponding consumption decreases to 21.6kg per household.  
\begin{itemize}
\item [\textbf{(a)}] Using this information, obtain the linear function for demand in terms of cost.
\item [\textbf{(b)}] Find the unit cost of rice if the demand is 25kg per household.  
\end{itemize}

\vspace{0.4cm}

\huge 
\ding{46}
\normalsize

\vspace{17cm}

}}

\newpage

\subsection{Solving two linear equations simultaneously}
In real--life accounting and finance problems, we often have more than one equation to solve.  You might remember how to solve a pair of linear equations simultaneously from your GCSE maths course.  If not, please see \textcolor{orange}{Section 1.2.6} of the \textcolor{orange}{summer revision booklet} for more details, including how to solve a pair of simultaneous equations graphically.  

\vspace{0.15cm}

\framebox[17cm]{ \parbox[t]{16cm}{

\vspace{0.4cm}

Solve the following linear equations simultaneously; do \textit{not} use a graph. 
\begin{eqnarray*}
4x + 8y &=& 30 \\
7x - 6y &=& 5.
\end{eqnarray*}

\huge
\ding{46}
\normalsize

\vspace{16cm}
}} 

\newpage



\framebox[17cm]{ \parbox[t]{16cm}{

\vspace{0.15cm}

\LARGE

\ovalbox{{\color{blue} {\sf \textbf{Example 1.2}}}}

\normalsize

\vspace{0.25cm}

A cookie company makes two types of biscuit: \textit{standard} and \textit{deluxe}.  Suppose the company makes $x$ batches of standard biscuits and $y$ batches of deluxe biscuits every day.  
\begin{itemize}
\item [\textbf{(a)}] Each batch of standard biscuits requires 5kg of flour; each batch of deluxe biscuits requires 8kg of flour.  Every day, exactly 98kg of flour must be used.  Write down a linear equation in $x$ and $y$ for the total amount of flour used each day (in kg).
\item [\textbf{(b)}] Each batch of standard biscuits requires 2kg of butter; each batch of deluxe biscuits requires twice as much butter.  Every day, exactly 44 kg of butter must be used.  Write down a linear equation in $x$ and $y$ for the total amount of butter used each day (in kg).  
\item [\textbf{(c)}] Solve your equations in parts (a) and (b) simultaneously to find out how many batches of standard and deluxe biscuits the company should make each day.  
\end{itemize}

\huge
\ding{46}
\normalsize

\vspace{15cm}
}}

\subsection{Linear programming}
\noindent \textit{Dynamic programming} techniques were developed during the Second World War by a group of American mathematicians.  They sought to produce mathematical models of situations in which all the requirements, constraints and objectives were expressed as algebraic equations.  They then developed methods for obtaining the \textit{optimal solution} -- the maximum or minimum value of a required function.  

In this section, we will attempt to formulate the requirements, constraints and objectives of real--life accounting and finance problems as linear equations (after all, this chapter is all about linear functions!); this branch of dynamic programming is referred to as \textit{linear programming}, for obvious reasons. Thus, all algebraic expressions will be of the form 
\begin{eqnarray*}
(\textrm{a number})x + (\textrm{a number})y;
\end{eqnarray*}
for example, 
\begin{eqnarray*}
\textrm{Profit}	&=& 4x - 3y
\end{eqnarray*}
is a linear equation for profit in terms of $x$ and $y$, where $x$ might represent our expenditure on advertising and $y$ might be our costs.  

\noindent Linear programming methods are some of the most widely used methods employed to solve management and economic problems.  They have been applied in a variety of contexts, some of which will be discussed in this chapter, with enormous savings in money and resources.  

The first step is to \textit{formulate} a problem as a linear programming problem; the second step is to \textit{solve} the problem.  In fact, much of the work we do here will rely on our work on simultaneous equations in the previous section, as well as our earlier graph work; however, there will be an emphasis on being able to construct the equations in the first place (as we did in Example 1.1), not just solving the equations, and this might take a little time to master.  In this section, we also need to think about linear \textit{inequalities}; for example, 
\begin{eqnarray*}
16x +18y &\leq& 25
\end{eqnarray*}
is a linear \textit{inequality} in $x$ and $y$.  The role of inequalities will become apparent as we work through some examples.        

\subsubsection{Formulating linear programming problems}
\noindent The first step in formulating a linear programming problem is to determine which quantities you need to know to solve the problem.  These are called the \textit{decision variables}.  

\noindent The second step is to decide what the \textit{constraints} are in the problem.  For example, there may be a limit on resources or a maximum or minimum value a decision variable may take, or there could be a relationship between two decision variables.  

\noindent The third step is to determine the objective to be achieved.  This is the quantity to be maximised or minimised, that is, \textit{optimised}.  The function of the decision variables that is to be optimised is called the \textit{objective function}.  

\noindent The examples which follow illustrate the varied nature of problems that can be modelled by a linear programming model.  We will not, at this stage, attempt to solve these problems but instead concentrate on producing the objective function and the constraints, writing these in terms of the decision variables.


\vspace{0.15cm}

\LARGE

\ovalbox{{\color{blue} {\sf \textbf{Example 1.3}}}}

\normalsize

\vspace{0.25cm}

\noindent A manufacturer makes two kinds of chairs, A and B, each of which has to be processed in two departments, I and II.  Chair A has to be processed in department I for 3 hours and in department II for 2 hours.  Chair B has to be processed in department I for 3 hours and in department II for 4 hours.  

\noindent The time available in department I in any given month is 120 hours, and the time available in department II, in the same month, is 150 hours.  

\noindent Chair A has a selling price of $\pounds 10$ and chair B has a selling price of $\pounds 12$.  

\noindent The manufacturer wishes to maximise his income.  How many of each chair should be made in order to achieve this objective?  You may assume that all chairs made can be sold.  

\noindent At the minute, \textbf{we will not attempt to solve this problem}; we will simply \textit{formulate} the situation as a linear programming problem.  You'll notice that there's a lot of information given in the question -- this is typical of a linear programming problem.  Sometimes it's easier to summarise the information given in a table:
{\small
\begin{center}
\begin{tabular}{|c| c| c| c|} \hline 
Type of chair		&Time in dept. I (hours)	&Time in dept. II (hours)	&Selling price ($\pounds$)	\\ \hline
A			&3				&2				&10				\\
B			&3				&4				&12				\\ \hline
Total time available	&120				&150				&				\\ \hline
\end{tabular}
\end{center}}

\vspace{1cm}

\noindent To formulate this linear programming problem, we consider the following three steps:
\begin{itemize}
\item [\textbf{1.}]	What are the \textit{decision variables}?  (i.e. which quantities do you need to know in order to solve the problem?)
\item [\textbf{2.}] What are the \textit{constraints}?
\item [\textbf{3.}] What is the \textit{objective}?
\end{itemize}

\newpage

\noindent \textbf{Step 1: Decision variables}
\\
\noindent To find out what the decision variables are, read through the question and identify the things you'd like to know in order to solve the problem.  You can usually do this by going straight to the last sentence of the question.  The last sentence here is 
\begin{center}
``How many of each chair should be made...''
\end{center}
Thus, we'd like to know the number of type A chairs to make, and the number of type B chairs to make.  These are our decision variables, and are usually denoted with lower case letters ($x$ and $y$ if we have two decision variables, $x$, $y$ and $z$ if we have three, for example).  Thus, our decision variables are
\begin{eqnarray*}
x&=& \textrm{number of type A chairs made}	\qquad \textrm{and}	\\
y&=& \textrm{number of type B chairs made.}
\end{eqnarray*}

\vspace{0.5cm}

\noindent \textbf{Step 2: Constraints}
\\
\noindent Identifying the constraints is probably the hardest bit.  To understand this bit, consider what could happen in each department.  For example, if we focus on what could happen in department I:
\begin{center}
\begin{tabular}{l l}
Since:		&the production of 1 type A chair uses 3 hours,\\
then:		&the production of $x$ type A chairs takes $3\times x = 3x$ hours.  \\
Similarly:	&the production of 1 type B chair uses 3 hours,\\
so:		&the production of $y$ type B chairs takes $3\times y = 3y$ hours.\\
\end{tabular}
\end{center}
\noindent The total time used is therefore 
\begin{eqnarray*}
(3x + 3y) \textrm{ hours}.
\end{eqnarray*}
Since only 120 hours are available in department I, one constraint is
\begin{eqnarray*}
(3x+3y) \textrm{ hours} &\leq& 120 \textrm{ hours}, \qquad \textrm{or just}	\\
(3x+3y)	&\leq& 120.
\end{eqnarray*}
\noindent Considering department II in a similar way, we get:
\begin{center}
\begin{tabular}{l l}
Since:		&the production of 1 type A chair uses 2 hours,\\
then:		&the production of $x$ type A chairs takes $2\times x = 2x$ hours.  \\
Similarly:	&the production of 1 type B chair uses 4 hours,\\
so:		&the production of $y$ type B chairs takes $4\times y = 4y$ hours.\\
\end{tabular}
\end{center}
\noindent The total time used is therefore
\begin{eqnarray*}
(2x+4y) \textrm{ hours}.
\end{eqnarray*}
Since only 150 hours are available in department II, a second constraint is
\begin{eqnarray*}
(2x+4y) \textrm{ hours} &\leq& 150 \textrm{ hours}, \qquad \textrm{or just}	\\
(2x + 4y) &\leq& 150.
\end{eqnarray*}
\noindent In addition to the two constraints we have identified above, we also require that $x$ and $y$ are non--negative (since we can't make a negative number of chairs!), and so we also have the following two constraints:
\begin{eqnarray*}
x &\geq& 0 	\qquad \textrm{and}	\\
y &\geq& 0.
\end{eqnarray*}
\noindent These are called the \textit{non--negativity constraints}.  

\vspace{0.5cm}

\noindent \textbf{Step 3: Objective function}
\\
\noindent Our objective here is to maximise income.  If we make $x$ type A chairs, then we get $\pounds 10 \times x = \pounds 10x$, since each type A chair sells for $\pounds 10$.  

\noindent Similarly, if we make $y$ type B chairs, then we get $\pounds 12 \times y = \pounds 12y$, since each type B chair sells for $\pounds 12$.  

\noindent The total income is then
\begin{eqnarray*}
\pounds Z &=& \pounds (10x + 12 y).
\end{eqnarray*}
\noindent The aim is to maximise income, so we'd like to maximise
\begin{eqnarray*}
Z &=& 10x + 12y,
\end{eqnarray*} 
where $z$ is the objective function.  

\noindent \textbf{Thus, to summarise, we have the following linear programming problem:}

\noindent Maximise $Z=10x+12y$ subject to the constraints
\begin{eqnarray*}
3x+3y &\leq& 120,	\\
2x+4y&\leq& 150,	\\
x &\geq& 0 	\qquad \textrm{and}	\\
y &\geq& 0.
\end{eqnarray*}
\newpage


\vspace{0.15cm}

\LARGE

\ovalbox{{\color{blue} {\sf \textbf{Example 1.4}}}}

\normalsize

\vspace{0.25cm}

\textit{Sportizus} Clothing Company produce replica football shirts and replica rugby shirts for sale on the high street.  Each shirt produced goes through a sewing process and a transfer process.  

\noindent Each football shirt requires 8 minutes of sewing time and 9 minutes for the transfer process, whereas rugby shirts each require 5 minutes of sewing time and 15 minutes for the transfer process.  In any given day, the total time available for the sewing process and transfer process is 10 hours and 15 hours respectively.  

\noindent To meet current demand, \textit{Sportizus} must produce at least 30 football shirts and 10 rugby shirts each day.  The company sells football shirts and rugby shirts at a profit of \pounds 22 and \pounds 16 respectively.  

\noindent How many of each type of shirt should \textit{Sportizus} produce in order to maximise profits?

\noindent  Let's start off with a table which summarises the question:
\begin{center}
\begin{tabular}{|c| c| c|c|} \hline
  &Sewing time (mins)                    &Transfer process (mins)			&Profit ($P$)\\ \hline
        &                               &            & \\
Football	&			&			& \\
        &                               &            &		\\ \hline
	&                               &                       & \\
Rugby	&			        &			& \\
         &                              &                     &		\\ \hline
         &                               &                    &\\
         Total time	&	&	&			\\
        &                              &                    & \\ \hline
\end{tabular}
\end{center}


\noindent Notice that the time available has been converted to minutes to be consistent with the other times given.  

\vspace{0.5cm}

\framebox[16cm]{ \parbox[t]{15cm}{

\vspace{0.4cm}
\huge
\ding{46}\normalsize \noindent \hspace{0.3cm} \textbf{Step 1: Decision variables} 

\vspace{0.5cm}

\noindent The decision variables are the number of football and rugby shirts to make.  Let
\begin{eqnarray*}
x &=& \textrm{\textcolor{white}{number in paperback binding Lee Lee LeeLee Lee LeeLee Lee Lee }}	\qquad \textrm{and}	\\
  & & \\
y &=& \textrm{\textcolor{white}{number in library binding.}}
\end{eqnarray*}

\vspace{0cm}
}}

\newpage

\framebox[16cm]{ \parbox[t]{15cm}{

\vspace{0.4cm}
\huge
\ding{46}\normalsize \noindent \hspace{0.3cm}  \textbf{Step 2: Constraints}

\vspace{0.5cm}

\noindent The constraints are:
\begin{eqnarray*}
\textrm{sewing}:	&\hspace{7cm}&		\qquad \textrm{and}	\\
                          &  & \\
\textrm{transfer}:	&\hspace{7cm}&	
\end{eqnarray*}
We do, of course, also have the non--negativity conditions; however, we are also told that we must make at least 30 football shirts and 10 rugby shirts to meet demand, giving:
\begin{eqnarray*}
x &\geq& \hspace{3cm}	\qquad \textrm{and}	\\
 & & \\
y &\geq&\\
& &
\end{eqnarray*}
}}

\vspace{1cm}

\framebox[16cm]{ \parbox[t]{15cm}{

\vspace{0.4cm}
\huge
\ding{46}\normalsize \noindent \hspace{0.3cm} \textbf{Step 3: Objective function}

\vspace{4cm}

}}

\vspace{0.5cm}

\framebox[16cm]{ \parbox[t]{15cm}{

\vspace{0.4cm}
\huge
\ding{46}\normalsize \noindent \hspace{0.3cm} \textbf{Thus, to summarise, we have:}

\vspace{5cm}

}}

\newpage

\subsubsection{Solving linear programming problems}
We can attempt to solve the two linear programming problems in Examples 1.3 and 1.4 graphically, using our earlier work on drawing graphs of linear functions.  We do this by finding the \textit{feasible region} for the problem, and then finding the point within this region which optimises our objective function.  


\vspace{0.15cm}

\LARGE

\ovalbox{{\color{blue} {\sf \textbf{Example 1.3 (revisited)}}}}

\normalsize

\vspace{0.25cm}

\framebox[16cm]{ \parbox[t]{15cm}{

\vspace{0.4cm}
\textbf{Recall that we had the following linear programming problem:}
\\
\\
\noindent Maximise $Z=10x + 12y$ subject to the following constraints:
\begin{eqnarray*}
3x+3y &\leq& 120,\\
2x+4y &\leq& 150, \\
x &\geq& 0 \qquad  \textrm{and}	\\
y &\geq& 0.
\end{eqnarray*}
}}
\vspace{0.5cm}

 To find the feasible region for this problem (i.e. the region on a graph which satisfies all of our inequalities), we proceed by indicating, on a diagram, the region for which all of the inequalities hold.  

\noindent The first inequality is $3x+3y \leq 120$.  To show this on a graph, we first need to plot the line $3x+3y=120$.  
\begin{itemize}
\item When $x=0$, we have
\begin{eqnarray*}
  3 \times 0 + 3y &=& 120	\qquad \textrm{i.e.}	\\
	  3y &=& 120		\qquad \textrm{i.e.}	\\
	   y &=& 40.
\end{eqnarray*}
\item When $y=0$, we have
\begin{eqnarray*}
3x + 3 \times 0 &=& 120	\qquad \textrm{i.e.}	\\
3x	&=& 120	\qquad \textrm{i.e.}	\\
x	&=&40.
\end{eqnarray*}
\end{itemize}
These points have been plotted on the graph overleaf and joined up to show the line with equation $3x+3y=120$.  Since we want $3x+3y\leq 120$, our region of interest lies on or below the line, and so we shade out the space above the line.  

\newpage

\noindent Now consider the second inequality $2x + 4y \leq 150$.  Again, to show this on a diagram, we first need to plot the line $2x+4y=150$.  
\begin{itemize}
\item When $x=0$, we have
\begin{eqnarray*}
 2 \times 0 + 4y &=& 150 \qquad \textrm{i.e.}	\\
	4y &=& 150	\qquad \textrm{i.e.}		\\
	y  &=& 37.5.
\end{eqnarray*}
\item When $y=0$, we have
\begin{eqnarray*}
2x + 4 \times 0 &=& 150 \qquad \textrm{i.e.}	\\
2x &=& 150		\qquad \textrm{i.e.}	\\
x &=& 75.
\end{eqnarray*}
\end{itemize}
You should plot these points on the same graph overleaf, and hence draw the line with equation $2x+4y=150$.  Since we want $2x+4y \leq 150$, our region of interest lies on or below the line, and so you should shade out the space above the line.  

\noindent On the same graph we also shade out the inadmissible regions for the two non--negativity constraints. 

\noindent The unshaded region in the graph shows the feasible region associated with our set of inequalities.  What we must do now is find the point in that region which meets our objective -- i.e. the point in that region which maximises income.  One way of doing this is to also plot the objective function.  Now our objective function is
\begin{eqnarray*}
Z&=& 10x + 12y,
\end{eqnarray*}
where $Z$ is our income.  When $Z$ takes different values we get a family of parallel straight lines.  We need to choose a starting value for $Z$ in order to be able to plot the objective function.  It's often a good idea to try a value which is a multiple of both the coefficients of $x$ and $y$.  The coefficient of $x$ is 10 and the coefficient of $y$ is 12, so we could try a starting value of $Z=120$.  Thus, the objective function is now
\begin{eqnarray*} 
10x + 12y &=& 120. 
\end{eqnarray*}
We can plot this line in the same way as before -- i.e. consider what happens when $x$ and $y$ are zero.  
\begin{itemize}
\item When $x=0$, we have
\begin{eqnarray*}
10 \times 0 + 12y &=&120	\qquad \textrm{i.e.}	\\
12y &=& 120		\qquad \textrm{i.e.}	\\
y &=&10.
\end{eqnarray*}
\item When $y=0$, we have
\begin{eqnarray*}
10x + 12 \times 0 &=& 120 \qquad \textrm{i.e.}	\\
10x &=& 120			\qquad \textrm{i.e.} \\
 x &=& 12.
\end{eqnarray*}
\end{itemize}

\newpage

\vspace{-1.5cm}

\begin{center}
\includegraphics[angle=-90]{graph7.ps}
%\caption{Lee}
\end{center}
\vspace{-3cm}
\noindent You should now plot this line on the graph as well.  Notice that this line does not give the optimal income; the origin represents zero income, and we want to move as far away from this as possible.  The largest value of $Z$ (income) will occur at the point in the feasible region that is \textit{furthest} from the origin, but still parallel to the objective line.  You can find this point by sliding a ruler over the feasible region so that it is always parallel to the objective function drawn.  This will enable you to identify the point that is furthest from the origin.  In fact, you should notice that the point in the feasible region furthest from the origin (and parallel to the objective function) is the intersection of the two lines with equations $3x+3y=120$ and $2x+4y=150$.    

\noindent All points in the feasible region satisfy our inequalities, but only one point maximises income.  Once this point has been identified, we can simply ``read off'' the $x$ and $y$ values.  Doing so give $\boldsymbol{x=5}$ and $\boldsymbol{y=35}$, and so, in order to maximise income, we should make \textbf{5 type A chairs} and \textbf{35 type B chairs}.  This will give an income of 
\begin{eqnarray*}
Z &=& 10x+12y	\qquad \textrm{i.e.}\\
Z &=& 10 \times 5 + 12 \times 35	\qquad \textrm{i.e.}	\\
Z &=& 50 + 420	\\
  &=& 470,
\end{eqnarray*}
i.e. $\pounds 470$.

\newpage

\framebox[17cm]{ \parbox[t]{16cm}{

\vspace{0.15cm}

\LARGE

\ovalbox{{\color{blue} {\sf \textbf{Example 1.4 (revisited)}}}}

\normalsize

\vspace{0.25cm}


\textbf{Recall that we had the following linear programming problem:}
\\
\\
\noindent Maximise $P=22x + 16y$ subject to the following constraints:
\begin{eqnarray*}
8x+5y &\leq& 600,\\
9x+15y &\leq& 900, \\
x &\geq& 30 \qquad  \textrm{and}	\\
y &\geq& 10.
\end{eqnarray*}
Solve this problem graphically to determine the number of football and rugby shirts \textit{Sportizus} should make in order to maximise profit. Also, find the maximum achievable profit.  Use the graph overleaf to help.  

\vspace{0.4cm}

\huge
\ding{46}\normalsize

\vspace{15cm}
}}

\newpage

\begin{center}
\includegraphics[angle=-90]{graph8.ps}
%\caption{Lee}
\end{center}

\vspace{-3cm}

Both of these problems can also be solved algebraically by solving the pair of simultaneous equations shown in both graphs -- you should try this yourself based on the material in Section 1.1.3.    

\section{Quadratic functions}
 As you might imagine, not everything in real--life can be represented by a straight line and, at best, the linear functions we looked at in Section 1.1 -- such as linear cost functions and linear functions for profit -- are simplifications.  To this end, in this section we will consider the role of non--linear functions in the field of accounting and finance.  In particular, we will think about {\it polynomial functions} where the power in $x$ is greater than 1 (giving a non--linear graph).  The simplest case here is the \textit{quadratic function}, where the highest power of $x$ in our polynomial is 2 -- that is, at most we have an $x^{2}$ term. For example,
\[
y = 5x^{2}-2x+6
\]
is a quadratic, since the highest power of $x$ is 2; the polynomial
\[
y=2x^{4}-3x^{2}+9
\]
is not a quadratic, since the highest power of $x$ here is 4 (in fact, this is a \textit{quartic}).  
\subsection{Plotting quadratic functions}

\framebox[17cm]{ \parbox[t]{16cm}{
\vspace{0.4cm}
In the space below, plot the graph of the function $y=x^{2}-2x-15$. 

\huge
\ding{46}
\vspace{1cm} 
\begin{center}
\includegraphics[angle=-90]{graph10new.ps}
%\caption{Lee}
\end{center}

}}

\newpage

\framebox[17cm]{ \parbox[t]{16cm}{

\vspace{0.15cm}

\LARGE

\ovalbox{{\color{blue} {\sf \textbf{Example 1.5}}}}

\normalsize

\vspace{0.25cm}

The estates manager of a zoo has 100 metres of fencing to construct a rectangular enclosure for some West African camels.  
\begin{itemize}
\item [\textbf{(a)}] Formulate a non--linear function for the area of the enclosure in terms of its width, $x$ metres.  
\item [\textbf{(b)}] Produce a plot of your non--linear function in (a) (see overleaf).
\item [\textbf{(c)}] Using your plot in (b), what length $x$ would give the optimal area for the camel enclosure?  What area would this give?
\end{itemize}


\huge
\ding{46}\normalsize 

\vspace{15cm}

}}

\begin{center}
\includegraphics[angle=-90]{graph11.ps}
%\caption{Lee}
\end{center}

\vspace{-2.5cm}

As with linear functions, it would be useful to be able to plot or sketch a non--linear function without having to draw up a full table of results.  For a quadratic function, it might be useful to know where the curve cuts into the $x$--axis, as well as the $y$--intercept of the curve.  Consider the quadratic from the earlier example: $y=x^{2}-2x-15$.  We know the $y$--intercept occurs when $x=0$, that is
\[
y = 0^{2}-2\times 0 -15 = -15,
\]
and this can be seen in our plot of this function.  However, how can we tell, without drawing up a full table of results, where the curve will cut the $x$--axis? The curve cuts the $x$--axis when $y=0$, that is when
\[
x^{2}-2x-15 = 0,
\]
and so we would need to solve this equation for $x$.  However, this is an example of a \textit{quadratic equation}, and we haven't considered how to solve these yet... 

\newpage

\subsection{Solving quadratic equations}
We can visualise the solution(s) for $x$ in the equation
\[
ax^{2}+bx+c = 0
\]
by looking at a plot of the quadratic and noting where the curve intersects/touches the line $y=0$, that is, the $x$--axis.  However, the accuracy of our solutions obtained in this way will depend on the accuracy of our graph.  We would also need to know what range of $x$--values to draw the graph over.  Two approaches for solving quadratics a bit more mathematically will now be considered.  In both, we will assume the general form of a quadratic as
\[
y = ax^{2}+bx+c;
\]
the \textit{discriminant}, $D$, is given by
\[
D = b^{2}-4ac,
\]
and has important properties in terms of how we classify the solutions to our quadratic.  
\subsubsection{Factorisation}
If the discriminant is a perfect square -- that is, if the square root of $D$ as defined above is an integer value, then we can solve our quadratic by the method of factorisation.  For more help with this, see \textcolor{orange}{Sections 1.3.1 and 1.3.2} of the \textcolor{orange}{summer revision booklet}.  
\vspace{1cm}
\framebox[17cm]{ \parbox[t]{16cm}{

\vspace{0.5cm}

Consider the following quadratic equations:
\begin{itemize}
\item [1.] $x^{2}-2x-15=0$ (from earlier -- see page 19) 
\item [2.] $x^{2}+5x+2=0$
\item [3.] $x^{2}-8x+12 = 0$ 
\item [4.] $x^{2}-5x-36=0$
\item [5.] $2x^{2}-7x+5=0$
\end{itemize}

\vspace{0.5cm}

\begin{itemize}
\item [\textbf{(a)}] For each, find the discriminant $D$.
\end{itemize}
\huge
\ding{46}\normalsize 

\vspace{4.3cm}

}}

\newpage

\framebox[17cm]{ \parbox[t]{16cm}{

\vspace{0.5cm}
\begin{itemize}
\item [\textbf{(b)}] Which equations can be solved by factorisation?

\huge
\ding{46}\normalsize 

\vspace{2cm}

\item [\textbf{(c)}] Solve the equations identified in (b) by factorisation.  

\huge
\ding{46}\normalsize 

\vspace{17cm}

\end{itemize}

}}

\subsubsection{Quadratic formula}
\noindent If we cannot factorise our quadratic, then we can use the quadratic formula in order to find the solution(s) to our quadratic equation.  For example, equation (2) in the last question:
\[
x^{2}+5x+2=0
\]
could not be factorised because the discriminant is
\[
D = 5^{2}- (4\times1\times2) = 25 - 8 = 17,
\]
which is not a perfect square.  However, all is not lost: the quadratic formula can help us here!  This was developed by Indian mathematicians in around 628AD, although the formula as we know it today was not published until 1637 by a French mathematician.  The solution(s) to the equation
\[
ax^{2}+bx+c=0,
\]
with discriminant $D=b^{2}-4ac$, are given by the formula
\[
x=\frac{-b\pm \sqrt{D}}{2a}.
\]
For example, consider the quadratic equation we plotted on page 19:
\[
y=x^{2}-2x-15.
\]
The graph showed that when $y=0$ the solutions were $x=5$ and $x=-3$.  Earlier in this section we also solved this equation by the method of factorisation.  What about using the formula?

Note that $a=1$, $b=-2$ and $c=-15$.  Thus the discriminant is
\[
D =  (-2)^{2} - 4 \times 1 \times -15 = 64.
\]
So by the formula, we have
\begin{eqnarray*}
x   &=& \frac{-(-2)\pm \sqrt{64}}{2 \times 1} \\
     & & \\
    &=& \frac{2 \pm 8}{2}.
\end{eqnarray*}
So the solutions are given by 
\[
x = \frac{2+8}{2} = \frac{10}{2} = 5,
\]
or
\[
x=\frac{2-8}{2} = \frac{-6}{3} = -3,
\]
exactly the solutions we obtained graphically and by factorisation!

\newpage
\framebox[17cm]{ \parbox[t]{16cm}{

\vspace{0.5cm}
Solve the quadratic equation
\[
  x^{2}+5x+2 = 0.
\]


\huge
\ding{46}\normalsize 

\vspace{17cm}

}}


\newpage
\framebox[17cm]{ \parbox[t]{16cm}{

\vspace{0.15cm}

\LARGE

\ovalbox{{\color{blue} {\sf \textbf{Example 1.6}}}}

\normalsize

\vspace{0.25cm}

A company models its annual profits using the function
\[
P(x) = x^{2}+20x-300,
\]
where $P$ represents profits and $x$ is the number of units sold.  In 2011 their profits were \pounds 167,700.  How many units of their product did they sell?


\huge
\ding{46}\normalsize 

\vspace{17cm}

}}
\newpage
\framebox[17cm]{ \parbox[t]{16cm}{


\vspace{0.15cm}

\LARGE

\ovalbox{{\color{blue} {\sf \textbf{Example 1.7}}}}

\normalsize

\vspace{0.25cm}


The manager of a vineyard thinks there is a relationship between the average temperature during the grape--growing season ($t^{\textrm{o}}\textrm{C}$) and the quality of the grapes produced and hence the selling price of resulting bottles of wine ($p$ pounds).  Over a ten year period the following relationship is revealed:
\begin{center}
\psfrag{5}[][]{\sf \tiny 5}
\psfrag{6}[][]{\sf \tiny 6}
\psfrag{7}[][]{\sf \tiny 7}
\psfrag{8}[][]{\sf \tiny 8}
\psfrag{9}[][]{\sf \tiny 9}
\psfrag{10}[][]{\sf \tiny 10}
\psfrag{16}[][]{\sf \tiny 16}
\psfrag{18}[][]{\sf \tiny 18}
\psfrag{20}[][]{\sf \tiny 20}
\psfrag{22}[][]{\sf \tiny 22}
\psfrag{24}[][]{\sf \tiny 24}
\psfrag{t}[][]{\sf \tiny Temperature ($t^{\textrm{o}}\textrm{C}$)}
\psfrag{p}[][]{\sf \tiny Price (\pounds $p$)}
\includegraphics[width=14cm,height=8cm]{Rplot1.ps}
\end{center}
\begin{itemize}
\item [\textbf{(a)}] Which model would best suit the relationship shown?
\begin{itemize}
\item [*] $p = 0.2t+4.4$
\item [*] $p = 0.2t^{2}-8t+70$
\item  [*]$p = -0.2t^{2}+8t-70$
\end{itemize}

\item [\textbf{(b)}] Suppose the manager needs to sell this variety of wine in 2013 for at least \pounds 9 per bottle.  What is the critical range of temperatures required to meet this price?


\huge
\ding{46}\normalsize 

\vspace{7cm}

\end{itemize}
}}


\subsubsection{Summary}
Earlier, we discussed that the discriminant $D=b^{2}-4ac$ has important properties in terms of how we classify he solutions to our quadratic equation. In summary:
\begin{itemize}
\item If $D$ is a perfect square, then we can solve the quadratic by factorisation; otherwise, we can use the formula (in fact, the formulae will always work!)
\item If $D>0$, our quadratic will have \textit{two real solutions} -- that is, the curve will cut the $x$--axis in two places
\item If $D=0$, then our quadratic will have \textit{repeated solutions} -- that is, our graph only just touches the $x$--axis (in effect giving just a single solution)
\item If $D<0$, then we cannot operate the quadratic formula as we cannot take the square root of a negative -- at least, not in the real number system.  Actually, such a quadratic has \textit{complex roots} making use of the complex number system, but this goes beyond the scope of this module  
\end{itemize}


\section{Higher--order polynomials}
In more complicated accounting and finance problems, linear and/or quadratic functions might still not be adequate enough to model our situation realistically.  Higher--order polynomials can be used, such as cubics:
\[
y = ax^{3}+bx^{2}+cx +d,
\]
or even quartics:
\[
y=ax^{4}+bx^{3}+cx^{2}+dx + e;
\]
or even quintics! -- 
\[
y=ax^{5}+bx^{4}+cx^{3}+dx^{2}+ex^{}+f.
\]

We will return to such functions in Chapter 2 of this course.  

\newpage

\section{Chapter 1 practice questions}
%\vspace{0.15cm}
%
%\LARGE
%
%\ovalbox{{\color{blue} {\sf \textbf{Chapter 1 practice questions}}}}
%
%\normalsize
%
%\vspace{0.25cm}
%
\begin{itemize}

\item [\textbf{1.}] What are the intercept and gradient of the following linear functions?
\begin{itemize}
\item [(a)] $y=2x+5$
\item [(b)] $y=12-2x$
\item [(c)] $8y=2x+16$
\item [(d)] $y=x$
\end{itemize}


\item [\textbf{2.}] Put the linear functions in question 1 in order of ``steepness'', from most steep to least steep.  

\item [\textbf{3.}] On the graph below, plot each of the linear functions given in question 1.  
\vspace{-0.5cm}
\begin{center} 
\includegraphics[angle=-90]{ex1graph1.ps}
%\caption{Lee}
\end{center}

\newpage

\item[\textbf{4.}] A recent British Gas investigation examined factors which influenced the length of time it takes customers to pay their utility bills (see the British Gas website for details about this investigation and a fully downloadable report).  Their report revealed that the size of a customer's bill (\pounds $x$) was the most important factor influencing the time it took customers to pay this bill ($y$, in days).  

In particular, British Gas express the time it takes a customer to pay their bill as a linear function of the size of their bill:
\[
y = 0.06x+7.44.
\]
\begin{itemize}
\item [(a)] What are the intercept and gradient of this linear function?
\item [(b)] If Kristina Bell's gas bill is \pounds 450, how long can we expect it will take her to pay this bill?
\item [(c)] Suppose it took Maeve Campbell 10 days to pay her gas bill.  Solve the above linear equation for $x$ to find out how Maeve's gas bill was.  
\end{itemize}

\vspace{0.75cm}

\item [\textbf{5.}] Jake Bennett needs a new carpet for his bedroom.  His room is rectangular in shape, and the length of the room is 3 times the width.  Let $x$ be the width of the room, in metres.    
\begin{itemize}
\item [(a)] Write down an expression for the perimeter of Jake's bedroom.  Simplify this expression as far as possible.   
\item [(b)] Write down an expression for the area of Jake's bedroom.  
\item [(c)] Which one of your expressions in (a) and (b) is \textit{linear}?
\end{itemize}

\vspace{0.75cm}

\item [\textbf{6.}] Alexander Booth is an entrepreneur who has recently developed a miracle hangover cure.  The number of hours until a hangover is cured ($y$) is thought to be related to the dose given ($x$ mg).  

Specifically, if a person suffering with a hangover is not given any of the drug at all, the hangover will pass within 10 hours.  However, a 50mg dose should see the hangover pass within 2 hours.  

\begin{itemize}
\item [(a)] Assuming $y$ is a linear function of $x$, find the intercept $c$ and the gradient $m$, and hence write down the linear function.  
\item [(b)] Assuming side effects are negligible regardless of the dose, what is the optimal dose to give hangover sufferers?
\end{itemize}

\newpage

\item [\textbf{7.}] Using a mobile phone costs \pounds 30 per month, and an additional 16 pence per minute of use (texts are free).    
\begin{itemize}
\item [(a)] Write down a linear function of cost in terms of minutes used each month.  Make sure you clearly define any variables.  
\item [(b)] Suppose you make 3.5 hours worth of calls this month.  How much should your bill be?
\item [(c)] You now upgrade your mobile phone.  Under your new tariff you pay \pounds 25 per month and only 5 pence per minute of use.  Text messages are still free, but your new phone is a smart phone and you will be charged 50p per gigabyte of data you use.  Write down a linear function for cost in terms of call time and data, clearly defining any variables.
\end{itemize}

\item [\textbf{8.}] \textit{Tallentire TV} are a company producing parts for plasma televisions.  They currently have a contract to produce a certain part for a batch of Samsung's latest 3D televisions.  

The graph overleaf shows their \textit{linear cost function} -- that is, their total costs (\pounds $y$ hundred) as a function of the number of parts they need to make ($x$). 


\begin{itemize}
\item [(a)] What is the $y$--intercept?
\item [(b)] Calculate the gradient.  
\item [(c)] Use your answers to parts (a) and (b) to write down the linear cost function.  
\item [(d)] Give a practical interpretation of the intercept and gradient.  
\item [(e)] Use the graph, and your linear function, to find total costs given that Samsung require parts for a batch of 24 televisions.  
\end{itemize}

\item [\textbf{9.}] Which of the following are \textit{linear} equations in $x$?  
\begin{itemize}
\item [(a)] $5x+7 = 27$
\item [(b)] $3x-9 = -21$
\item [(c)] $7(2x-4) = 154$
\item [(d)] $3x(4-2x) = -90$
\item [(e)] $\displaystyle \frac{3x-2}{-2(4x-1)} = -\frac{8}{23}$
\item [(f)] $\displaystyle \frac{10x^{2}+30}{5x} = 2x+3$
\end{itemize}


\item [\textbf{10.}] Solve the linear equations in question 9 for $x$.  


\item [\textbf{11.}] Andreas Doulappas has secured an internship at a leading accountancy firm.  He receives double pay for every hour he works over and above 38 hours per week.  Last week, he worked 48 hours and earned \pounds 812.  
\begin{itemize}
\item [(a)] Formulate a  linear equation for this scenario in terms of $x$, Andreas' regular hourly wage.  
\item [(b)] Solve your equation in (a) to find Andreas' regular hourly wage. \end{itemize}


\newpage

\begin{center} 
\includegraphics[angle=-90]{ex1graph2.ps}
%\caption{Lee}
\end{center} 

\vspace{-3cm}

\item [\textbf{12.}] \textit{Wong Enterprises} have a team of quantitative analysts who forecast the profit margins of their clients.  For one company, they show that profit is directly related to total income and overheads, that is
\[
\textrm{Profit} = \textrm{total income} - \textrm{overheads},
\]
where total income itself is a linear function of advertising expenditure (\pounds $x$):
\[
\textrm{Total income} = 6(x-2000).
\]
If the company's profit last month was \pounds 188,000, and their overheads were \pounds 10,000, how much did they spend on advertising?

\vspace{0.75cm}


\item [\textbf{13.}] \begin{itemize}
\item [(a)] The gradient of a straight line is $-0.75$.  If the line passes through the point $(-6,1)$, find the equation of the line in the form $y=mx+c$.  
\item [(b)] Another straight line passes through the points $(2,11)$ and $(5,38)$. Find the equation of this line in the form $y=mx+c$.  
\end{itemize}


\newpage


\item [\textbf{14.}] \textit{Product placement}, sometimes known as \textit{embedded marketing}, is a form of advertising where branded goods or products are placed in a context usually devoid of advertisements -- such as movies, music videos or TV shows.  

\begin{center}

\includegraphics[width=5cm,height=3cm]{WW.ps} \hspace{0.25cm} \includegraphics[width=5cm,height=3cm]{JB.ps}

\vspace{0.25cm}

\includegraphics[width=5cm,height=3cm]{AI.ps} \hspace{0.25cm} \includegraphics[width=5cm,height=3cm]{HO.ps}

\end{center}

\noindent Researchers at \textit{Samsung} believe there could be a linear relationship between the time at which a product appears in a movie and the proportion $p$ of people who can recall the brand at the end of the movie.  In particular, they propose the following linear model:
\[
p = -0.06 + 0.01t,
\]
where $t$ is the time (in minutes), from the start of the film, at which the product placement occurred.  
\begin{itemize}
\item [(a)] In terms of the gradient, explain the relationship between $p$ and $t$.    
\item [(b)] After an advance screening of the James Bond film \textit{Skyfall}, 105 of the 120 viewers in the auditorium were able to tell researchers that a \textit{Samsung} mobile phone was featured during the film.  According to the linear model above, after how many minutes did the product placement occur?
\item [(c)] Explain why, \textit{in general}, such a model could be flawed.  
\end{itemize}

%\vspace{0.75cm}


\item [\textbf{15.}] \textit{Ewart Electricals} produce circuitboards for televisions and Blu--Ray players for leading brands such as \textit{Hitachi} and \textit{Panasonic}.  The company use linear cost functions for the costs they incur; that is, overall costs ($y$) are a multiple of the number of circuitboards produced ($x$), minus any fixed costs.    
\begin{itemize}
\item [(a)] For a batch of televisions, each circuitboard cost the company \pounds 20 to produce.  For a particular order, the company must make 50 circuitboards at a total cost of \pounds 1,150.  Find the company's linear cost function for televisions, and identify the fixed costs here.  
\item [(b)] For one batch of Blu--Ray players, the company must make 120 circuitboards giving a total cost of \pounds 3,040.  Another batch of players requires 175 circuitboards and incurs total costs of \pounds 4,250.  Find the company's linear cost function for Blu--Ray players, and identify the fixed costs and cost per circuitboard here.  
\end{itemize}  

\item [\textbf{16.}] Solve the following pairs of linear equations simultaneously for $(x,y)$, $(p,q)$ or $(A,B)$:  
\begin{eqnarray*}
2x+3y &=& 18 \\
2x + y &=& 14 \\
                    & & \\
 4x+5y &=& 65 \\
                3x - 3y &=& -12 \\
            & & \\
6p + 3q &=& 108 \\
                 4p + 7q &=& 122  \\
                  & & \\
6A+2B &=& 20+5B \\
              5A+10B + 6 &=& 13B + 17 \\
\end{eqnarray*}
\item [\textbf{17.}] The \textit{Monster Party Company} produce two types of party pack.  Their ``Ghastly'' party pack contains 10 balloons and 64 sweets.  Their ``Devilish'' party pack contains 20 balloons and 16 sweets.  Each week, the company must use 3000 balloons and 8000 sweets in their party packs.  
\begin{itemize}
\item [(a)]  How many ``Ghastly'' and ``Devilish'' party packs can the company make each week?  Solve this problem graphically \textit{and} algebraically.   
\item [(b)]  The company sells each ``Ghastly'' party pack at a profit of \pounds 1.20 and each ``Devilish'' party pack at a profit of \pounds 1.80. How much profit can they expect to make each week?
\end{itemize}

 \item [\textbf{18.}] Kuddly Pals Co. Ltd make two types of giant soft toy: bears and cats.  The quantity of material needed and the time taken to make each type of toy is given in the table below.
\begin{center}
\begin{tabular}{|c| c c|} \hline
Toy		&Material ($\textrm{m}^{2}$)	&Time (minutes)	\\ \hline
Bear		&5				&12		\\
Cat		&8				&8		\\ \hline
\end{tabular}
\end{center}
\noindent Each day the company can process up to 2000$\textrm{m}^{2}$ of material and there are 48 worker hours available to assemble the toys. 

\noindent The profit made on each bear is $\pounds 1.50$ and on each cat is $\pounds 1.75$.  Kuddly Pals Co. Ltd wishes to maximise its daily profit.   
\begin{itemize}
\item[(a)] Formulate the company's situation as a linear programming problem.  
\item [(b)] Draw a suitable diagram to enable the problem to be solved graphically, indicating the feasible region and the direction of the objective line.    
\item [(c)] Use your diagram to find the company's maximum profit, $\pounds P$.  
\item [(d)] Verify your solution algebraically.  
\end{itemize}

\newpage

%\begin{landscape}
%\vspace{-2cm}
%\hspace{3cm}
%\begin{center}
%\includegraphics[height=28cm,width=22cm]{ex4graph2.ps}
%\end{center}

%\end{landscape}

%\newpage

\item [\textbf{19.}] A chocolate manufacturer produces two types of chocolate bar: \textit{Asteroids} and \textit{Blackholes}.  Production of an Asteroid bar uses 10g of cocoa and 1 minute of machine time, whereas a Blackhole bar requires 5g of cocoa and 4 minutes of machine time.  Altogether, 2kg of cocoa are available each day.  The company employs a single machine operator who works an eight hour day.  

The manufacturer must make at least 50 Asteroid and 50 Blackholes each day to keep up with demand.  The manufacturer makes 10p profit from each Asteroid bar and 20p profit from each Blackhole bar.  
\begin{itemize}
\item [(a)] Formulate the chocolate manufacturer's situation as a linear programming problem.
\item [(b)] Draw a suitable diagram to enable the problem to be solved graphically, indicating the feasible region and the direction of the objective line (use the graph below).
\item [(c)] Use your diagram to find the company's minimum and maximum profit, $\pounds P$.
\item [(d)] Now solve this problem algebraically to verify your solution to part (c).  
\end{itemize}

\vspace{-0.4cm}

%\begin{center}
\includegraphics[width=15.5cm,angle=-90]{ex4graph1.ps}
%\end{center}

\newpage

\item [\textbf{20.}] Which of the following are \textit{quadratic} equations in $x$?  
\begin{itemize}
\item [(i)] $5x+9 = 2x-3$
\item [(ii)] $x^{2}+11x+28=0$
\item [(iii)] $x^{2}-4x=5$
\item [(iv)] $x^{2}+3x+1= 0$
\item [(v)] $\displaystyle \frac{6x^{2}+5x+26}{2x} = 3x+4$
\item [(vi)] $x^{2}+10 = 6x$
\item [(vii)] $x^{2}-16x+64 = 0$
\end{itemize}

\vspace{0.3cm}

\item [\textbf{21.}] For each of the quadratic equations in question 20, calculate the discriminant.  Using this value,
\begin{itemize}
\item [(a)] decide whether the quadratic will have two distinct solutions, repeated solutions or complex solutions;
\item [(b)] decide which could be solved using the method of factorisation.
\end{itemize}

\vspace{0.3cm}

\item [\textbf{22.}] 
\begin{itemize}
\item [(a)] Solve the quadratic equations you have identified in question 21(b) using the method of factorisation.  
\item [(b)] For any remaining quadratics in question 20 that can be solved, use the quadratic formula to solve for $x$.  
\end{itemize}


\vspace{0.3cm}

\item [\textbf{23.}] The amount of profit a company makes, \pounds $\pi$ million, is related to their advertising expenditure \pounds $q$ million according to the following function:
\[
\pi(q)  = -2q^{2}+9q-4.
\]
Find the company's break--even points, that is, their advertising expenditure that gives zero profit.  Also, produce a sketch of $\pi(q)$.

\item [\textbf{24.}] In the 1950's, the Japanese statistician Genichi Taguchi (1924--2012) developed a technology for applying mathematics and statistics to improve the quality of manufactured goods.  \textit{Taguchi quality loss functions} are now used frequently in the fields of accounting, finance, business and economics.  In general, the Taguchi loss function is given by
\[
L = k(x-m)^{2},
\]
where
\begin{itemize}
\item $L$ is the monetary loss
\item $x$ is the quality characteristic (e.g. concentration, diameter,...)
\item $m$ is the target value for $x$
\item $k$ is a constant
\end{itemize}
\textit{Peng Power} produce printed circuitboards for the new iPhone 5.  Employees use a machine to precision--drill tiny holes, of diameter 2mm, into the circuitboards.  Mistakes can be rectified, but at a cost to the company.  In fact, a Taguchi loss function can be used to estimate the monetary
 loss, $L$ pence, for each circuitboard that is drilled erroneously, where $k=4$.   
\begin{itemize}
\item [(a)] Write down the company's Taguchi loss function, and plot this as a smooth curve on the graph below (you might want to draw up a table of results).

\vspace{-0.5cm}
%\begin{figure}[!h]
\begin{center}
\includegraphics[angle=-90,width=19cm]{tut4.ps}
%\caption{Lee}
\end{center}

%\newpage

\vspace{-1.5cm}

\item [(b)] Look at your graph in part (a). 
\begin{itemize}
\item [(i)] What value of $x$ gives zero loss?
\item [(ii)] Why does your answer to part (i) make sense intuitively?
\end{itemize}

\item [(c)] Verify your answer to part (b)(i) by expanding the company's Taguchi Loss function and solving for $L=0$ using the quadratic formula.  
\item [(d)] What is the value of the \textit{discriminant}?  What does this mean in terms of the solutions for this quadratic?  Can you see this in your graph in part (a)?
\end{itemize}

\end{itemize}


