update notes
[notes.git] / spec / calculus.md
index d1a981c4c51d172f6300f8f9f7d1c682bbf12979..503b19142d78c9fca9ee6258ce5f00dbd719e886 100644 (file)
@@ -8,7 +8,7 @@ $L^-$ - limit from below
 
 $L^+$ - limit from above
 
-$\lim_{x \to a} f(x)$ - limit of a point
+$\lim_{x \to a} f(x)$ - limit of a point  
 
 - Limit exists if $L^-=L^+$
 - If limit exists, point does not.
@@ -52,7 +52,7 @@ Can also be used with functions, where $h=\delta x$.
 
 ## First principles derivative
 
-$$\lim_{\delta x \rightarrow 0}{\delta y \over \delta x}={dy \over dx} = f^\prime(x)$$
+$$f^\prime(x) = \lim_{\delta x \rightarrow 0}{\delta y \over \delta x}={dy \over dx}$$
 
 $$m_{\operatorname{tangent}}=\lim_{h \rightarrow 0}f^\prime(x)$$
 
@@ -61,11 +61,51 @@ $$m_{\operatorname{tangent}}=\lim_{h \rightarrow 0}f^\prime(x)$$
 $$m_{\operatorname{chord PQ}}=f^\prime(x)$$
 
 first principles derivative:
-$${m_{\operatorname{tangent at P}} =\lim_{h \rigzhtarrow 0}}{{f(x+h)-f(x)}\over h}$$
+$${m_{\operatorname{tangent at P}} =\lim_{h \rightarrow 0}}{{f(x+h)-f(x)}\over h}$$
 
+## Gradient at a point
 
+Given point $P(a, b)$ and function $f(x)$, the gradient is $f^\prime(a)$
 
 
+## Derivatives of $x^n$
+
+For $f: \mathbb{R} \rightarrow \mathbb{R}$ where $f(x)=x^n, x \in \mathbb{N}$
+
+Derivative is $f^\prime(x) = nx^{n-1}$
+
+If $x=$ constant, derivative is $0$
+
+If $f(x)={1 \over x}=x^{-1}, \quad f^\prime(x)=-1x^{-2}={-1 \over x^2}$
+
+If $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}}$
+
+If $f(x)=(x-b)^2, \quad f^\prime(x)=2(x-b)$
+
+$$f^\prime(x)=\lim_{h \rightarrow 0}{{f(x+h)-f(x)} \over h}$$
+
 ## Euler's number as a limit
 
 $$\lim_{h \rightarrow 0} {{e^h-1} \over h}=1$$
+
+## Chain rule
+
+Leibniz notation:
+
+$${dy \over dx} = {dy \over du} \times {du \over dx}$$
+
+Function notation:
+
+$$(f\circ g)^\prime(x)=f^\prime(g(x))g^\prime(x),\quad \mathbb{where}\hspace{0.3em} (f\circ g)(x)=f(g(x))$$
+
+Used with only one expression.
+
+e.g. $y=(x^2+5)^7$ - Cannot reasonably expand  
+Let $u-x^2+5$ (inner expression)  
+${du \over dx} = 2x$  
+$y=u^7$  
+${dy \over du} = 7u^6$  
+
+
+$7u^6 \times$
+