MAT1001 Differential Calculus: Lecture Notes

\(\newcommand{\footnotename}{footnote}\) \(\def \LWRfootnote {1}\) \(\newcommand {\footnote }[2][\LWRfootnote ]{{}^{\mathrm {#1}}}\) \(\newcommand {\footnotemark }[1][\LWRfootnote ]{{}^{\mathrm {#1}}}\) \(\let \LWRorighspace \hspace \) \(\renewcommand {\hspace }{\ifstar \LWRorighspace \LWRorighspace }\) \(\newcommand {\TextOrMath }[2]{#2}\) \(\newcommand {\mathnormal }[1]{{#1}}\) \(\newcommand \ensuremath [1]{#1}\) \(\newcommand {\LWRframebox }[2][]{\fbox {#2}} \newcommand {\framebox }[1][]{\LWRframebox } \) \(\newcommand {\setlength }[2]{}\) \(\newcommand {\addtolength }[2]{}\) \(\newcommand {\setcounter }[2]{}\) \(\newcommand {\addtocounter }[2]{}\) \(\newcommand {\arabic }[1]{}\) \(\newcommand {\number }[1]{}\) \(\newcommand {\noalign }[1]{\text {#1}\notag \\}\) \(\newcommand {\cline }[1]{}\) \(\newcommand {\directlua }[1]{\text {(directlua)}}\) \(\newcommand {\luatexdirectlua }[1]{\text {(directlua)}}\) \(\newcommand {\protect }{}\) \(\def \LWRabsorbnumber #1 {}\) \(\def \LWRabsorbquotenumber "#1 {}\) \(\newcommand {\LWRabsorboption }[1][]{}\) \(\newcommand {\LWRabsorbtwooptions }[1][]{\LWRabsorboption }\) \(\def \mathchar {\ifnextchar "\LWRabsorbquotenumber \LWRabsorbnumber }\) \(\def \mathcode #1={\mathchar }\) \(\let \delcode \mathcode \) \(\let \delimiter \mathchar \) \(\def \oe {\unicode {x0153}}\) \(\def \OE {\unicode {x0152}}\) \(\def \ae {\unicode {x00E6}}\) \(\def \AE {\unicode {x00C6}}\) \(\def \aa {\unicode {x00E5}}\) \(\def \AA {\unicode {x00C5}}\) \(\def \o {\unicode {x00F8}}\) \(\def \O {\unicode {x00D8}}\) \(\def \l {\unicode {x0142}}\) \(\def \L {\unicode {x0141}}\) \(\def \ss {\unicode {x00DF}}\) \(\def \SS {\unicode {x1E9E}}\) \(\def \dag {\unicode {x2020}}\) \(\def \ddag {\unicode {x2021}}\) \(\def \P {\unicode {x00B6}}\) \(\def \copyright {\unicode {x00A9}}\) \(\def \pounds {\unicode {x00A3}}\) \(\let \LWRref \ref \) \(\renewcommand {\ref }{\ifstar \LWRref \LWRref }\) \( \newcommand {\multicolumn }[3]{#3}\) \(\require {textcomp}\) \(\require {upgreek}\) \(\newcommand {\intertext }[1]{\text {#1}\notag \\}\) \(\let \Hat \hat \) \(\let \Check \check \) \(\let \Tilde \tilde \) \(\let \Acute \acute \) \(\let \Grave \grave \) \(\let \Dot \dot \) \(\let \Ddot \ddot \) \(\let \Breve \breve \) \(\let \Bar \bar \) \(\let \Vec \vec \) \(\require {cancel}\) \(\newcommand {\LWRsubmultirow }[2][]{#2}\) \(\newcommand {\LWRmultirow }[2][]{\LWRsubmultirow }\) \(\newcommand {\multirow }[2][]{\LWRmultirow }\) \(\newcommand {\mrowcell }{}\) \(\newcommand {\mcolrowcell }{}\) \(\newcommand {\STneed }[1]{}\) \(\def \ud {\mathrm {d}}\) \(\def \ui {\mathrm {i}}\) \(\def \uj {\mathrm {j}}\) \(\def \uh {\mathrm {h}}\) \(\newcommand {\R }{\mathbb {R}}\) \(\newcommand {\N }{\mathbb {N}}\) \(\newcommand {\C }{\mathbb {C}}\) \(\newcommand {\Z }{\mathbb {Z}}\) \(\newcommand {\CP }{\mathbb {C}P}\) \(\newcommand {\RP }{\mathbb {R}P}\) \(\def \bk {\vec {k}}\) \(\def \bm {\vec {m}}\) \(\def \bn {\vec {n}}\) \(\def \be {\vec {e}}\) \(\def \bE {\vec {E}}\) \(\def \bx {\vec {x}}\) \(\def \uL {\mathrm {L}}\) \(\def \uU {\mathrm {U}}\) \(\def \uW {\mathrm {W}}\) \(\def \uE {\mathrm {E}}\) \(\def \uT {\mathrm {T}}\) \(\def \uV {\mathrm {V}}\) \(\def \uM {\mathrm {M}}\) \(\def \uH {\mathrm {H}}\) \(\DeclareMathOperator {\sech }{sech}\) \(\DeclareMathOperator {\csch }{csch}\) \(\DeclareMathOperator {\arcsec }{arcsec}\) \(\DeclareMathOperator {\arccot }{arcCot}\) \(\DeclareMathOperator {\arccsc }{arcCsc}\) \(\DeclareMathOperator {\arccosh }{arcCosh}\) \(\DeclareMathOperator {\arcsinh }{arcsinh}\) \(\DeclareMathOperator {\arctanh }{arctanh}\) \(\DeclareMathOperator {\arcsech }{arcsech}\) \(\DeclareMathOperator {\arccsch }{arcCsch}\) \(\DeclareMathOperator {\arccoth }{arcCoth}\) \(\def \re {\textup {Re}}\) \(\def \im {\textup {Im}}\) \(\newcommand {\up }{\uppi }\) \(\newcommand {\ut }{\uptheta }\) \(\newcommand {\uw }{\upomega }\) \(\newcommand {\uph }{\upphi }\) \(\newcommand {\uvph }{\upvarphi }\) \(\polylongdiv \)

Chapter 8 Background Mathematics

Try as you may you just can’t get away from Mathematics

That’s Mathematics by Tom Lehrer

8.1 Background and References

As this is a maths module there is a lot of assumed background. This means that to understand the material in the module and to be able to solve the tutorial problems, you need to have a experience with a variety of mathematical techniques such as:

  • solving linear equation,

  • solving quadratic equations

  • using trigonometry,

  • knowning some simple functions.

These topics will be familiar to many of you. However, it may have been a while since some of you studied mathematics and I am aiming to briefly introduce any new mathematical topics when we need them. However, I also want to link to some extra resources where you can brush up on your maths beforehand.

A great resource is the website Pauls Online Math Notes. The website contains notes for a variety of mathematics courses including algebra and calculus. The most useful background materials are the Algebra and trigonometry review linked here and the preliminaries section of the algebra notes, linked here.

As the module goes on I may add more background resources or add some examples.

8.2 Polynomials and roots

One of the most common examples of a function that we will meet is a polynomial. These are functions wher ethe variable \(x\) is sent to a sum of powers of \(x\),

\begin{equation} p(x)=a_{n}x^{n}+a_{n-1}x^{n-1}\cdots +a_{1}x+a_{0}. \label {eq: polynomial} \end{equation}

If we plot a polynomial, e.g. produce the graph \((x,y=p(x))\), then the locations where the plot cuts the \(x\)-axis, where \(y=p(x)=0\), are called the zeros or roots. For a linear equation we solve it via rearrangement, see section 8.5. For a quadratic equation like

\begin{equation*} ax^{2}+bx+c=0, \end{equation*}

we solve it using the quadratic formula

\begin{equation} x=\frac {-b\pm \sqrt {b^{2}-4ac}}{2a}. \end{equation}

As an example consider the quadratic equation

\begin{equation*} 2x^{2}-4x-2=0. \end{equation*}

To apply the quadratic formula we compare this specific equation to the general quadratic equation above, and note that \(a=2,b=-4,c=-2\). The quadratic formula thus gives

\begin{align*} x &=\frac {4\pm \sqrt {4^{2}+4\times 2\times 2}}{4}\\ &=\frac {4\pm \sqrt {16+16}}{4}\\ &=1\pm \frac {\sqrt {32}}{4}\\ &=1\pm \frac {\sqrt {16}\sqrt {2}}{4}\\ &=1\pm \sqrt {2}. \end{align*} So the two roots are \(1+\sqrt {2}\), \(1-\sqrt {2}\).

Note that we can guess the roots by looking at the polynomial. A quadratic can always be written as

\begin{align*} a(x-\alpha )(x-\beta ) &=a\left (x^{2}-(\alpha +\beta )x+\alpha \beta \right )\\ &=ax^{2}-a\left (\alpha +\beta \right )+a\alpha \beta . \end{align*} So the product of the roots is related to the constant term, and the sum of the roots is related to the linear term. This means that we can guess one of the roots by looking at the factors of the constant term. For quadratics we do not need to do this, but with higher order equations this is very useful.

For higher order polynomials we do not have a formula to find the solutions1 In this case we use the higher order versions of the above identity that the constant term in the polynomial is related to the product of the roots. We can then use a technique like polynomial long division to reduce the order of the equation.

Consider the equation

\begin{equation*} x^{3}+x^{2}-x-1=0 \end{equation*}

Since \((x-a)(x-b)(x-c)\) has a constant term \(-abc\) we see that the product of the three roots is \(1\). This means that we can guess that \(1\) is one of the roots. We can the perform polynomial long division to find that

\begin{equation*} \polylongdiv {x^3+x^2-x-1}{x-1} \end{equation*}

This means that we can rewrite

\begin{equation*} x^{3}+x^{2}-x-1=(x-1)(x^{2}+2x+1), \end{equation*}

and then we can either factorise the quadratic directly or use the quadratic formula. Note that we culd also solve this case using polynomial long division by noting that the product of the roots is \(1\) so we can guess that \(-1\) is a repeated root and calculate

\begin{equation*} \polylongdiv {x^{2}+2x+1}{x+1} \end{equation*}

so we have that

\begin{equation*} x^{3}+x^{2}-x-1=(x-1)(x+1)^{2}. \end{equation*}

This style of apprach can be applied to any polynomial equation. There is a more complete description of polynomials and their roots given in Dawkins [2025b]

1 The exception is cubic equations. There is a cubic formula. However, it is fairly complicated and there is no point in trying to use it.

8.3 Trigonometry Primer

Since trigonometric functions come up a lot in this course a review of the basics is included here. If you are not familiar with it you can either check out the links suggested above or ask me to provide more background information.

Here we will only discuss trigonometry for right angled triangles, but in the main content of the module we will deal with general trig functions. Trigonometry is an area of mathematics related to the study of triangles and provides a way to compute the lengths and angles in a triangle provided that you now some of them already.

(-tikz- diagram)

Figure 8.1: A right angle triangle with all the angles and sides marked.

The typical mnemonic used to remember trigonometry is SOH CAH TOA which means Sine is opposite over hypotenuse

\begin{equation*} \sin \uptheta =\frac {c}{a}, \qquad \sin \upphi =\frac {b}{a}, \end{equation*}

Cosine is adjacent divided by hypotenuse

\begin{equation*} \cos \uptheta =\frac {b}{a}, \qquad \cos \upphi =\frac {c}{a}, \end{equation*}

and Tangent is opposite divided by adjacent

\begin{equation*} \tan \uptheta =\frac {c}{b}, \qquad \sin \upphi =\frac {b}{c}. \end{equation*}

There are associated inverse functions \(\arcsin ,\arccos ,\arctan \) which convert ratios of sides into angles. All of these functions are available on your calculator.

It is important to be careful with which units you are using to express angles. It is likely that you will have come across degrees where going around a full circle is represented by an angle of \(360^{\circ }\). However, it is often convenient to work with a different measure of angles called radians, in this case we take a full circle to be \(2\uppi \text {rad}\) and express angles as a number between \(0\) and \(2\uppi \). In this module you need to work in radians as otherwise the derivative expressions for trig functions will become more complicated. If you are unfamiliar with radians have a look at the next section which explains more about them and how to convert between degrees and radians.

8.4 Radians and Degrees

To work with trig functions we need to know how to describe angles, eg how round in a circle we have gone. Often when working with circles we do not describe angles in terms of degrees but instead use units called radians. You are likely to be familiar with describing angles in a degrees where a full rotation is \(360^{\circ }\) and a half rotation is \(180^{\circ }\). Radians are an alternative, and some would say “better” method of measuring angles, the certainly simplify some computations, though they can seem confusing when we first meet them.

The basic idea of radians is to work in terms of the distance around the circle that the angle corresponds to. For a circle with radius \(r\) the circumference is \(c=2\uppi r\), while an arc of the circle would have length s, shown in red in fig. 8.2. Radians are defined in terms of the length of arcs as

\begin{equation} \ut =\frac {s}{r}, \label {eq: definition of radians} \end{equation}

in other words, an angle measured in radians is the ratio of the distance travelled on an arc round the circle to the radius of the circle. This means that a full rotation \(360^{\circ }\) corresponds to \(2\uppi \) radians as in this case \(s=2\uppi r\), half a rotation or \(180^{\circ }\) then corresponds to \(\uppi \) radians.

(-tikz- diagram)

Figure 8.2: A circle of radius \(r\) showing how arc length around the circle corresponds to angles

More generally the conversion rule is that

\begin{equation*} \text {radians} = \frac {180^{\circ }}{\uppi }\times \text {degrees}. \end{equation*}

The main advantage of radians comes when differentiating and expanding functions as working in degrees requires extra terms to be included and greater care to be taken. While we will not be doing any differentiation in this module we will come across some expressions where we need to work in radians for the quoted expressions to be valid. When this happens we will include a warning so that it is clear where you need to be careful.

One way to motivate working in radians is to think of unwinding the circle to get a straight line, for a circle of radius \(r\) this length will be the circumference, if we divide this length by \(r\) we will have a line if length \(2\uppi \) and the angle in radians will be the distance travelled along this line. In other words, working in radians is a bit like converting from circular motion to linear motion.

(-tikz- diagram)

Figure 8.3: A circle of radius \(r\) showing how arc length around the circle corresponds to angles

As evidenced in figs. 8.2 and 8.3, it is common practice to use the Greek letter theta, \(\ut \), to denote an angle. Other Greek letters like phi, \(\upphi \) or \(\upvarphi \), and psi, \(\uppsi \), are sometimes used as well. It is worth spending some time familiarising yourself with these Greek letters so you do not think that they are just badly written English letters.

8.5 Rearranging Equations

A very important skill for solving mathematics problems, and finding the roots of functions, is to be able to rearrange equations. This is sometimes referred to as changing the subject of an equation. Newcastle University have a webpage, available here that goes through some examples of how to rearrange equations. The webpage also has some self test questions that you can look at if you want more practice. Some of the details are reviewed here, along with examples for the specific equations that we have been using in this module.

In the equation

\begin{equation*} x=5y+4z, \end{equation*}

\(x\) is called the subject, which is just a fancy way of saying that \(x\) is expressed in terms of the other variables. When we talk about rearranging an equation, we mean that we change the subject of the equation from \(x\) to another variable like \(y\) and \(z\). We do this by performing a variety of mathematical operations to both sides of the equation to swap some of the variables from one side to the other.

These operations can include: adding or subtracting a quantity from both sides, multiplying or dividing by a quantity, taking logarithms of or exponentiating both sides of the equation, raising both sides of the equation to any non-zero power.

  • Example 8.1. Returning to the above equation \(x=5y+4x\), we can rearrange it to make \(z\) the subject. Again, this means that we will perform mathematical operations on both sides of the equation to put it in the form \(z=\dots {}\) :

    \begin{align*} x&=5y+4z, \quad \text { first subtract $5y$ from both sides},\\ x-5y&=5y+4z-5y=4z, \quad \text {then divide both sides by 4},\\ \frac {x-5y}{4}&=\frac {4z}{4}=z. \end{align*} This gives us

    \begin{equation*} z=\frac {x-5y}{4}, \end{equation*}

    with \(z\) now the subject of the equation.

  • Example 8.2. As another example consider an equation from physics \(v=u+at\), which says that the if an object starts off with a velocity \(v\) and accelerates at a rate \(a\) then after time \(t\) its velocity will be \(v\). Here we go through this step by step what we do when solving for \(a\):

    \begin{align*} v&=u+at, \quad \text {subtract $u$ from both sides},\\ v-u&=u+at -u=at, \quad \text {divide both sides by $t$},\\ \frac {v-u}{t}&=\frac {at}{t}=a, \end{align*} which gives us

    \begin{equation*} a=\frac {v-u}{t}. \end{equation*}

  • Example 8.3. Another example is rearranging a different equation from physics,

    \begin{equation*} s=ut+\frac {1}{2}at^{2}, \end{equation*}

    to solve for either \(a\) or \(t\).

    To make \(a\) the subject we proceed as follows:

    \begin{align*} s&=ut+\frac {1}{2}at^{2}, \quad \text {subtract $ut$ from both sides},\\ s-ut&=ut+\frac {1}{2}at^{2}-ut=\frac {1}{2}at^{2}, \quad \text {multiply both sides by $2$},\\ 2\left (s-ut\right )&=2\left (\frac {1}{2}at^{2}\right )=at^{2}, \quad \text {divide both sides by $t^{2}$},\\ \frac {2\left (s-ut\right )}{t^{2}}&=\frac {at^{2}}{t^{2}}=a, \end{align*} thus the equation with \(a\) being the subject is

    \begin{equation*} a=\frac {2\left (s-ut\right )}{t^{2}}. \end{equation*}

    If instead we wanted \(t\) to be the subject then it is easier to put it in the form of a quadratic equation and then use the quadratic formula:

    \begin{align*} s&=ut+\frac {1}{2}at^{2}, \quad \text {subtract $s$ from both sides},\\ 0&=\frac {1}{2}at^{2}+ut-s,\quad \text {this is a qudratic equation for $t$ and is solved by}\\ t&=\frac {-u\pm \sqrt {u^{2}+2as}}{a}. \end{align*}

There are a few special cases where we do not need to use the quadratic formula that it is worth being aware of. If \(s=0\) then we have

\begin{align*} 0&=ut+\frac {1}{2}at^{2}, \quad \text {factor out the common factor},\\ 0&=t\left (u+\frac {1}{2}at\right ), \end{align*} This has two solutions \(t=0\), which is the start of the motion, and

\begin{align*} 0&=u+\frac {1}{2}at, \quad \text {subtract $u$ from both sides},\\ -u&=\frac {1}{2}at, \quad \text {multiply both sides by $2$},\\ -2u&=at, \quad \text {divide both sides by $a$},\\ -\frac {2u}{a}&=t. \end{align*} This case often appear when considering projectile motion and you want to calculate the total length of time that the projectile is in the air for.

The other common example is if \(u=0\), then:

\begin{align*} s&=\frac {1}{2}at^{2}, \quad \text {multiply both sides by $2$},\\ 2s&=at^{2}, \quad \text {divide both sides by $a$},\\ \frac {2s}{a}&=t^{2}, \quad \text {take the square root of both sides},\\ \sqrt {\frac {2s}{a}}&=t. \end{align*} In the last line we have dropped the \(\pm \) that should be in front of the square root since we do not consider negative time. However, if you were just solving a quadratic equation then you would have to remember to include that. Both of these special cases can also be found by direct substitution into the quadratic formula of \(s=0\) or \(u=0\) respectively.

  • Example 8.4. The final example is to rearrange an equation involving a square root,

    \begin{equation*} T=2\uppi \sqrt {\frac {l}{g}}. \end{equation*}

    If you are asked to make \(l\) the subject of this equation we proceed as follows:

    \begin{align*} T&=2\uppi \sqrt {\frac {l}{g}}, \quad \text {first divide both sides by $2\uppi $},\\ \frac {T}{2\uppi }&=\frac {2\uppi }{2\uppi }\sqrt {\frac {l}{g}}=\sqrt {\frac {l}{g}}, \quad \text {then square both sides of the equation},\\ \left (\frac {T}{2\uppi }\right )^{2}&=\left (\sqrt {\frac {l}{g}}\right )^{2}=\frac {l}{g}, \quad \text {now multiply both sides by $g$},\\ g\left (\frac {T}{2\uppi }\right )^{2}&=g\times \frac {l}{g}=l. \end{align*} This leaves us with

    \begin{equation*} l=g\left (\frac {T}{2\uppi }\right )^{2}=\frac {gT^{2}}{4\uppi ^{2}}. \end{equation*}

    This is the equation for a straight line \(y=mx+c\) where \(l\) plays the role of \(y\), the \(y\)-intercept \(c=0\), \(\left (\frac {T}{2\uppi }\right )^{2}\) plays the role of \(x\), and \(m=g\) is the gradient of the straight line. When analysing your data you would use plot your data and should observe a straight line whose gradient is \(g\).

    At the last step of this rearrangement we could instead make \(g\) the subject. To do this we proceed as follows:

    \begin{align*} \left (\frac {T}{2\uppi }\right )^{2}&=\left (\sqrt {\frac {l}{g}}\right )^{2}=\frac {l}{g}, \quad \text {now multiply both sides by $g$},\\ g\left (\frac {T}{2\uppi }\right )^{2}&=g\times \frac {l}{g}=l, \quad \text {divide both sides by }\left (\frac {T}{2\uppi }\right )^{2}, \\ g&=\frac {l}{\left (\frac {T}{2\uppi }\right )^{2}}=\frac {4\uppi ^{2} l}{T^{2}}. \end{align*}

If you want more examples there is a Transposition of Formulae workbook, designed by mathcentre, available here.