spec / calculus.mdon commit [spec] clarify stationary points & chain rule (cc220a6)
   1# Differential calculus
   2
   3## Limits
   4
   5$$\lim_{x \rightarrow a}f(x)$$
   6
   7$L^-$ - limit from below
   8
   9$L^+$ - limit from above
  10
  11$\lim_{x \to a} f(x)$ - limit of a point  
  12
  13- Limit exists if $L^-=L^+$
  14- If limit exists, point does not.
  15
  16Limits can be solved using normal techniques (if div 0, factorise)
  17
  18## Limit theorems
  19
  201. For constant function $f(x)=k$, $\lim_{x \rightarrow a} f(x) = k$
  212. $\lim_{x \rightarrow a} (f(x) \pm g(x)) = F \pm G$
  223. $\lim_{x \rightarrow a} (f(x) \times g(x)) = F \times G$
  234. ${\lim_{x \rightarrow a} {f(x) \over g(x)}} = {F \over G}, G \ne 0$
  24
  25Corollary: $\lim_{x \rightarrow a} c \times f(x)=cF$ where $c=$ constant
  26
  27## Solving limits for $x\rightarrow\infty$
  28
  29Factorise so that all values of $x$ are in denominators.
  30
  31e.g.
  32
  33$$\lim_{x \rightarrow \infty}{{2x+3} \over {x-2}}={{2+{3 \over x}} \over {1-{2 \over x}}}={2 \over 1} = 2$$
  34
  35
  36## Continuous functions
  37
  38A function is continuous if $L^-=L^+=f(x)$ for all values of $x$.
  39
  40## Gradients of secants and tangents
  41
  42Secant (chord) - line joining two points on curve
  43
  44Tangent - line that intersects curve at one point
  45
  46given $P(x,y) \quad Q(x+\delta x, y + \delta y)$:
  47gradient of chord joining $P$ and $Q$ is ${m_{PQ}}={\operatorname{rise} \over \operatorname{run}} = {\delta y \over \delta x}$
  48
  49As $Q \rightarrow P, \delta x \rightarrow 0$. Chord becomes tangent (two infinitesimal points are equal).
  50
  51Can also be used with functions, where $h=\delta x$.
  52
  53## First principles derivative
  54
  55$$f^\prime(x) = \lim_{\delta x \rightarrow 0}{\delta y \over \delta x}={dy \over dx}$$
  56
  57$$m_{\operatorname{tangent}}=\lim_{h \rightarrow 0}f^\prime(x)$$
  58
  59
  60
  61$$m_{\operatorname{chord PQ}}=f^\prime(x)$$
  62
  63first principles derivative:
  64$${m_{\operatorname{tangent at P}} =\lim_{h \rightarrow 0}}{{f(x+h)-f(x)}\over h}$$
  65
  66## Gradient at a point
  67
  68Given point $P(a, b)$ and function $f(x)$, the gradient is $f^\prime(a)$
  69
  70
  71## Derivatives of $x^n$
  72
  73$${d(ax^n) \over dx}=anx^{n-1}$$
  74
  75If $x=$ constant, derivative is $0$
  76
  77If $y=ax^n$, derivative is $a\times nx^{n-1}$
  78
  79If $f(x)={1 \over x}=x^{-1}, \quad f^\prime(x)=-1x^{-2}={-1 \over x^2}$
  80
  81If $f(x)=^5\sqrt{x}=x^{1 \over 5}, \quad f^\prime(x)={1 \over 5}x^{-4/5}={1 \over 5 \times ^5\sqrt{x^4}}$
  82
  83If $f(x)=(x-b)^2, \quad f^\prime(x)=2(x-b)$
  84
  85$$f^\prime(x)=\lim_{h \rightarrow 0}{{f(x+h)-f(x)} \over h}$$
  86
  87## Derivatives of $u \pm v$
  88
  89$${dy \over dx}={du \over dx} \pm {dv \over dx}$$
  90where $u$ and $v$ are functions of $x$
  91
  92## Euler's number as a limit
  93
  94$$\lim_{h \rightarrow 0} {{e^h-1} \over h}=1$$
  95
  96## Chain rule for $(f\circ g)$
  97
  98If $f(x) = h(g(x)) = (h \circ g)(x)$:
  99
 100$$f^\prime(x) = h^\prime(g(x)) \cdot g^\prime(x)$$
 101
 102If $y=h(u)$ and $u=g(x)$:
 103
 104$${dy \over dx} = {dy \over du} \cdot {du \over dx}$$
 105$${d((ax+b)^n) \over dx} = {d(ax+b) \over dx} \cdot n \cdot (ax+b)^{n-1}$$
 106
 107Used with only one expression.
 108
 109e.g. $y=(x^2+5)^7$ - Cannot reasonably expand  
 110Let $u-x^2+5$ (inner expression)  
 111${du \over dx} = 2x$  
 112$y=u^7$  
 113${dy \over du} = 7u^6$  
 114
 115## Product rule for $y=uv$
 116
 117$${dy \over dx} = u{dv \over dx} + v{du \over dx}$$
 118
 119Surds can be left on denomintaors.
 120
 121## Quotient rule for $y={u \over v}$
 122
 123$${dy \over dx} = {{v{du \over dx} - u{dv \over dx}} \over v^2}$$
 124
 125If $f(x)={u(x) \over v(x)}$, then $f^\prime(x)={{v(x)u^\prime(x)-u(x)v^\prime(x)} \over [v(x)]^2}$
 126
 127If $y={u(x) \over v(x)}$, then derivative ${dy \over dx} = {{v{du \over dx} - u{dv \over dx}} \over v^2}$
 128
 129## Logarithms
 130
 131$$\log_b (x) = n \quad \operatorname{where} \hspace{0.5em} b^n=x$$
 132
 133Wikipedia:
 134
 135> the logarithm of a given number $x$ is the exponent to which another fixed number, the base $b$, must be raised, to produce that number $x$
 136
 137### Logarithmic identities
 138
 139$\log_b (xy)=\log_b x + \log_b y$  
 140$\log_b x^n = n \log_b x$  
 141$\log_b y^{x^n} = x^n \log_b y$
 142
 143### Index identities
 144
 145$b^{m+n}=b^m \cdot b^n$  
 146$(b^m)^n=b^{m \cdot n}$  
 147$(b \cdot c)^n = b^n \cdot c^n$  
 148${a^m \div a^n} = {a^{m-n}}$
 149
 150### $e$ as a logarithm
 151
 152$$\operatorname{if} y=e^x, \quad \operatorname{then} x=\log_e y$$
 153$$\ln x = \log_e x$$
 154
 155### Differentiating logarithms
 156$${d(\log_e x)\over dx} = x^{-1} = {1 \over x}$$
 157
 158## Derivative rules
 159
 160| $f(x)$ | $f^\prime(x)$ |xs
 161| ------ | ------------- |
 162| $\sin x$ | $\cos x$ |
 163| $\sin ax$ | $a\cos ax$ |
 164| $\cos x$ | $-\sin x$ |
 165| $\cos ax$ | $-a \sin ax$ |
 166| $\tan f(x)$ | $f^2(x) \sec^2f(x)$ |
 167| $e^x$ | $e^x$ |
 168| $e^{ax}$ | $ae^{ax}$ |
 169| $ax^{nx}$ | $an \cdot e^{nx}$ |
 170| $\log_e x$ | $1 \over x$ |
 171| $\log_e {ax}$ | $1 \over x$ |
 172| $\log_e f(x)$ | $f^\prime (x) \over f(x)$ |
 173| $\sin(f(x))$ | $f^\prime(x) \cdot \cos(f(x))$ |
 174| $\sin^{-1} x$ | $1 \over {\sqrt{1-x^2}}$ |
 175| $\cos^{-1} x$ | $-1 \over {sqrt{1-x^2}}$ |
 176| $\tan^{-1} x$ | $1 \over {1 + x^2}$ |
 177
 178<!-- $${d(ax^{nx}) \over dx} = an \cdot e^nx$$ -->
 179
 180Reciprocal derivatives:
 181
 182$${{dy \over dx} \over 1} = dx \over dy$$
 183
 184## Differentiating $x=f(y)$
 185
 186Find $dx \over dy$. Then $dx \over dy = {1 \over {dy \over dx}} \therefore {dy \over dx} = {1 \over {dx \over dy}}$.
 187
 188$${dy \over dx} = {1 \over {dx \over dy}}$$
 189
 190## Second derivative
 191
 192$$f(x) \implies f^\prime (x) \implies f^{\prime\prime}(x)$$
 193
 194$$\therefore y \implies {dy \over dx} \implies {d({dy \over dx}) \over dx} \implies {d^2 y \over dx^2}$$
 195
 196Order of polynomial $n$th derivative decrements each time the derivative is taken
 197
 198### Points of Inflection
 199
 200*Stationary point* - point of zero gradient (i.e. $f^\prime(x)=0$)  
 201*Point of inflection* - point of maximum $|$gradient$|$ (i.e.  $f^{\prime\prime} = 0$)
 202
 203- if $f^\prime (a) = 0$ and $f^{\prime\prime}(a) > 0$, then point $(a, f(a))$ is a local min (curve is concave up)
 204- if $f^\prime (a) = 0$ and $f^{\prime\prime} (a) < 0$, then point $(a, f(a))$ is local max (curve is concave down)
 205- if $f^{\prime\prime}(a) = 0$, then point $(a, f(a))$ is a point of inflection
 206- - if also $f^\prime(a)=0$, then it is a stationary point of inflection
 207
 208![](graphics/second-derivatives.png)
 209
 210## Antidifferentiation
 211
 212$$y={x^{n+1} \over n+1} + c$$
 213
 214## Integration
 215
 216$$\int f(x) dx = F(x) + c$$
 217
 218- area enclosed by curves
 219- $+c$ should be shown on each step without $\int$
 220
 221$$\int x^n = {x^{n+1} \over n+1} + c$$
 222
 223### Integral laws
 224
 225$\int f(x) + g(x) dx = \int f(x) dx + \int g(x) dx$  
 226$\int k f(x) dx = k \int f(x) dx$  
 227
 228| $f(x)$                          | $\int f(x) \cdot dx$         |
 229| ------------------------------- | ---------------------------- |
 230| $k$ (constant) | $kx + c$ |
 231| $x^n$ | ${1 \over {n+1}}x^{n+1} + c$ |
 232| $a x^{-n}$ | $a \cdot \log_e x + c$ |
 233| $e^{kx}$ | ${1 \over k} e^{kx} + c$ |
 234| $e^k$ | $e^kx + c$ |
 235| $\sin kx$ | $-{1 \over k} \cos (kx) + c$ |
 236| $\cos kx$ | ${1 \over k} \sin (kx) + c$ |
 237| ${f^\prime (x)} \over {f(x)}$ | $\log_e f(x) + c$ |
 238| $g^\prime(x)\cdot f^\prime(g(x)$ | $f(g(x))$ (chain rule)|
 239| $f(x) \cdot g(x)$ | $\int [f^\prime(x) \cdot g(x)] dx + \int [g^\prime(x) f(x)] dx$ |
 240| ${1 \over {ax+b}}$ | ${1 \over a} \log_e (ax+b) + c$ |
 241| $(ax+b)^n$ | ${1 \over {a(n+1)}}(ax+b)^{n-1} + c$ |
 242
 243## Applications of antidifferentiation
 244
 245- $x$-intercepts of $y=f(x)$ identify $x$-coordinates of stationary points on $y=F(x)$
 246- the nature of any stationary point of $y=F(x)$ is determined by the way the sign of the graph of $y=f(x)$ changes about its $x$-intercepts
 247- if $f(x)$ is a polynomial of degree $n$, then $F(x)$ has degree $n+1$
 248
 249To find stationary points of a function, substitute $x$ value of given point into derivative. Solve for ${dy \over dx}=0$. Integrate to find original function.
 250
 251## Rates
 252
 253### Related rates
 254
 255$${da \over db} \quad \text{change in } a \text{ with respect to } b$$
 256
 257#### Gradient at a point on parametric curve
 258
 259$${dy \over dx} = {{dy \over dt} \over {dx \over dt}} \> \vert \> {dx \over dt} \ne 0$$
 260
 261$${d^2 \over dx^2} = {d(y^\prime) \over dx} = {{dy^\prime \over dt} \over {dx \over dt}} \> \vert \> y^\prime = {dy \over dx}$$
 262
 263# Rational functions
 264
 265$$f(x) = {P(x) \over Q(x)} \quad \text{where } P, Q \text{ are polynomial functions}$$
 266
 267## Addition of ordinates
 268
 269- when two graphs have the same ordinate, $y$-coordinate is double the ordinate
 270- when two graphs have opposite ordinates, $y$-coordinate is 0 i.e. ($x$-intercept)
 271- when one of the ordinates is 0, the resulting ordinate is equal to the other ordinate
 272