-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathderivative.tex
87 lines (73 loc) · 5.18 KB
/
derivative.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Differential calculus is all about finding the slope of a curve.
First, let's consider a normal case, finding the slope of a straight line.
We take in two points, and find the change in x and change in y ($\Delta x$ and $\Delta y$).
This can be written as $\frac{\Delta y}{\Delta x}$ or $\frac{\text{rise}}{\text{run}}$.
\begin{figure}[H]
\caption{Average Slope}
\includegraphics[scale=1]{download.png}
\end{figure}
The above diagram illustrates this process on a curve.
We pick two points on the line and find the average slope.
However, this process is clearly not very accurate.
Imagine that we move the two points closer and closer together.
The closer the points are, the more accurate the slope is for that section of the line, until both points are on top of each other, and we have a line that touches our curve at one point.
That is, we are finding instantaneous slope.
The derivative does that for the whole line, taking in a function and giving a new function that represents the slope.
For example, let's say we shoot a cannonball.
\begin{figure}[H]
\caption{Trajectory of cannonball}
\includegraphics[scale=1]{imgres.png}
\end{figure}
Here, the y-axis represents the height of the cannonball in meters and the x-axis indicates time in seconds.
Notice that at the beginning the slope is positive, until eventually the graph reaches its peak and the slope is zero, and then the graph starts going down and the slope becomes negative.
The derivative of this graph would then look something like this:
\begin{figure}[H]
\caption{Derivative of trajectory of cannonball}
\includegraphics[scale=0.8]{derivative.png}
\end{figure}
This is what is happening "behind the scenes" when we calculate derivatives.
However, it is important to note that, going back to the example of the cannonball, where the cannonball started does not affect the slope.
If the whole graph is shifted up or down, the slope stays the same (as long as the proportions are kept the same).
This, it turns out, is why we need to add the $c$ in a indefinite integral.
Derivatives and integrals are inverses of each other.
That is, they undo each other, like division undoes multiplication and subtraction undoes addition.
So, because when going from an integral back to a derivative there is some uncertainty which graph you are looking at (parallel lines, for instance, have the same slope, but they have different "heights"), you have to add the $c$ when solving an indefinite integral.
Below is a table with some solutions to various derivatives. Note that $c$ is a constant and $n$ is non-zero. Note that the $'$ symbol is pronounced prime, and is another way to write that we are taking the derivative.
\begin{tabular}{c|c}
$f(x)$ & $\frac{df}{dx} = f'$\\
\hline
$7$ & $0$ \\
$c$ & $0$ \\
$x$ & $1$ \\
$cx$ & $c$ \\
$x^2$ & $2x$ \\
$cx^2$ & $2cx$ \\
$x^3$ & $3x^2$ \\
$x^n$ & $nx^{n-1}$ \\
$\sin x$ & $\cos x$ \\
$\cos x$ & $-\sin x$ \\
$- \sin x$ & $- \cos x$ \\
$-\cos x$ & $\sin x$
\end{tabular}
Like integrals, derivatives are distributive over addition.
There are some interesting rules that make working with derivatives easier: the product rule, the quotient rule, and the chain rule.
Let's start with the chain rule.
If we have a function within a function in a derivative, like $\sin(\cos(x))$, we can assign a name to each function, like $g(x) = \cos(x)$ and $h(x) = \sin(x)$, and then follow this simple rule: $h'(g(x)) \cdot g'(x)$.
So what does this mean?
Well, let's plug it in.
Plugging this in gives $\sin'(\cos(x)) \cdot \cos'(x)$.
So the derivative of $\sin$ is $\cos$, so we write $\cos(\cos(x))$ for the first part, and the derivative of $\cos$ is $-\sin$, so we write $-\sin(x)$ for the second part.
So now we have $\cos(\cos(x)) \cdot -\sin(x)$.
This is the derivative of our original function.
Now, let's examine the product rule.
If we have two functions, $u(x)$ and $v(x)$, and we want to take the derivative of $u\cdot v$, then we can do $u \cdot \frac{dv}{dx}+ v\cdot\frac{du}{dx}$.
In other words, we multiply the first function by the derivative of the second function and then add the second function times the derivative of the first.
For example, if we have $\sin(x)\cdot\cos(x)$ we would do $u(x) = \sin(x)$ and $v(x) = \cos(x)$.
Then we would plug it in to our formula: $\sin(x)\cdot\frac{d}{dx}\cos(x) + \cos(x)\cdot\frac{d}{dx}\sin(x)$ which simplifies to $\sin\cdot -\sin(x) + \cos(x)\cdot\cos(x)$ or $-\sin^2(x)+\cos^2(x)$, which is our derivative of the original function.
Finally, the quotient rule.
If we have two functions, $g(x)$ and $h(x)$, and we wish to take the derivative of $\frac{g(x)}{h(x)}$, we can follow the rule $\frac{g'(x)h(x)-h'(x)g(x)}{[h(x)]^2}$.
While this may look rather complicated, it really isn't too bad.
Let's use the example of $g(x) = \sin(x)$ and $h(x) = \cos(x)$.
We plug it all in to get $\frac{\sin'(x)\cdot\cos(x) -\cos'(x)\cdot\sin(x)}{\cos^2(x)}$
which simplifies to $\frac{\cos(x)\cdot\cos(x)--\sin(x)\cdot\sin(x)}{\cos^2(x)} = \frac{\cos^2(x)+sin^2(x)}{\cos^2(x)} = \frac{1}{\cos(x)}$ (this top part simplifes due to the Pythagorean Identity).
So therefore, $\frac{1}{\cos(x)}$ is our derivative.