6G5Z3001 \\ Mathematical Methods

Killian O'Brien

2014

Introduction

Teaching & Assessment

Analytical Methods \\ introduction

We will cover three main areas

Multi-variable calculus \\ the partial derivative

Definition of derivative of a function of a single variable (sec. 1.1)

Recall that for a function, \(f: \mathbb{R} \to \mathbb{R}\), of a single variable the derivative, \(f'(a)\), of \(f\) at a point \(a\) is defined by \[f'(a) = \lim_{x \to a} \frac{f(x) - f(a)}{x-a}.\]

An equivalent formulation of the definition, using alterntaive notation, is \[ \frac{df}{dx} = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h}. \]

Multi-variable calculus \\ the partial derivative

Defintion of partial derivative (for function of two-variables) (sec. 1.2)

Let \(f\) be a function of the two independent variables \(x\) and \(y\). The partial derivative, \(\frac{ \partial f}{\partial x}\), of \(f\) with respect to \(x\) is defined as \[ \frac{\partial f}{\partial x} = \lim_{\delta x \to 0} \frac{f(x + \delta x, y) - f(x,y)}{\delta x}. \]

Similarly we can define the partial derivative of \(f\) with respect to the other variable. The partial derivative, \(\frac{ \partial f}{\partial y}\), of \(f\) with respect to \(y\) is defined as \[ \frac{\partial f}{\partial y} = \lim_{\delta y \to 0} \frac{f(x , y+ \delta y) - f(x,y)}{\delta y}. \]

Multi-variable calculus \\ the partial derivative

Example 1.1 (sec. 1.2)

Consider the function \(f\) defined by \[f(x,y) = x^2 y.\] The partial derivatives are evaluated as follows, \[\begin{align} \frac{\partial f}{\partial x} &= \lim_{\delta x \to 0} \frac{f(x + \delta x, y) - f(x,y)}{\delta x} ,\\ &= \lim_{\delta x \to 0} \frac{\left ( x + \delta x \right )^2 y - x^2 y}{\delta x} ,\\ &= \lim_{\delta x \to 0} \frac{2x \delta x + (\delta x)^2}{\delta x} y ,\\ &= \lim_{\delta x \to 0} ( 2x + \delta x ) y ,\\ &= 2xy. \end{align} \] A similar calculation will show that \[ \frac{ \partial f}{\partial y} = x^2. \]

Multi-variable calculus \\ the partial derivative

In practice we make use of all the standard derivatives and properties of differentiation that we have from the one-variable case, along with the following principle:

when differentiating a multi-variable function, \(f\) say, with respect to the variable \(x\), we treat the other variables as if they were constants, so that \(f\) becomes a function of the single-variable \(x\), and then differentiate \(f\) using the standard one-variable differentiation techniques

Example 1.2

Consider the function \(f\) defined by \[ f(x,y) = x^2 y^3 \tan{(2x)} ,\] and find its partial derivative \(\frac{\partial f}{\partial x}\) and \(\frac{\partial f}{\partial y}\).

Checking your work

>> syms x y
>> diff(x^2*y^3*tan(2*x),x)

ans =
 
x^2*y^3*(2*tan(2*x)^2 + 2) + 2*x*y^3*tan(2*x)

Multi-variable calculus \\ the partial derivative

Alternative notation (pg. 2,3)

The derivatives \(\frac{\partial f}{\partial x}\) and \(\frac{\partial f}{\partial y}\) can also be written \(f_x\) and \(f_y\) respectively. Makes it easier to refer to values of the drivative, e.g. \[ f_x (0.1,4.5) \text{ as opposed to } \left. \frac{\partial f}{\partial x} \right |_{(x,y)=(0.1,4.5)} .\]

However the delta notation lends itself to seeing differentiation as an operator applied to a function, i.e. \[ \frac{\partial }{\partial x} \left ( \cos(xy) \right ) = -y\sin(xy).\]

Multi-variable calculus \\ the partial derivative

Graphical interpretation

Let \((x,y,z)\) be the usual Cartesian coordinate system for \(\mathbb{R}^3\). The equation z = f(x,y), defines a surface in \(\mathbb{R}^3\). For each pair \((a,b)\), the value of \(z=f(a,b)\) gives the height of the surface above or below (accordingly as \(z\) is positive or negative) the \((x,y)\)-plane. An example is shown in figure 1.1 (pg. 3) When evaluated at the point \((a,b)\), the partial derivatives, \[ \left. \frac{\partial f}{\partial x} \right |_{(x,y)=(a,b)}, \text{ and } \left. \frac{\partial f}{\partial y} \right |_{(x,y)=(a,b)}, \] give the gradient of the surface at the point \((a,b)\) in the \(x\) and \(y\) directions respectively.

Multi-variable calculus \\ the partial derivative

Learning about the Sage software is not a requirement of the course. I will use it mainly for showing examples in lectures and verifying calculations. However if you are interested in mathematics on the computer and in programming then you should definately explore it.