# Differentiation and integration¶

## Some rules for differentiation¶

Some simple rules are:

And some rules about dealing with differentiating functions, sums and products. For functions of \(x\), \(F(x)\) and \(L(x)\):

or

In general, the chain rule is very helpful.

## Note on partial differentiation¶

Suppose we have a function, \(F\), of two variables, \(x\) and \(y\).

We can differentiate the function \(F\) with respect to \(x\), \(\frac{\partial F}{\partial x}\). This means we differentiate \(F\) with respect to \(x\) and consider all other variables (i.e. \(y\)) to be fixed.

Similarly, we can obtain the partial derivative of \(F\) with respect to \(y\), \(\frac{\partial F}{\partial y}\).

There are now various second derivatives. We can differentiate with respect to \(x\) twice, \(\frac{\partial^2 F}{\partial x^2}\), differentiate with respect to \(y\) twice, \(\frac{\partial^2 F}{\partial y^2}\), or differentiate with respect to \(x\) and then differentiate with respect to \(y\), \(\frac{\partial^2 F}{\partial x \partial y}\). Doing the last steps in the opposite order gives \(\frac{\partial^2 F}{\partial y \partial x}\).

## Integration¶

Some important integrals. Note, the constant is omitted below, for brevity.

Integrating by parts: