01
  • Introduction
  • 1.1
  • 1.2
  • 1.3
  • 1.4
  • Summary
  • 1.1 Introduction

    In this section we introduce the concept of an equation and present techniques for solving different types of equations.

    We firstly look at the algebraic solution of linear equations in one variable before moving on to simultaneous linear equations and then quadratic equations. In all cases a geometric interpretation is presented along with details on how to graph the relevant functions.

    At appropriate locations throughout the document links are provided to enable access to further resources at the Mathcentre and the Khan Academy websites.

  • 1.2 What is an equation?

    An equation is a statement specifying that two mathematical expressions are equal.

    In an equation an “equal” sign separates the two expressions.

    while the following are not equations

    $$ 9 + 7 $$ $$ 2 + x $$ $$ x + 2y + 4z $$

    For example, the following are all equations

    $$ 3 + 5 = 8 $$ $$ 2x + 3 = 11 $$ $$ x^2 - 9 = 0 $$

    An equation may be true or false. In some cases however it may not be possible to determine the truth of the equation.

    Example 1

    (i) $ 9 + 7 = 12 + 4 $ is true since both sides result in the same quantity i.e. $16$.

    (ii) $ 7 - 3 = 6 - 1 $ is false since the left-hand side gives $4$ while the right-hand side gives $5$.

    (iii) $ x + 3 = 7 $ is neither true nor false as its validity depends on the value of $x$. Setting $x = 4$ results in a true equation while setting $x = 2$ gives a false equation.

    The value of the variable, $x$, that gives a true equation is called the solution of the equation. Hence, in (iii) above $x = 4$ is a solution of the equation $x + 3 = 7$.

    End of Example 1
  • 1.3 Linear Equations

    If required further resources on this topic can be found at

    🔗 http://www.mathcentre.ac.uk/students/topics/algebra/linearequations/

    At a very basic level we recommend the Khan academy

    🔗 https://www.khanacademy.org/math/algebra-home/alg-basic-eq-ineq/alg-old-school-equations/v/algebra-linear-equations-1

    🔗 https://www.khanacademy.org/math/algebra-home/alg-basic-eq-ineq/alg-old-school-equations/v/algebra-linear-equations-2

    🔗 https://www.khanacademy.org/math/algebra-home/alg-basic-eq-ineq/alg-old-school-equations/v/algebra-linear-equations-3

    A real linear equation in one variable has the form

    $a x = b$ (*)

    where $a$ and $b$ are known constants. To solve this equation for $x$ we must find a value for the variable $x$ that will make (*) true.

    1.3.1 Procedure for Solving Linear Equations

    If the equation contains any fractions multiply both sides of the equation by the least common multiple (LCM) of the denominators to eliminate the fractions.

    If the denominators of the fractions contain any variables identify the values of these variables that result in division by zero as they must be avoided in the final solution.

    Simplify the equation by removing any brackets and combining like terms.

    Transpose the equation so that terms involving the unknown variable appear on one side of the equality with the remaining terms on the other side.

    Apply addition and subtraction as necessary to combine terms and simplify the equation to the form $ax = b$.

    Isolate the unknown variable ($x$) by either dividing both sides of the equation by the coefficient $a$ if $a$ is an integer, or multiplying both sides of the equation by $a$ if it is a fraction.

    Check your answer by substituting the solution into the original equation.

    Example 2

    Solve the equation $ x + 10 = 4 $

    Solution

    $ x + 10 = 4 $

    $ x + 10 - 10 = 4-10 $ (subtract 10 from both sides)

    $x = -6$

    Check: with $x = – 6$ the left-hand side (LHS) of the original equation gives,

    $$ - 6 + 10 = 4 $$

    which equals the right-hand side (RHS) as required.

    End of Example 2

    Example 3

    Solve the equation $ 3x + 10 = 4 - x $

    Solution

    $$ 3x + 10 = 4 - x $$ $ 3x + 10 - 10 = 4 - x - 10 $ (subtract $10$ from both sides)
    $$ 3x = -6 - x $$ $ 3x + x = -6 - x + x $ (add $x$ to both sides)

    $$ 4x = -6 $$

    $ {\Large\frac{4x}{4}} = - {\Large\frac{6}{4}} $ (divide both sides by $4$, i.e. the coefficient of $x$)

    $ x = -{\Large\frac{6}{4}}$

    $x=-{\Large\frac{3}{2}}$ (express the RHS in its lowest terms)

    Check: Substitute the solution into both the LHS and RHS.

    LHS: $ 3 \times \Big(-{\Large\frac{3}{2}}\Big) + 10 = - {\Large\frac{9}{2}} + {\Large\frac{20}{2}} = {\Large\frac{11}{2}} $

    RHS: $ 4 - \Big(- {\Large\frac{3}{2}}\Big) = {\Large\frac{8}{2}} + {\Large\frac{3}{2}} = {\Large\frac{11}{2}} $

    As the LHS = RHS the solution has been verified.

    End of Example 3

    Example 4

    Solve the equation $ 3(x + 10) = 4 (2-x) $

    Solution

    $ 3(x + 10) = 4(2 - x) $
    $ 3x + 30 = 8 - 4x $ (expand the brackets)
    $ 3x + 30 - 30 = 8 - 4x - 30 $ (subtract 30 from both sides)
    $ 3x = -22 - 4x $
    $ 3x + 4x = -22 - 4x + 4x $ (add 4$x$ to both sides)
    $ 7x = -22 $

    ${\Large\frac{7x}{7}} = - {\Large\frac{22}{7}} $ (divide both sides by 7, i.e. the coefficient of $x$)

    $x = -{\Large\frac{22}{7}}$

    End of Example 4

    Example 5

    Solve the equation $ 2(4x + 1) = 7(x + 3) $

    Solution

    $ 2(4x + 1) = 7(x + 3) $
    $ 8x + 2 = 7x + 21 $ (expand the brackets)
    $ 8x - 7x = 21 - 2 $ (gather like terms and simplify)
    $x = 19$

    End of Example 5

    Example 6

    Solve the equation

    $$ \frac{1}{x} + 1 = 5 $$

    Solution

    Note that this equation contains a fraction, i.e. ${\Large\frac{1}{x}}$, and so we cannot allow $x = 0$ as this would lead to division by $0$.

    $ {\Large\frac{1}{x}} + 1 = 5 $

    $ {\Large\frac{1}{x}} + 1 - 1 = 5 - 1 $ (subtract 1 from both sides)

    $ {\Large\frac{1}{x}} = 4 $

    $ {\Large\frac{x}{x}} = 4x $ (multiply both sides by $x$)

    $ 1 = 4x $ (simplify the LHS)

    $ 4x = 1 $ (transpose to obtain the variable on the LHS)

    $ x ={\Large\frac{1}{4}} $ (divide both sides by $4$, i.e. the coefficient of $x$)

    End of Example 6

    Example 7

    Solve the equation

    $$ \frac{4x + 2}{3} + \frac{2x + 1}{2} = \frac{1}{6} $$

    Solution

    $ {\Large\frac{4x + 2}{3}} + {\Large\frac{2x + 1}{2}} = {\Large\frac{1}{6}} $

    $ {\Large\frac{6(4x + 2)}{3}} + {\Large\frac{6(2x + 1)}{2}} = {\Large\frac{6}{6}} $ (multiply through by the LCM of $2$, $3$,and $6$, i.e. $6$)

    $ 2(4x + 2) + 3(2x + 1) = 1 $

    $ 8x + 4 + 6x + 3 = 1 $ (expand brackets)

    $ 14x = - 6 $ (gather like terms and simplify)

    $ x = - {\Large\frac{6}{14}} $ (divide both sides by $14$, i.e. the coefficient of $x$)

    $x = -{\Large\frac{3}{7}}$

    End of Example 7

    Example 8

    Solve the equation $ 6x + 3 = x + 3 $

    Solution

    $ 6x + 3 = x + 3 $
    $ 6x = x $ (subtract $3$ from both sides)
    $ 5x = 0 $ (subtract $x$ from both sides)
    $x=0$

    End of Example 8

    1.3.2 Special Cases

    In the previous examples for the linear equation $ax = b$ we considered the two cases:

    $a \neq 0, b \neq 0$ (Examples 2 – 7) and

    $a \neq 0, b = 0$ (Example 8).

    In addition to these there are two special cases we need to consider.

    (i). $a = 0, b \neq 0$. This case gives the equation $0x = b$ and there is no value of $x$ that will make this equation true. Hence, the equation has no solution.

    (ii). $a = 0, b = 0$. The equation becomes, $0x = 0$ and we can choose any value for $x$ so that that in this case there are infinitely many solutions.

    Example 9

    The equation $0x = 6$ has no solution as there is no value of $x$ which when multiplied by $0$ gives the answer $6$.

    End of Example 9

    Summary

    We have now considered all the possibilities for the linear equation, $ax = b$, and have shown that given such an equation one of the following three conditions must be true:

    (i). the equation has a unique solution ($a \neq 0$ and either $b \neq 0$ or $b = 0$)

    (ii). the equation has no solution ($a = 0$ and $b \neq 0$ )

    (iii). the equation has infinitely many solutions ($a = 0$ and $b = 0$ ).

    1.3.3 Further Issues

    Sometimes we may have constraints placed on the solution, $x$. For example,

    (i). What if $x$ is required to be positive?

    (ii). What if $x$ needs to be an integer?

    (iii). What if $x$ needs to be within a particular range? For example, $ 2 \le x \le 14.5$

    Example 10

    Solve the equation $4x = 3$ and comment on the answer with respect to the three constraints specified above.

    Solution

    If $ 4x = 3 $ then $ x = {\Large\frac{3}{4}} $

    Considering the three conditions:

    (i). $ {\Large\frac{3}{4}} > 0 $ and so this is a feasible answer for $x$.

    (ii). Clearly $ {\Large\frac{3}{4}} \; $ is not an integer and so this is not a feasible answer for $x$.

    (iii). $ x = {\Large\frac{3}{4}} $ lies outside the specified range and so this is not a feasible answer for $x$.

    End of Example 10

    Example 11

    Solve the equation $(a - b)x = 1$ and state the conditions on $a$ and $b$ for which a solution exists.

    Solution

    if $(a - b)x = 1$ then $x = {\Large\frac{1}{a - b}}$

    There is a problem with the solution if $a = b$ as this leads to division by $0$. Hence, the answer is valid provided $a - b \neq 0 ,\; i.e.\; a \neq b$.

    So, not only are we required to solve an equation we should check if any conditions are placed on the solution.

    End of Example 11

    1.3.4 Graphing a Linear Equation

    A general linear equation written in slope-intercept form is:

    $$ y = mx + c $$

    where $m$ is the slope (gradient) of the line and $c$ is the $y$-intercept.
    If $m > 0$ then for every unit we move along the $x$-axis the $y$-value increases by a quantity $m$
    If $m < 0$ then for every unit we move along the $x$-axis the $y$-value decreases by a quantity $m$
    If $m = 0$ then the equation reduces to $y = c$ which corresponds to a horizontal line as c is a constant.

    The graph of a general linear equation $y = mx + c$, where $m > 0$, is shown below.

    The graph of general linear equation y = mx + c

    1.3.5 Plotting a Straight Line Graph Given Its Equation

    To sketch a straight line, all that is required are two points.

    Example 12

    Sketch the line $y = 2x - 1$

    Solution

    To obtain two points on the line we can choose any two $x$-values and calculate the corresponding $y$-values. However, it is more informative to identify the $x$ and $y$ intercepts.

    For the $y$-intercept set $x = 0$ giving $y = -1$ and the point $(0, –1)$ on the line.

    For the $x$-intercept set $y = 0$ and solve the equation $2x - 1 = 0$ giving $ x = {\Large\frac{1}{2}}$ and the point $(1/2,0)$ on the line.

    Note that from inspection of the equation we can see that this line has slope $m = 2$ and $y$-intercept

    Plot the two points (0, -1) and (1/2, 0)

    End of Example 12

    Example 13

    Sketch the line $y = -3x + 6$

    Solution

    Identify the $x$ and $y$ intercepts.

    For the $y$-intercept set $x = 0$ giving $y = 6$ and so $(0, 6)$ lies on the line.

    For the $x$-intercept set $y = 0$ and solve the equation, $-3x + 6 = 0$ giving $x = 2$ and so $(2,0)$ lies on the line.

    Graph of equation -3x + 6 = 0

    End of Example 13

    1.3.6 Determining the Equation of a Line Given Two Points on the Line

    If we are give two points say, $(x_1, y_1)$ and $(x_2, y_2)$ we can derive the equation of the line on which these points lie as follows.

    $$m = \frac{y_2 - y_1}{x_2 - x_1} \; \text{or} \;m = \frac{y_1 - y_2}{x_1 - x_2}$$

    Choose either of the points say, $(x_1, y_1)$ and then use the general formula

    $y = mx + c$.

    Alternatively, we can use the formula $ y - y_1 = m(x - x_1)$.

    Example 14

    Find the gradient of the line that passes through the two points $(2,3)$ and $(3,5)$ and determine the equation of the line.

    Solution

    $$ \text{let}(x_1,y_1) = (2,3).$$

    $$ \text{let}(x_2,y_2) = (3,5).$$

    $$ \text{Gradient} \; m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{5 - 3}{3 - 2}= \frac{2}{1} = 2. $$

    Choose one of the points, say $(3, 5)$.

    Determine the $y$-intercept. From the general form

    $y = mx + c$

    $5 = (2)(3) + c$

    $c = -1$

    The equation of the line is therefore $ y = 2x - 1$

    To check the answer we must show that both points lie on the line.

    When $x = 2, y = 2 \times 2 - 1 = 3$ as required

    When $x = 3, y = 2 \times 3 - 1 = 5$ as required

    End of Example 14

    1.3.7 Solving Word Problems Using Linear Equations

    Example 15

    Each record in a particular database has $50$ characters. The overhead for the header of the database is $20$ characters. Determine a formula for the total size of the file and calculate the database space required for $1000$ records.

    Solution

    Let $n$ denote the number of records.

    Let $s$ denote the size of the file.

    The number of characters in $n$ records is $50n$ and to this we add the overhead for the header of the database, i.e. $20$.

    The size ($s$) of the file can then be calculated from the linear equation, $s = 50n + 20$.

    If we create 1000 records then we need database space for $s = 50 × 1000 + 20 = 50020$ characters.

    End of Example 15

    More Challenging Problem

    Example 16

    A radiator contains an $8$ litre mixture of water and antifreeze. The mixture contains $40\%$ antifreeze. It is required to have the radiator contain a mixture that is $60\%$ antifreeze

    Some of the existing mixture is to be removed and replaced by pure anitfreeze ($100\%$ antifreeze).

    Determine how much of the mixture should be drained and replaced by pure antifreeze

    Solution

    Diagrammatically,

    Anti Freeze Diagram

    Radiator contains $8$ litres of water/antifreeze mixture.

    Mixture contains $40\%$ anitfreeze.

    Let $x$ (in litres) represent the amount of the mixture to be removed (and added).

    After removal the radiator contains $(8 - x)$ litres of mixture.

    After removal the radiator contains $(8 - x)(0.4)$ litres of antifreeze.

    Add $x$ litres of pure antifreeze

    Requires 8 litres of water/antifreeze mixture to contain $60\%$ antifreeze, i.e. $(8)(0.6)$ litres of antifreeze.

    The radiator will contain the same volume of mixture before and after the changes are made. Hence

    $(8 - x)(0.40) + x(1.0) =8(0.6) $
    $3.2 - 0.4x + x \;\;\;\;\;\;\;\;\;\;\;\;=4.8$
    $0.6x \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\,=1.6$
    $x \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\,\;\;\,\;\; = {\Large\frac{1.6}{0.6}}$
    $x \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\,\;\;\,\;\; = {\Large\frac{8}{3}} \approx 2.67.$

    Hence we need to drain $2.67$ litres of the mixture and replace this with pure antifreeze to ensure the mixture is $60\%$ antifreeze.

    End of Example 16

  • 1.4 Simultaneous Linear Equations

    Further resources can be found here if required
    🔗 http://www.mathcentre.ac.uk/students/topics/algebra/simultaneous-equations/

    At a very basic level we recommend the Khan academy (These sites focus on the substitution method described in these notes.)

    🔗 https://www.khanacademy.org/math/algebra-basics/alg-basics-systems-of-equations/alg-basics-solving-systems-with-substitution/v/solving-systems-with-substitution
    🔗 https://www.khanacademy.org/math/algebra-basics/alg-basics-systems-of-equations/alg-basics-solving-systems-with-substitution/v/practice-using-substitution-for-systems
    🔗 https://www.khanacademy.org/math/algebra-basics/alg-basics-systems-of-equations/alg-basics-solving-systems-with-substitution/a/substitution-method-review-systems-of-equations

    In many problems we will have two, or more, variables and two, or more, linear equations that relate the variables. These are called simultaneous equations and any solution must satisfy all the equations at the same time. In this course we shall focus on solving a system involving two equations in two unknowns, sometimes called a $2 \times 2$ system.

    Example 17

    An example of a $2 \times 2$ system of simultaneous equations is given by

    Solution

    $ 2x + 3y = 7$

    $ 3x + 4y = 9 $

    It can easily be verified by substituting $x = -1$ and $y = 3$ in the left-hand side of each equation that these values solve both equations at the same time.

    End of Example 17

    1.4.1 Solving a System of Simultaneous Linear Equations

    There are two algebraic methods to solve simultaneous linear equations.

    Method 1 – Elimination by Substitution

    1) Choose an equation and express one of the variables $x$, say, in terms of the other variable, $y$.

    2) The expression for $x$ is then substituted into the other equation to form a single equation in a single unknown which can be solved for $y$.

    3) Substitute for $y$ in the expression for $x$, found at Step 1, to obtain the full solution.

    Example 18

    Consider the equations $ x+ 2y = -1 $   (1)
    $\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\qquad\qquad\,\,4x - 3y = 18$   (2)

    Rearrange equation (1) to give, $x = -1 -2y$

    Substitute for $x$ into equation (2) to give

    $$\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; 4(-1-2y)-3y=18 $$ $$\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; -4-8y-3y=18 $$ $$\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; -11y=22 $$ $$\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; y = -2 $$

    Now substitute $y = -2$ in the expression obtained earlier for $x$ i.e. $x = -1 - 2y$ .

    We have $x = -1 -2(-2) = -1 + 4 = 3$.

    Hence the solutions are $x = 3$, $y = - 2$.

    This is the unique pair of values that satisfy both equations (1) and (2) at the same time.

    Alternatively, we could have rearranged equation (1) for $y$ to obtain $y=-{\Large\frac{1}{2}}-{\Large\frac{1}{2}}x$ , which is substituted into equation (2) to find $x = 3$. Then substitute $x = 3$ in the expression for $y$ to obtain $y = -2$.

    End of Example 18

    Method 2 – Elimination by the Addition or Subtraction of Equations

    1) Make the coefficients of $x$ or $y$ the same in both equations

    2) Add or subtract the equations in Step 1 to eliminate one variable and give one equation in one unknown which can easily be solved.

    3) The variable value obtained in Step 2 is then substituted in either of the original equations to obtain the full solution.

    Example 19

    Once again consider the equations:

    $\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; x + 2y = -1 $     (1)
    $\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; 4x - 3y = 18 $     (2)

    Step 1: Make the coefficient of $y$ the same in both equations.

    Multiply equation (1) by 3: $ \;\;\; 3x + 6y = -3 $     (3)

    Multiply equation (2) by 2: $ \;\;\; 8x - 6y = 36 $     (4)

    Step 2: Eliminate $y$ and solve the resulting one variable equation for $x$.

    Add (3) to (4): $\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; 11x \;\;\;\;\;\;\ =33 \;\; \implies x = 3$

    Step 3: Substitute for $x$ in either equation (1) or (2) and solve for $y$.

    Substitute $x = 3$ in equation (1) to obtain $y = -2$.

    Hence solutions are $x = 3$, $y = - 2$.

    Whichever method is used the solution should be checked by substituting the values for $x$ and $y$ into the original equations.

    Using equation (1): $3 + 2(-2) = 3 - 4 = -1$ as required.
    Using equation (2): $4(3) - 3(-2) = 12 + 6 = 18$ as required.

    End of Example 19

    Provided the rules of algebra are adhered to and no mistakes are made both of the above methods will produce the same result. However, it should be noted that sometimes the given equations will make it easier to apply one method rather than the other.

    Special Cases

    As for linear equations it is possible for simultaneous equations to have no solution or infinitely many solutions.

    Example 20 - No Solution

    Consider the equations $2x + 3y = 6 $     (1)
    $ \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; 2x + 3y = 1 $     (2)

    Subtract equation (2) from (1): $ 0x + 0y = 5 $

    There are no values of $x$ and $y$ that satisfy this equation at the same time and so the system has no solution.

    In this case the system is said to be inconsistent.

    End of Example 20

    Example 21 - Infinitely Many Solutions

    Consider the equations $\;\;\;\;\; 2x+3y=6 $     (1)
    $\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\; 4x + 6y = 12 $    (2)

    Multiply equation (1) by 2: $\; 4x + 6y = 12 $    (3)

    Write down equation (2) $\;\;\;\; 4x + 6y = 12$    (2)

    Subtract equation (2) from (3): $ 0x + 0y = 0 $

    We can choose any values for $x$ and $y$ to satisfy this equation and so the system has infinitely many solutions.

    End of Example 21

    1.4.2 Geometric Interpretation of a System of Two Linear Equations In Two Unknowns.

    The solutions of systems of two equations can be represented geometrically by inspecting the point of intersection of the two lines representing the equations.

    The three possible cases concerning the number of solutions to these systems are demonstrated graphically as follows

    (i). Unique solution (Example 18) – two lines intersect at a single point.

    Unique solution (Example 18) Graph

    (ii). No solution (Example 20) – two lines are parallel and do not intersect.

    No solution (Example 20) Graph

    (iii). Infinitely many solutions (Example 21) – the two lines are the same line.

    Infinitely many solutions (Example 21) Graph

    1.4.3. Solving Word Problems Using Simultaneous Equations

    Here we present some examples of how to convert word problems to simultaneous equations which can be solved using either of the methods described earlier.

    Example 22

    The sum of two numbers is 64. The first number is three times the second. Find the two numbers.

    Solution

    Let $x$ be the first number.

    Let $y$ be the second number.

    From the statement: “The sum of two numbers is 64”:

    $ x + y = 64 $    (1)

    From the statement: “The first number is three times the second”:

    $ x = 3y $    (2)

    Rewriting the above gives the system

    $ x + y = 64 $    (1)

    $ x - 3y = 0 $    (2)

    Method 1

    From equation (2), $x = 3y$.

    Substitute for $x$ in equation (1) to give $4y = 64$ so that $y = 16$.

    From $x = 3y$ we then have that $x = 3 \times 16 = 48$.

    Method 2

    Eliminate $x$ using (1) – (2) giving $4y = 64$ so that $y = 16$.

    Substitute for $y$ in equation (1) giving $x + 16 = 64$ and so $x = 48$.

    Hence, the two numbers are 16 and 48 which we should check using the original equations

    End of Example 22

    Example 23

    Next year a father will be twice the age of his son. Twenty years ago the father was the same age as the son is now. Determine how old the father and son are.

    Solution

    Let $x$ be the son’s age now.

    Let $y$ be the father’s age now.

    From the statement: “Next year a father will be twice the age of his son”:

    $y + 1 = 2 (x + 1)$

    From the statement: “Twenty years ago the father was the same age as the son is now”:

    $y - 20 = x$

    Rewriting the above gives the system

    $ y - 2x = 1$     (1)

    $ y - x = 20$     (2)

    Applying Method 2 we eliminate $y$ using (1) – (2) giving $x = 19$.

    Substitute for $x$ in equation (2) giving $y - 19 = 20$ and so $y = 39$.

    Hence, the father is 39 years old and the son is 19 years old.

    The same result will be obtained using Method 1 and this is left as an exercise.

    End of Example 23

  • 1.5 Quadratic Equations

    If required further resources on this topic can be found at

    🔗 http://www.mathcentre.ac.uk/students/topics/algebra/solving-quadratics/

    We also recommend the Khan academy (ignore factorisation under the square root – just use your calculator)

    🔗 https://www.khanacademy.org/math/algebra-home/alg-quadratics/alg-solving-quadratics-using-the-quadratic-formula/v/using-the-quadratic-formula

    A quadratic equation in $x$ has the form,

    $ ax^2 + bx + c = 0$

    where $a$, $b$ and $c$ are constants, with $a \neq 0$, and $x$ is the unknown which we wish to solve for. A solution to a quadratic is a number (usually two numbers) which when replaced for the value of $x$ results in a true statement. Methods for solving quadratic equations include: factorisation, using a formula, completing the square and sketching graphs. In this module we focus on the first two of these techniques.

    1.5.1 Solving Quadratic Equations by Formula

    The general quadratic equation

    $ ax^2 + bx + c = 0$

    can be solved using the formula

    $ x = {\Large\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}} $

    The quantity $b^2 - 4ac$ is called the discriminant and its value determines the nature of the solution to the equation. There are three cases to consider:

    (i). $b^2 - 4ac > 0$, the equation has two distinct real solutions
    ii). $b^2 - 4ac = 0$, the equation has one (repeated) real solution
    (iii). $b^2 - 4ac < 0$, the equation has no real solutions.

    Note that in case (iii) when the discriminant is negative we have the problem of finding the square root of a negative number. Mathematicians introduced complex numbers in order to deal with this. We do not use complex numbers in our course.

    In all our examples, $b^2 - 4ac \ge 0$.

    Example 24

    Solve the equation $x^2 - 2x - 24 = 0$ using the quadratic formula.

    Solution

    Comparing our equation with the general form we see that $a = 1, b = -2$ and $c = -24$. The discriminant is

    $$ b^2 - 4ac = (-2)^2 - 4 \times 1 \times(-24) = 100 > 0 $$

    and so the equation has two distinct real roots. Substituting the values above into the formula, noting that we have already calculated the discriminant, yields

    $ x = {\Large\frac{-(-2)\pm \sqrt{100}}{2 \times 1}} $

    $ x = {\Large\frac{2 \pm \sqrt{100}}{2}} = {\Large\frac{2 \pm 10}{2}} = 1 \pm 5. $

    $x = - 4$ or $ x = 6$

    Check by substituting these values into the left-hand side of the original equation, i.e.

    When $x = -4$ we have, $(-4)^2 - 2(-4) -24 = 16 + 8 - 24 = 0$ as required.

    When $x = 6$ we have, $6^2 - 2(6) - 24 = 36 - 12 - 24 = 0$ as required

    End of Example 24

    Example 25

    Solve the equation $2x^2 - 3x - 4 = 0$ using the quadratic formula.

    Solution

    Here $a = 2, b = -3$ and $c = -4$ so the discriminant is,

    $b^2 - 4ac = (-3)^2 - 4 \times 2 \times(-4) = 41 > 0$

    and so the equation has two distinct real roots.

    Substituting the values above into the formula yields

    $$ x = \frac{-(-3) \pm \sqrt{41}}{2 \times 2} $$ $$ x = \frac{3 \pm \sqrt{41}}{4} $$ $$ x = \frac{3 + \sqrt{41}}{4} \; \text{and} \; x = \frac{3 - \sqrt{41}}{4} $$

    These are exact values of the solutions and a calculator can be used to obtain the corresponding decimal approximations,
    $ x = 2.35$ and $ x = - 0.85$ to 2 decimal places.

    End of Example 25

    Example 26

    Solve the equation $9x^2 - 12x + 4 = 0$ using the quadratic formula.

    Solution

    Here $a = 9, b = -12$ and $c = 4$ so the discriminant is,

    $b^2 - 4ac = (-12)^2 - 4 \times 9 \times 4 = 144 - 144 = 0$

    and so the equation has one (repeated) real root.

    Substituting the values above into the formula yields

    $ x = {\Large\frac{-(-12) \pm \sqrt{0}}{2 \times 9}} $

    $ x = {\Large\frac{12}{18}} $

    $x = {\Large\frac{2}{3}}$ (repeated).

    End of Example 26

    Example 27

    Solve the equation $x^2 - 2x + 10 = 0$ using the quadratic formula.

    Solution

    Here $a = 1, b = -2$ and $c = 10$ so the discriminant is,

    $b^2 - 4ac = (-2)^2 - 4 \times 1 \times 10 = 4 - 40 = -36 < 0$

    and so the equation has no real solution.

    End of Example 27

    1.5.2 Solving Quadratic Equations by Factorisation

    Further resources can be found at

    🔗 http://www.mathcentre.ac.uk/resources/workbooks/mathcentre/web-factorisingquadratics.pdf

    Often we are required to expand the brackets in an expression such as $(x + 5)(x + 2)$ to obtain

    $$ xx + 5x + 2x + 5.2 = x^2 + 7x + 10. $$

    In many situations however it is useful to reverse the process and factorise the quadratic $x^2 + 7x + 10$ to obtain $(x + 5) (x + 2)$. Factorisation is an extremely useful skill which improves with practice. We illustrate the technique with some examples while noting that not all quadratics will factorise easily. In these cases it is better to use a method such as the quadratic formula.

    Example 28

    Solve the equation $x^2 + 9x + 18 = 0$ using factorisation.

    Solution

    We look for two numbers whose sum is the coefficient of $x$, i.e. $9$, and whose product is the constant term, i.e. $18$. Clearly the two numbers we require are $3$ and $6$.

    Using this result we split the $9x$ term into $3x$ and $6x$. Now write,

    $$ x^2 + 9x + 18 = 0 $$ $$ x^2 + 3x + 6x + 18 = 0 $$ $$ x(x + 3) + 6(x + 3) =0 $$ $$ (x + 3)(x + 6) = 0 $$ $$ x + 3 = 0 \;\text{or}\;x + 6 = 0 $$ $x = -3$ or $x = -6$

    These answers must be checked by substituting them into the left-hand side of the original equation.

    Note that in some cases, especially when the coefficient of the $x^2$ term is 1, it is possible to factorise quadratics simply by inspection. This is a skill which improves with practice. For example, here we can avoid some of the detail by, as before, spotting that the two numbers we need multiply to give $18$ and add to give $9$. By inspection, or using trial and error, we find that the only numbers that satisfy these constraints are $3$ and $6$. Returning to our equation we can directly write $(x + 3)(x + 6) = 0$ and solve as earlier.

    End of Example 28

    Example 29

    Solve the equation $x^2 + 4x - 12 = 0$ using factorisation.

    Solution

    We need two numbers whose sum is $4$ and whose product is $-12$.

    The two numbers we require are $-2$ and $6$.

    Now split the $4x$ term into $-2x$ and $6x$ so that

    $$ x^2 + 4x - 12 = 0 $$ $$ x^2 - 2x + 6x - 12 = 0 $$ $$ x(x - 2)+ 6 (x - 2) = 0 $$ $$ (x - 2)(x + 6) = 0 $$ $$ x - 2 = 0 \; \text{or} \; x + 6 = 0 $$ $x = 2$ or $x = -6$

    End of Example 29

    Example 30

    Solve the equation $x^2 - 4x - 21 = 0$ using factorisation.

    Solution

    We need two numbers whose sum is $-4$ and whose product is $-21$.

    The two numbers we require are $-7$ and $3$.

    Now split the $-4x$ term into $-7x$ and $3x$ so that

    $$ x^2 - 4x - 21 = 0 $$ $$ x^2 - 7x + 3x - 21 = 0 $$ $$ x(x - 7)+ 3(x - 7) = 0 $$ $$ (x - 7)(x + 3) = 0 $$ $$ x - 7 = 0 \; \text{or}\; x + 3 = 0 $$ $x = 7$ or $x = -3$

    End of Example 30

    Example 31

    Solve the equation $x^2 - 13x + 42 = 0$ using factorisation.

    Solution

    We need two numbers whose sum is $-13$ and whose product is $42$.

    The two numbers we require are $-6$ and $-7$.

    Now split the $-13x$ term into $-6x$ and $-7x$ so that

    $$ x^2 - 13x + 42 = 0 $$ $$ x^2 - 6x - 7x + 42 = 0 $$ $$ x(x - 6) - 7 (x - 6) = 0 $$ $$ (x - 6)(x - 7) = 0 $$ $$ x - 6 = 0 \;\text{or}\; x - 7 = 0 $$ $x = 6$ or $x = 7$.

    End of Example 31

    The previous examples are all monic quadratics as the coefficient of the $x^2$ term is 1 and were factorised relatively easily by inspection. We now look at some examples where the coefficient in not 1 and factorisation by inspection is not so straightforward.

    Example 32

    Solve the equation $5x^2 + 27x + 10 = 0$ using factorisation.

    Solution

    We look for two numbers whose sum is 27 but note that their product is no longer simply given by the constant term as it was in previous examples. In this case the product of the two numbers is obtained by multiplying the coefficient of $x^2$ by the constant term. Hence, we require that the product is $5 \times 10 = 50$. Note that this is precisely the same approach as used previously except that then the coefficient of $x^2$ was 1.

    Clearly the two numbers we require are $2$ and $25$.

    Using this result we now split the $27x$ term into $2x$ and $25x$. Now write,

    $ 5x^2 + 27x + 10 = 0 $

    $ 5x^2 + 25x + 2x + 10 = 0 $

    $ 5x(x + 5) + 2 (x + 5) = 0 $

    $ (x + 5)(5x + 2) = 0 $

    $x = - 5$ or $x = -{\Large\frac{2}{5}}$

    End of Example 32

    Example 33

    Solve the equation $6x^2 - 7x - 3 = 0$ using factorisation.

    Solution

    Here we look for two numbers whose sum is $-7$, and whose product is $-18$, i.e. $6 \times (-3)$, the coefficient of $x^2$ times the constant term. Clearly the two numbers we require are $-9$ and $2$.

    Now split the $-7x$ term into $-9x$ and $2x$. and write,

    $$ 6x^2 - 7x - 3 = 0 $$ $$ 6x^2 - 9x + 2x - 3 = 0 $$ $$ 3x(2x - 3) + 1(2x - 3) = 0 $$ $$ (2x - 3)(3x + 1) = 0 $$ $x = {\Large\frac{3}{2}}$ or $x = - {\Large\frac{1}{3}}$

    If you encounter problems when factorising remember that the quadratic formula is always an option to consider.

    End of Example 33

    1.5.3 The Difference of Two Squares

    An expression of the form

    $$ (x + k)(x - k) $$

    expands to give

    $$ x^2 - k^2 $$

    This is a quadratic function called the difference of two squares.

    It is relatively straightforward to factorise an expression of this type.

    Example 34

    Solve the equation $x^2 - 81 = 0$ using factorisation.

    Solution

    We note that the left-hand-side is the difference of two squares, so we have

    $$ x^2 - 81 = 0 $$ $$ x^2 - 9^2 = 0 $$ $$ (x + 9)(x - 9) = 0 $$ $x = -9$ or $x = 9$

    End of Example 34

    Example 35

    Solve the equation $x^2 - 3 = 0$ using factorisation.

    Solution

    We note that the left-hand-side is the difference of two squares as $ 3 = (\sqrt{3})^2 $, so we have

    $ x^2 - 3 = 0 $

    $ x^2 - (\sqrt{3})^2 = 0 $

    $ (x + \sqrt{3})(x - \sqrt{3}) = 0 $

    $x = - \sqrt {3}$ or $x =\sqrt {3}$

    End of Example 35

    1.5.4 Quadratics in Disguise

    Techniques for solving a quadratic can be extended to a range of equations that are not obviously quadratic.

    Example 36

    Solve the equation $x^4 - 3x^2 + 2 = 0$ using factorisation.

    Solution

    Although this equation is not a quadratic by introducing a new variable $y$ and setting $y = x^2$ we can transform our equation to a new equation with the structure of a quadratic.

    We let $y = x^2$ so that the equation becomes $y^2 - 3y + 2 = 0$.

    We can solve this equation for $y$, either by factorisation giving $(y - 2)(y - 1) = 0$, or by applying the quadratic formula to obtain the solution $y = 1$, $y = 2$

    Note however, that this is the solution for $y$ and we actually require the solution for $x$.

    The original equation in $x$ consisted of a fourth order (quartic) polynomial and so it must have four solutions.

    To find $x$ we write $ y = x^2 \implies x = \pm \sqrt{y} $

    When $y = 1$ we obtain $x = \pm 1$ and when $y = 2$ we have $ x = \pm \sqrt{2}$.

    Hence, we have found the required four solutions for $x$: $1,-1, \sqrt{2},-\sqrt{2}$

    End of Example 36

    Example 37

    Determine the solutions of: $ x + {\Large\frac{1}{x}} = 4$.

    Solution

    Note that here we cannot have $x = 0$ as this would lead to division by $0$.

    Multiply through by $x$ to obtain

    $$ x^2 + 1 = 4x $$ $$ x^2 - 4x + 1 = 0. $$

    This equation does not factorise easily and so we use the quadratic formula.

    $ x = {\Large\frac{4 \pm \sqrt{(-4)^2 - 4 (1)(1)}}{2(1)}} $

    $ = {\Large\frac{4 \pm \sqrt{12}}{2}} $

    $ = {\Large\frac{4 \pm 2 \sqrt{3}}{2}} $

    $= 2 \pm \sqrt{3}$

    End of Example 37

    Example 38

    Solve the equation, $$ \frac{1}{2(x + 3)} = \frac{x - 2}{(x + 4)(x - 3)} .$$

    Solution

    Note that to avoid division by zero we cannot have $x = -3$, $x = -4$ or $x = 3$.

    Cross-multiply to obtain

    $$ (x + 4)(x - 3) = 2(x + 3)(x - 2) $$ $$ x^2 + x - 12 = 2x^2 + 2x - 12 $$ $$ x^2 + x = 0 $$ $$ x(x + 1) = 0 $$ $x = 0$ or $x = -1$.

    Alternatively we could multiply through by the LCM of the denominators, i.e. $2(x + 3)(x + 4)(x - 3)$ to obtain $(x + 4)(x - 3) = 2(x + 3)(x - 2)$ and proceed as above.

    End of Example 38

    Example 39

    Solve the equation, $$ \frac{5x + 4}{x(x - 2)} = \frac{7}{(x - 2)} = 0 $$.

    Solution

    To avoid division by zero we cannot have either $x = 0$ or $x = 2$ as a solution.

    The LCM of the denominators is $x(x - 2)$ and so we multiply through by $x(x - 2)$ giving

    $$ 5x + 4 = 7x $$ $$ -2x + 4 = 0 $$ $$ x = 2 $$

    However, as noted above, we cannot have $x = 2$ and so the equation has no solution.

    Alternatively rewrite the equation as $$ \frac{5x + 4}{x(x - 2)} = \frac{7}{(x - 2)}. $$

    Cross-multiplication leads to $(5x + 4)(x - 2) = 7x(x - 2)$ which simplifies to produce the same result as above.

    End of Example 39

    1.5.5 Graphing Quadratics

    The general shape of the graph of a quadratic equation of the form $y = ax^2 + bx + c$ broadly speaking consists of two cases depending on the sign of the coefficient $a$.

    Case(i): $a > 0$

    Graph 8 Diagram
    $b^2 - 4ac > 0$
    two distinct real roots
    Graph 9 Diagram
    $b^2 - 4ac = 0$
    one double real root
    Graph 10 Diagrams
    $ b^2 - 4ac < 0$
    no real roots

    Case (ii): $ a < 0$

    Graph 11 Diagram
    $b^2 - 4ac > 0$
    two distinct real roots
    Graph 12 Diagram
    $b^2 - 4ac = 0$
    one double real root
    Graph 13 Diagrams
    $ b^2 - 4ac < 0$
    no real roots

    Example 40

    Plot the quadratic equation $y = x^2 + 4x + 1$.

    Solution

    To find the roots of the quadratic, where it cuts the $x$-axis, we solve $x^2 + 4x + 1 = 0$ and obtain $x = -2 + \sqrt{3}$ - (here we used the quadratic formula).

    The graph cuts the $y$-axis where $x = 0$, i.e. at $y = 1$.

    More points on the graph can be obtained by forming a table:

    Graph 14 Diagram
    $x$ $-6$ $-5$ $-4$ $-3$ $-2$ $-1$ $\; 0$ $\; 1$ $\; 2$
    $y$ $13$ $\;\,\, 6$ $\;\,\, 1$ $-2$ $-3$ $-2$ $\; 1$ $\; 6$ $13$

    End of Example 40

  • Summary

    This section introduced equations and you should now be able to:
    solve and graph linear equations in one variable
    solve and graph simultaneous linear equations
    solve quadratic equations by factorisation and by using the quadratic formula
    graph a quadratic equation

    You should now be able to attempt all the tutorial questions and the Maple exercises.

School of Computing, Engineering and Built Environment