-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreference.tex
More file actions
2355 lines (1420 loc) · 75.6 KB
/
Copy pathreference.tex
File metadata and controls
2355 lines (1420 loc) · 75.6 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\documentclass[10pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[pdfpagelabels]{hyperref}
\usepackage{mathtools}
\usepackage{amsfonts}
\begin{document}
\pagenumbering{Alph}
\title{CAP Reference}
\author{\href{mailto:fox@tardis.ed.ac.uk}{fox@tardis.ed.ac.uk}}
\date{April 2016; edited May 2017}
\begin{titlepage}
\maketitle
\thispagestyle{empty}
\end{titlepage}
\renewcommand{\abstractname}{calculus and its applications}
\begin{abstract}
These are a bunch of revision notes I wrote while trying to learn the course. Due to reasons, I couldn't attend very many lectures or submit any homework. This basically resulted in me learning the course from scratch during the Easter break. I'm publishing these (unpolished) notes informally in case they help someone else -- good luck and godspeed.
You can find an up-to-date version of this file, its source, and intermediary LaTeX files here (I'm still learning LaTeX, this document is pretty ugly):
\noindent \url{https://github.com/compsoc-edinburgh/bi-cap}
A direct link to this rendered document can be found here:
\noindent \url{https://betterinformatics.com/static/year1/cap_reference.pdf}
If you have any corrections, please \href{mailto:fox@tardis.ed.ac.uk}{email me}, or poke me in IRC. I lurk in \href{http://imaginarynet.uk}{ImaginaryNet}\#compsoc.
\thispagestyle{empty}
\hypersetup{pageanchor=false} % disable the pageanchor for the abstract page
% as it breaks things *sadface
\end{abstract}
\newpage
\hypersetup{pageanchor=true}
\pagenumbering{arabic}
\tableofcontents
\chapter{review of algebra and limits}
1.1 and 1.2 are a review of Algebra. I skimmed these sections; the content here should be familiar to you by now.
\section{functions}
Domain and Range: the domain of a function is the set of values it is defined on. The range (co-domain) is the set of values that the domain maps to.
If a formula is a \emph{function}, there is only one defined value in the co-domain for each value of the domain -- that is to say, the mapping is one-to-one or many-to-one but not one-to-many (the vertical line test).
Know how piecewise functions are defined:
$$ f(x) =
\begin{cases}
1 - x & \quad \text{if } x \leq 1 \\
x^2 & \quad \text{if } x > 1 \\
\end{cases}
$$
Know about symmetry -- is $f(x)$ an even or odd function?
What does it mean for a function to be even: $f(x) = f(-x)$ or odd: $f(-x) = -f(x)$?
Increasing and decreasing functions: $\forall x_2 > x_1 \quad f(x_2) > f(x_1)$ represents an increasing function.
\emph{Recommended exercises: 1, 5, 9, 21, 33, 39, 45, 57.}
\section{general functions}
Function composition.
General Functions (polynomials, rational functions, power functions, trig functions).
Domain and Range in the context of composed functions.
If the domain of $f$ is $A$ and of $g$ is $B$ then the domain of $f + g$ is $A \cap B$, as is the domain of $fg$. Unsurprisingly, the domain of $f/g$ is not as straightforward.
Function composition $f(g(x))$ or $f \circ g$ and decomposition -- generating $f$ and $g$ from some complex $F(x)$:
$$
F(x) = (2x + x^2)^4
$$
So we can say
$$
F(x) = f \circ g
$$
Where
$$
\begin{cases}
f(x) = x^4 & \\
g(x) = 2x + x^2 &
\end{cases}
$$
This is quite a useful concept ($d(f \circ g)/dx$).
The Heaviside function is introduced as:
$$
H(t) =
\begin{cases}
0 & \quad \text{if } t < 0 \\
1 & \quad \text{if } t \geq 0 \\
\end{cases}
$$
\emph{ex: 1, 17, 19, 27, 39, 45, 47, 57, 59.}
\section{limits}
``Intuitive'' definition of a limit, and strict definition of a limit.
Suppose $f(x)$ is defined when $x$ is near the number $a$, i.e. $f(x)$ is defined over $(a - h, a) \cup (a, a + h)$ for some small number $h$. Then,
$$
\lim_{x \to a} f(x) = L
$$
Sometimes this is also expressed:
$$
f(x) \to L \quad \text{as} \quad x \to a
$$
This section also defines the one-sided limit, allowing us to consider it applied to the Heaviside function:
$$
\lim_{t \to 0^-} H(t) = 0 \qquad
\lim_{t \to 0^+} H(t) = 1
$$
Naturally, $t \to a^-$ refers to values below $a$ (left-hand limit) and $t \to a^+$ means look only to values above $a$ (right-hand limit).
The discussion of right- and left-handed limits leaves us to find that:
$$
\lim_{x \to a} f(x) = L \quad \iff \lim_{x \to a^-} f(x) = L \quad \text{and } \quad \lim_{x \to a^+} f(x) = L
$$
This definition helps define whether or not a limit exists.
\subsection{limit definition}
Let $f$ be a function defined on some open interval that contains the number $a$, except possibly at $a$ itself. Then,
$$
\lim_{x \to a} f(x) = L
$$
if for every number $\epsilon > 0$ there is a corresponding number $\delta > 0$ such that
$$
\text{if} \quad 0 < |x - a| < \delta \qquad \text{then} \qquad |f(x) - L| < \epsilon
$$
The precise definition of a limit is not on the syllabus (NE, except by extension).
\emph{ex: 1, 3, 9, 11, 15}
\section{calculating limits}
We now go on to calculate limits without plugging in values into a calculator or graphing functions.
\subsection{limit laws}
There are various limit laws that help us calculate limits. Those marked with an asterisk do not apply when $a = \pm \infty$:
We suppose that $c$ is a constant and the limits $\lim_{x \to a} f(x) \quad \text{and} \quad \lim_{x \to a} g(x)$ exist. Then
Sum Law:
$$
\lim_{x \to a} [ f(x) + g(x) ] = \lim_{x \to a} f(x) + \lim_{x \to a} g(x)
$$
Difference Law:
$$
\lim_{x \to a} [ f(x) - g(x) ] = \lim_{x \to a} f(x) - \lim_{x \to a} g(x)
$$
Constant Multiple Law:
$$
\lim_{x \to a} [ cf(x) ] = c \lim_{x \to a} f(x)
$$
Product Law:
$$
\lim_{x \to a} [ f(x) g(x) ] = \lim_{x \to a} f(x) * \lim_{x \to a} g(x)
$$
Quotient Law:
$$
\lim_{x \to a} \frac{f(x)}{g(x)} = \frac{\lim_{x \to a} f(x)}{\lim_{x \to a} g(x)} \quad \text{if } \lim_{x \to a} g(x) \ne 0
$$
Power Law:
$$
\lim_{x \to a} [ f(x) ]^n = [\lim_{x \to a} f(x)]^n \quad \text{where } n \text{ is a positive integer}
$$
Root Law:
$$
\lim_{x \to a} \sqrt[n]{f(x)} = \sqrt[n]{\lim_{x \to a} f(x)} \quad \text{where } n \text{ is a positive integer}
$$
Some special limits:
\begin{align*}
\lim_{x \to a} c &= c \\
\lim_{x \to a} x &= a \\
\lim_{x \to a} x^n &= a^n \quad \text{where } n \text{ is a positive integer*} \\
\lim_{x \to a} \sqrt[n]{x} &= \sqrt[n]{a} \quad \text{where } n \text{ is a positive integer*}
\end{align*}
You may be asked to use fundamental limit laws to derive some limit. These are the magic laws. You will notice here we have implied and go on to define the \emph{direct substitution property}, namely that if $f$ is a polynomial or rational function (or a trig function) and $a$ is in the domain of $f$, then:
$$
\lim_{x \to a} f(x) = f(a)
$$
We build on this later.
A short but helpful note allows us to compute limits of functions like:
$$
\lim_{x \to 1} \frac{x^2 - 1}{x - 1}
$$
We can substitute $g(x) = x + 1$, which is valid because $g(x)$ takes the same values as the given function, except at $x = 1$. Generally,
$$
\text{If } f(x) = g(x) \text{ when } x \ne a \text{, then } \lim_{x \to a} f(x) = \lim_{x \to a} g(x) \text{, provided the limit exists.}
$$
This point is emphasised in example 3, where
$$
f(x) =
\begin{cases}
x + 1 & \quad \text{if } x \ne 1 \\
\pi & \quad \text{if } x = 1
\end{cases}
$$
and you are asked to find $\lim_{x \to 1} f(x)$. Although $f(1)$ is clearly $\pi$, the limit is not $\pi$, but instead 2 (let $g(x) = x+1$)!
Example 5 in the textbook points to another handy trick (that was also mentioned in the last lecture of term, since it was in the mock!) which is handy in evaluating limits of functions with a irrational numerator,
$$
\lim_{t \to 0} \frac{\sqrt{t^2 + 9} - 3}{t^2}
$$
Since the denominator must not equal zero, we can't yet apply the quotient rule. However, we need to rationalise the numerator, which leads to a handy solution (hint: multiply by $\frac{\sqrt{t^2 + 9} + 3}{\sqrt{t^2 + 9} + 3}$) -- you should find the limit comes to $\frac{1}{6}$.
Next up, a reminder that you can calculate limits be considering the left- and right-hand limits. You can use this in evaluating the limit of $f(x) = |x|$, or to prove a limit does not exist (try evaluating $f(x) = \frac{|x|}{x}$).
If the left-hand and right-hand limits are not equal, the limit is undefined.
\subsection{limit relationships and squeeze thm}
If $f(x) \leq g(x)$ when $x$ is near $a$ (except possibly at $a$) and the limits of $f$ and $g$ both exist as $x$ approaches $a$, then
$$
\lim_{x \to a} f(x) \leq \lim_{x \to a} g(x)
$$
This result is not surprising, but is important in the Squeeze Thm, allowing us to calculate very difficult limits if we can choose specific functions that are near our target function.
If $f(x) \leq g(x) \leq h(x)$ when $x$ is near $a$ (except possibly at $a$) and
$$
\lim_{x \to a} f(x) = \lim_{x \to a} h(x) = L
$$
then
$$
\lim_{x \to a} g(x) = L
$$
The squeeze theorem is useful for evaluating the limits of functions that are difficult to evaluate by pure limit laws alone, for example
$$\lim_{x \to 0} x^2 \sin \frac{1}{x} $$
\subsection{q. 11}
$$
\lim_{x \to -2} \frac{x + 2}{x^3 + 8}
$$
This seems difficult at first, since the quotient rule cannot be applied.
However, recognising that $x^3 + 8 = (x+2)(x^2 - 2x + 4)$ allows the limit to be evaluated trivially.
So factorising rational functions is a key method in evaluating limits.
Question 27 asks you to find the differential of $x^3$ using limits (but we haven't covered this so it's kind of just shown).
\subsection{q. 37}
$$
\lim_{x \to 3} [2x + |x - 3|]
$$
This builds on the textbook's note of breaking up the limit, by letting $f(x) = 2x + |x - 3|$, so that we are evaluating $\lim_{x \to 3} f(x)$, where
$$
f(x) =
\begin{cases}
2x + (x - 3) = 3x - 3 & \quad \text{for } x \geq 3 \\
2x - (x - 3) = x + 3 & \quad \text{for } x < 3 \\
\end{cases}
$$
We can now evaluate the right and left limits.
Right:
$$
\lim_{x \to 3^+} [3x - 3] = 6
$$
Left:
$$
\lim_{x \to 3^-} [x + 3] = 6
$$
The limits agree so $\lim_{x \to 3} f(x) = 6$. We could also have split this limit up before evaluating each part:
$$
\lim_{x \to 3} 2x + \lim_{x \to 3} |x - 3|
$$
(and then proceeded as before). Question 39 is another of these, as is question 43.
\emph{ex: 1, 3, 9, 11, 19, 27, 37, 39, 43.}
\section{continuity}
We need to define continuity so that we can characterise functions that are continuous. So, $f$ is continuous at $a$ if
$$
\lim_{x \to a} f(x) = f(a)
$$
The textbook points out that the check on whether $f$ is continuous breaks down into these points:
\begin{enumerate}
\item $a$ is in the domain of $f$, so that $f(a)$ exists
\item $\lim_{x \to a} f(x)$ exists
\item $\lim_{x \to a} f(x) = f(a)$
\end{enumerate}
As in limits, we can define left- and right- handed continuity,
left (``continuous from the left''):
$$
\lim_{x \to a^-} f(x) = f(a)
$$
Right:
$$
\lim_{x \to a^+} f(x) = f(a)
$$
Functions can be continuous on some interval. To show this, you need to evaluate $\lim_{x \to a} f(x)$, showing that it is indeed $f(a)$. This has the annoyance that it looks like you've done nothing, so be careful that you don't break any rules about limits.
We get a Thm providing the Limit Law cases applied to continuous functions, and a restating of the Direct Substitution Property:
Let $f$ and $g$ be continuous at $a$, and $c$ be a constant. The following functions are also continuous:
\begin{itemize}
\item $f + g$
\item $f - g$
\item $cf$
\item $fg$
\item $\frac{f}{g}$ if $g(a) \ne 0$
\end{itemize}
You can prove these by using the subsequent limit laws, showing that (for example)
$$
\lim_{x \to a} [f(x) + g(x)] = \lim_{x \to a} f(x) + \lim_{x \to a} g(x) = f(a) + g(a)
$$
The Direct Subst. Prop has two parts:
\begin{enumerate}
\item Any polynomial is continuous on $\mathbb{R}$
\item Rational functions, root functions, and trig functions are all continuous on their own domain.
\end{enumerate}
You can prove (1) by proving that a sum of $g(x) = cx^m$ is continuous. (2) logically follows on, provided you except breaks in the domain of these functions.
We also get introduced to a new limit law.
The Apparating Limit Law:
$$
\lim_{x \to a} f(g(x)) = f(\lim_{x \to a} g(x))
$$
Also, another continuous function property following on from the apparating limit law:
If $g$ is continuous at $a$ and $f$ is continuous at $g(a)$, then the composite function $f \circ g$ given by $(f \circ g)(x) = f(g(x))$ is continuous at $a$.
The follow-up examples use these properties backwards to `decompose' compound functions.
Next up, the Intermediate Value Thm (IVT). Apparently, we are far too lowly students of mere calculus and the proof is way beyond what our meagre brains could even begin to comprehend. Nevertheless,
Suppose $f$ is continuous on $[a, b]$, and let $N$ be any number between $f(a)$ and $f(b)$, where $f(a) \ne f(b)$. Then $\exists c \in (a, b)$ such that $f(c) = N$.
Frankly, its annoying that the proof of this is so complex as the theorem itself is pretty intuitive, and if it weren't true that would kinda break everything (how many times have you had to find $x$ such that $f(x) = k$ for some $k$? -- the IVT guarantees that if $f$ is continuous, there will be (at least) a solution to this problem). The IVT can be abused to locate roots of polynomials (sign test).
\subsection{types of discontinuity}
We like to define different types of discontinuity:
\begin{enumerate}
\item \emph{removable discontinuity} (hole) -- $f(x)$ is not defined at a point.
\item \emph{jump discontinuity} -- $f(x)$ is defined to be a different value at a point, so $\lim_{x \to a} f(x) \ne f(a)$ at $a$.
\item \emph{infinite discontinuity} -- $f(x) \to \infty$ or $f(x) \to -\infty$.
\end{enumerate}
\subsection{q. 23}
I'm including this question in these notes because it illustrates a point of care when evaluating the domain of root functions.
\emph{Explain why the function $M(x)$ is continuous at every number in its domain, and state the domain of $M(x)$}
$$
M(x) = \sqrt{1 + \frac{1}{x}}
$$
$M(x)$ is a root function, and so by our previous definitions, will be continuous at all points on its domain. We can note that
$$
\lim_{x \to a} M(x) = M(a)
$$
which shows continuity for points in its domain. Now to define its domain. Clearly we must exclude $x = 0$, and we must ensure that $1 + \frac{1}{x} \geq 0$. However, the algebra to establish this leaves a point worth noting.
$$
1 + \frac{1}{x} \geq 0
$$
Since $x$ is here on the denominator, we need to introduce another $x$ to solve our problem. This however leads to there being more than one solution -- so we need to consider both and choose the one that fulfils our original restriction.
$$
\frac{x + 1}{x} \geq 0 \quad \text{or} \quad
\frac{x + 1}{x} \leq 0
$$
Yielding
$$
x \geq -1 \quad \text{or} \quad x \leq -1
$$
at which point it becomes clear that $x \leq 1$ is our solution, and thus the domain becomes $(-\infty, -1] \cup (0, \infty)$.
\emph{ex: 1, 3, 5, 7, 15, 19, 23, 31.}
\section{infinite limits and asymptotes}
Previously, we defined divergent limits as not existing. However, we can be more specific about \emph{how} a function diverges.
Specifically, we define $\infty$, meaning we can take values to be arbitrarily large.
So we can evaluate limits at infinity, which follows the same limit laws, minus a few. There are also some special limits that only apply when evaluating limits to infinity. The most important is the following:
The Infinite Reciprocal Law: (Let $n$ be a positive integer)
$$
\lim_{x \to \pm \infty} \frac{1}{x^n} = 0
$$
There are a few tricks that are outlined in the textbook, which help evaluate tricky limits involving ratios.
$$
\lim_{x \to \infty} \frac{3x^2 - x - 2}{5x^2 + 4x + 1}
$$
The trick is multiplying by $\frac{ \frac{1}{x^2} }{ \frac{1}{x^2} }$. This yields,
$$
\lim_{x \to \infty} \frac{3 - \frac{1}{x} - \frac{2}{x^2}}{5 + \frac{4}{x} + \frac{1}{x^2}}
$$
We can then apply the quotient limit law and use the fact that $\lim_{x \to \infty} \frac{1}{c} = 0$. This leaves us with the answer that the limit tends to $\frac{3}{5}$.
A horizontal asymptote is defined as being the line $y = L$, if either:
$$
\lim_{x \to \pm \infty} f(x) = L
$$
And a vertical asymptote is when $x$ approaches some constant $c$:
$$
\lim_{x \to c^{(\pm)}} f(x) = \pm \infty
$$
\emph{ex: 1, 3, 11, 13, 19, 23, 33, 41, 43.}
\section*{review}
\addcontentsline{toc}{section}{review}
Whew! That's the end of chapter 1. A few basic pointers to answer questions, about limits.
\begin{itemize}
\item When faced with a limit where you would like to apply the quotient rule, but can't because the denominator would be zero, consider factorising the numerator to see if things cancel. Often they will.
\item If you have a rational function on the numerator, consider the results of multiplying by its conjugate.
\item When evaluating limits to infinity, if the numerator and denominator are polynomials in $x$, divide through by the largest power of $x$ to remove non-constant terms.
\item Some tricky limits can be evaluated with help of the squeeze theorem.
\end{itemize}
Chapter 1 also talks a lot about functions. Since this is (mostly) review, I will skim over it, but remember the Intermediate Value Theorem and definitions of continuity (and asymptotes) -- as well as function composition.
% ------------------------ %
% ----END OF CHAPTER 1---- %
% ------------------------ %
% %
% %
% %
% (this amount of spacing %
% should be enough to %
% show up in your editor's %
% outline view) %
\chapter{derivatives}
% I wish I was writing this on OSX. Those keybindings doe, mmm.
% (of course, I mean emacs keybindings + OSX basic = gloriousness)
% y'all gotta live in the best of both worlds, install sublemacspro.
\section{derivatives}
We want to be able to find the tangent at a point on a line. The book shows the derivation of the following limit, which you have probably seen before.
The tangent line to $y = f(x)$ at the point $P(a, f(a))$ is the line through $P$ with slope
$$
f'(a) = m = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}
$$
(provided this limit exists).
If we let $h = x - a$, so that $x = a + h$, then
$$
f'(x) = m = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}
$$
(once again, provided this limit exists). This form of finding the slope of the tangent line is very commonly seen, and is the definition of the derivative, $f'(x)$.
So the derivative of a function is the slope of the tangent line to $y = f(x)$ at a point. Another interpretation of the derivative is the instantaneous rate of change of $f(x)$ with respect to $x$ -- the average rate of change of $y$ with respect to $x$ is:
$$
\frac{\Delta y}{\Delta x} = \frac{f(x_2) - f(x_1)}{x_2 - x_1}
$$
...and the instantaneous rate of change is:
$$
\lim_{x_2 \to x_1} \frac{f(x_2) - f(x_1)}{x_2 - x_1}
$$
Short but dense chapter.
\subsection{q. 1(i)(a)}
Since this is not shown in the textbook. We are asked to apply the first definition given to find the slope of $y = 4x -x^2$ at $(1, 3)$. We let $f(x) = y$ and apply the first definition:
$$
m = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}
$$
In this instance, we have $a$ and $f(a)$ as $1$ and $3$ respectively. Substituting all givens in, we get:
$$
m = \lim_{x \to 1} \frac{4x - x^2 - 3}{x - 1}
$$
Which we can then solve as normal (factorising allows us to cancel the $x - 1$ term).
\emph{ex: 1, 5, 9, 17, 35, 39, 49.}
\section{the derivative function}
Erm, we already said this, but just in case you weren't paying attention:
$$
f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}
$$
This is a function that can vary on $x$.
There are some alternate notations for this function:
$$
f'(x) = y' = \frac{dy}{dx} = \frac{df}{dx} = \frac{d}{dx}f(x) = Df(x) = D_x f(x)
$$
The notation $dy/dx$ is Leibniz notation, which comes from
$$
\frac{dy}{dx} = \lim_{\Delta x \to 0} \frac{\Delta y}{\Delta x}
$$
Also introduced is the notation for the derivative at a specific point:
$$
\left. \frac{dy}{dx} \right|_{x=a}
\quad \text{or} \quad
\left. \frac{dy}{dx} \right]_{x=a}
$$
A function $f$ is differentiable at $a$ if $f'(a)$ exists. It is differentiable on an open interval $(a, b)$ if it is differentiable at every number in this interval.
This fact leads to the fact that if $f$ is differentiable at $a$, then $f$ is continuous at $a$.
The converse is proved false by counterexample: namely $f(x) = |x|$ is continuous at 0, but not differentiable at 0.
$f(x)$ will not be differentiable at $a$ if:
\begin{itemize}
\item $f(x)$ has a `corner' in $a$.
\item $f(x)$ is discontinuous at $a$. This is the contrapositive of ``if $f$ is differentiable at $a$, then $f$ is continuous at $a$'' (from above).
\item $\lim_{x \to a} | f'(x) | = \infty $ (that is, $f(x)$ has a vertical tangent at $x = a$).
\end{itemize}
An example of the third case is $f(x) = \sqrt[3]{x}$. $f(x)$ is continuous there, and has no `corner', but is not differentiable (see q. 45)!
We can also find further derivatives of a function -- the second derivative, $f''$ is defined in Leibniz notation as
$$
\frac{d}{dx} (\frac{dy}{dx}) = \frac{d^2y}{dx}
$$
Generally the \emph{n-th} derivative of $f$ is expressed
$$
y^{(n)} = f^{(n)} (x) = \frac{d^n y}{dx^n}
$$
\subsection{q. 45(a)}
Let $f(x) = \sqrt[3]{x}$.
Using the fact that:
$$
f'(a) = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}
$$
Find $f'(a)$ when $a \ne 0$. So we are trying to find
$$
\lim_{x \to a} \frac{\sqrt[3]{x} - \sqrt[3]{a}}{x - a}
$$
With hints from IRC (let $u = x^{1/3}$ and $v = a^{1/3}$), then we have:
$$
\lim_{x \to a} \frac{u - v}{u^3 - v^3}
$$
Helpfully, the denominator is now a difference of cubes!
$$
\lim_{x \to a} \frac{u - v}{(u - v)(u^2 + uv + v^2)}
$$
We can then cancel and resubstitute:
$$
\lim_{x \to a} \frac{1}{x^{\frac{2}{3}} + x^{\frac{1}{3}}a^{\frac{1}{3}} + a^{\frac{2}{3}}}
$$
Which gives us
$$
\frac{1}{a^{\frac{2}{3}} + a^{\frac{2}{3}} + a^{\frac{2}{3}}}
$$
Tidying simply to
$$
\frac{1}{3a^{\frac{2}{3}}}
$$
\emph{ex: 1, 3, 11, 13, 25, 33, 39, 45.}
\pagebreak[4]
\section{basic differentiation formulae}
We get some basic differentiation formulae for basic functions, and some that expand of their respective limit laws (assume $c$ is a constant, and $f$ and $g$ are differentiable).
\begin{itemize}
\item The differential of a constant function, $f(x) = c$, is zero. In Leibniz notation, we say that $\frac{d}{dx} (c) = 0$
\item Power rule: $\frac{d}{dx} (x^n) = nx^{n - 1}$
\item Constant multiple rule: $\frac{d}{dx} [cf(x)] = c \frac{d}{dx} f(x)$
\item Sum Rule: $\frac{d}{dx}[f(x) + g(x)] = \frac{d}{dx} f(x) + \frac{d}{dx} g(x)$
\item Difference Rule: $\frac{d}{dx}[f(x) - g(x)] = \frac{d}{dx} f(x) - \frac{d}{dx} g(x)$
\end{itemize}
The proofs of these are in the textbook, but are recommended for you to try yourself (hint: $f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}$).
We also get the proofs that $\frac{d}{dx} \sin x = \cos x$ and $\frac{d}{dx} \cos x = - \sin x$.
At this point the textbook has a quick tangent (can you believe I've only just brought up that pun -- such restraint, no?) to talk about rates of change of displacement over time. The gist of it is this:
If $s(t)$ is the displacement of a particle with respect to time, then $v(t) = \frac{d}{dt} s(t)$ and represents the velocity of the particle, and $a(t) = \frac{d}{dt} v(t)$ represents the acceleration.
\emph{ex: 5, 9, 17, 21, 25, 27, 33, 43, 49, 55.}
\section{product and quotient rules}
This chapter introduces, proves, and demonstrates another two extremely commonly used differentiation rules (let $f$ and $g$ be differentiable):
\begin{itemize}
\item Product Rule: $\frac{d}{dx}[f(x)g(x)] = f(x) \frac{d}{dx} g(x) + g(x) \frac{d}{dx} f(x)$
\item Quotient Rule: $(\frac{f}{g})' = \frac{gf' - fg'}{g^2}$
\end{itemize}
(The Leibniz notation for the quotient rule is really messy, so I'm leaving it in prime notation).
We also get another trig identity from the quotient rule: $\frac{d}{dx} \tan x = \sec^2 x$.
This allows us to construct a table of derivatives of trig functions, but for eye-scanning purposes, I'll include it after the next chapter.
\emph{ex: 7, 13, 21, 31(a), 43, 49, 53, 55.}
\section{chain rule}
If $f$ and $g$ are both differentiable and $F = f \circ g$, then $F$ is differentiable and $F'$ is given by (let $y = f(u)$ and $u = g(x)$)
\begin{itemize}
\item Chain Rule: $F'(x) = f'(g(x)) * g'(x)$
\item Chain Rule: $\frac{dy}{dx} = \frac{dy}{du} \frac{du}{dx}$
\end{itemize}
It is worth noting that the chain rule combines nicely with the power rule when evaluating certain derivatives, and gives ($n \in \mathbb{R}$, $u = g(x)$ and $\exists u'$):
$$
\frac{d}{dx}(u^n) = nu^{n-1} \frac{du}{dx}
$$
\subsection{a bunch of trig identities}
The book `suggests' you memorise these:
$$
\frac{d}{dx}(\sin x) = \cos x
$$
$$
\frac{d}{dx}(\cos x) = - \sin x
$$
$$
\frac{d}{dx}(\tan x) = \sec^2 x
$$
$$
\frac{d}{dx}(\csc x) = -\csc x \cot x
$$
$$
\frac{d}{dx}(\sec x) = \sec x \tan x
$$
$$
\frac{d}{dx}(\cot x) = - \csc^2 x
$$
Unsurprisingly, these are easily shown using the differentiation rules, and the counterpart $\sin$ and $\cos$ derivatives.
\subsection*{2.4.1 q. 55(a)}
\addcontentsline{toc}{subsection}{[ 2.4.1 q. 55(a) ]}
\emph{Prove that if $f$, $g$, and $h$ are differentiable, then $(fgh)' = f'gh + fg'h + fgh'$}.
The `trick' is to let $F = fg$, then we are trying to find $(Fh)'$ -- a considerably easier task (product rule):
$$
(Fh)' = Fh' + hF'
$$
And use the product rule again to find $F'$:
$$
F' = (fg)' = fg' + gf'
$$
So we have our given, namely:
$$
(fgh)' = (fg)h' + h(fg' + gf')
$$
\emph{ex (2.5): 9, 13, 35, 41, 51, 57, 63, 65, 69.}
\section{implicit differentiation}
(This section is not core, but is still examinable).
Some functions are defined explicitly -- one variable in terms of another (think $y = 3x$), but others are not defined in this way (think $x^2 + y^2 = 25$). Although it may be possible to solve these implicit functions to make them explicit, the implicit functions may often be far too complicated to wrangle.
The principle of implicit differentiation is best illustrated in an example -- we will find $\frac{dy}{dx}$ given $x^2 + y^2 = 25$:
$$
\frac{d}{dx}(x^2 + y^2) = \frac{d}{dx}(25)
$$
$\frac{d}{dx} c = 0$ if $c$ is a constant.
$$
\frac{d}{dx}(x^2) + \frac{d}{dx}(y^2) = 0
$$
We now apply the chain rule -- remembering that $\frac{d}{dx} y^2 = \frac{d}{dy} y^2 \frac{dy}{dx} = 2y \frac{dy}{dx}$ (in ratio terms, we expand a cancelling $dy$). So we have
$$
2x + 2y \frac{dy}{dx} = 0
$$
Which we can easily solve for $\frac{dy}{dx} = -\frac{x}{y}$.
There aren't any definitions or theorems in this chapter.
\emph{ex: 1, 3, 9, 19}
\section{not covered}
\emph{This section on related rates is not part of the course.}
\section{linear approximations and differentials}
Sometimes, we desire to approximate curves to a tangent line that touches the curve at a specific point, $a$. This is known as linear approximation and takes the form:
$$
f(x) \approx L(x) = f(a) + f'(a)(x - a)
$$
Where $L(x)$ is referred to as the linearisation of $f$ at $a$. This follows point-slope form of a line, namely
$$
y = y_1 + m(x - x_1)
$$
We use it to approximate points near $a$, where these points are impossible (or too expensive) to calculate.
This section builds on the idea of $dx$ being an independent variable, such that
$$
dy = f'(x) dx
$$
Clearly, $dy$ is dependent, and we can choose values for $x$ in the domain of $f$, and any real number for $dx$, allowing us to determine $dy$. Remember, that $f'(x)$ is equivalent to the slope of a tangent line at $x$. A geometric interpretation explains these quantities: $dy$ represents the change in linearisation -- that is, the amount the tangent line increases or decreases.
Letting $dx = x - a$ so that $x = a + dx$, we get a new interpretation of the linear approximation (we substitute in $dy = f'(x)dx$ from above):
$$
f(a + dx) \approx f(a) + dy
$$
This interpretation is useful in allowing us to estimate error in approximate measures. See the textbook for an example of this.
\emph{ex: 1, 3, 9, 13, 15, 17, 21, 27, 29.}
\section*{review}
\addcontentsline{toc}{section}{review}
That brings us to the end of chapter 2. There isn't really too much to review here -- I would say that although not easy, differentiation is straightforward and you need to be able to apply and follow the rules.
One thing the study guide harps on that I haven't mentioned much in these notes is the \emph{notion} of the derivative -- that is to say it is rate of change. There are many, many real-world examples of this and the Newtonian mechanics section is all but one.
% ------------------------ %
% ----END OF CHAPTER 2---- %
% ------------------------ %
% %
% %
% %
% (this amount of spacing %
% should be enough to %
% show up in your editor's %
% outline view) %
\chapter{inverse functions}
\section{exponential functions}
We define exponential functions to be those that are of the form
$$
f(x) = a^x
$$
(where $a$ is a positive constant). In the case that $x \in \mathbb{Z}$, this function's value is quite obvious -- but how do we evaluate $f(\sqrt{2})$, say?
Since all irrational numbers can be expressed by an infinite string of decimal digits, there exists a rational number close to every irrational number. So we can define
$$
a^x = \lim_{r \to x} a^r \quad r \text{ rational}
$$
We now characterise $f(x)$ and provide its properties:
\noindent If $a > 0$ and $a \ne 1$, then $f(x) = a^x$ is continuous on $\mathbb{R}$ and has range $(0, \infty)$ -- $a^x > 0$ for all $x$.
If $a, b > 0$ and $x, y \in \mathbb{R}$, then
\begin{enumerate}
\item $a^{x + y} = a^x a^y$
\item $a^{x - y} = \frac{a^x}{a^y}$
\item $(a^x)^y = a^{xy}$
\item $(ab)^x = a^x b^x$
\end{enumerate}
These identities are likely familiar to you by now, but they can be proven using the limit laws and the above limit.
We can also find the limits of $f(x)$ at positive and negative infinity:
\begin{align*}
\text{If } a > 1 \text{, then} \quad & \lim_{x \to \infty} a^x = \infty \quad & \text{and} \quad \lim_{x \to -\infty} a^x = 0 \\
\text{If } 0 < a < 1 \text{, then} \quad & \lim_{x \to \infty} a^x = 0 \quad & \text{and} \quad \lim_{x \to -\infty} a^x = \infty \\
\end{align*}
Ok, next up we have the meaty topic of $e$.
$$
e = \lim_{x \to 0} (1 + x)^\frac{1}{x}
$$
$e$ is just a number, which happens to lie between 2 and 3, and follows the rules to infinity above.
\emph{ex: 1, 3, 9, 13, 17, 23, 25, 27.}
\section{inverse functions and logarithms}
Sometimes, we like to consider the inverse of a function -- instead of considering how $y$ varies as a function on $x$, you consider $x$ to be a function of $y$. If $y = f(x)$, then its inverse function, $f^{-1}$, would be denoted as $x = f^{-1}y$. In order to establish whether a function will posses an inverse, we need to consider how that function maps its input to its output.
Function $f$ is a one-to-one function if it never takes the same value twice; namely that,
$$
f(x_1) \ne f(x_2) \quad \text{whenever } x_1 \ne x_2
$$
Similarly to when we were testing to see whether $f$ was indeed a function, we can use a geometric approach to determine whether $f$ is one-to-one. This is the horizontal line test. A function is one-to-one iff no horizontal line intersects its graph more than once.
Only one-to-one functions posses inverses that are also functions.
Let $f$ be a one-to-one function with domain $A$ and range $B$. Then, $f^{-1}$ has domain $B$ and range $A$ and is defined by
$$
f^{-1}(y) = x \iff f(x) = y
$$
For any $y \in B$.
Unsurprisingly, $f^{-1}(f(x)) = x$ and $f(f^{-1}(x)) = x$, providing the domains match.
The graph of $f^{-1}$ is the graph of $f$ reflected about $y = x$. Thus it would seem logical that if $f$ is a one-to-one continuous function, then $f^{-1}$ is also continuous -- this is true and proved in the textbook. Furthermore, if $f$ is a one-to-one differentiable function with inverse $f^{-1}$, and $f'f^{-1}(a)) \ne 0$, then the inverse function is also differentiable at $a$ and
$$
(f^{-1})'(a) = \frac{1}{f'(f^{-1}(a))}
$$
In 3.1, we learned saw that exponential functions were either increasing or decreasing. This implies that they are one-to-one, meaning that they have an inverse function. We call this inverse the logarithmic function with base $a$, denoted $\log_a$. Using our definition of inverse function gives us that
$$
\log_a x = y \iff a^y = x
$$
From the laws of exponents, we have the following laws of logarithms ($x, y > 0$):
\begin{enumerate}
\item $log_a (xy) = log_a x + log_a y$
\item $log_a (\frac{x}{y}) = log_a x - log_a y$
\item $log_a x^r = rlog_a x$ ($r \in \mathbb{R}$)
\end{enumerate}
We also get some corresponding limits ($a > 1$):
\begin{enumerate}
\item $\lim_{x \to \infty} \log_a x = \infty$
\item $\lim_{x \to 0^+} \log_a x = -\infty$
\end{enumerate}
The corresponding logarithm for $f(x) = e^x$ is $f^{-1}(x) = \ln x$. $\ln x$ is the symbol that refers to $\log_e x$.
Finally, we get the change of base formula
$$
\log_a x = \frac{\ln x}{\ln a}
$$
\subsection{evaluating inverse functions}
Given a function $f$, finding $f^{-1}$ is trivial algebra by the following method:
\begin{enumerate}
\item Set $y = f(x)$
\item Solve for $x$ in terms of $y$
\item Switch $x$ and $y$
\end{enumerate}
\subsection{q. 17}
\emph{Given $g(x) = 3 + x + e^x$, find $g^{-1}(4)$.}
Here, finding $g^{-1}$ using `usual' methods is very difficult -- as is trying to find $x$ when $g(x) = 4$ algebraically; however, in these questions, often evaluating simple values for the function can yield the answer. Here $g(0)$ is seen to be 4, so $g^{-1}(4) = 0$.
\emph{ex: 3, 5, 7, 11, 17, 19, 23, 31, 35, 43, 59, 61, 69, 73.}
\section{derivatives of logarithmic and exponential functions}
We start this section by defining the derivative of a logarithmic function:
$$
\text{if } f(x) = log_a x \quad \text{then} \quad f'(x) = \frac{1}{x} log_a e
$$
From the change of base formula, we can express $f'(x)$ also as
$$
f'(x) = \frac{1}{x \ln a}
$$
Substituting $a = e$, this gives us the derivative of the special logarithm $\ln x$ (remember that $\ln e = 1$):
$$
\frac{d}{dx} (\ln x) = \frac{1}{x}
$$
This fact demonstrates why $e$ is such an important constant in calculus. It is also easily shown that
$$
\frac{d}{dx} (\ln |x|) = \frac{1}{x}
$$
as well.
At this point, we also get the proof of the Power Rule -- working on the point that implicit differentiation combined with taking the logarithm of your function is a powerful tool for evaluating complex functions.
We lead up to finding the differential of exponential functions, from the fact that logarithmic and exponential functions are inverse functions.
If $f(x) = a^x$ where $a > 0$, then
$$
f'(x) = a^x \ln a
$$