-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLimitsAndDerivatives.Rmd
More file actions
2534 lines (1644 loc) · 44.2 KB
/
Copy pathLimitsAndDerivatives.Rmd
File metadata and controls
2534 lines (1644 loc) · 44.2 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
# Limits and Derivatives
## The Tangent and Velocity Problems
**Motivation: Why Limits Appear in Calculus**
Two of the most fundamental problems in calculus are:
1. **The Tangent Problem**
→ How do we find the slope of a curve at a single point?
2. **The Velocity Problem**
→ How do we define the velocity of an object at an exact instant in time?
Both problems involve trying to measure something at **a single point**, where no interval exists — and both naturally lead to the concept of a **limit**.
---
### The Tangent Problem
The word *tangent* comes from the Latin **tangens**, meaning *touching*. Informally, a tangent line is a line that:
- touches a curve at a point
- has the **same direction** as the curve at that point
But “touching” alone is not mathematically precise:
- A line can touch a curve but not match its direction
- A line can intersect a curve more than once and still behave like a tangent
So we need a **precise definition**.
<div class="definition">
A **secant line** is a line that intersects a curve at **two or more points**.
If:
- \( P \) is a fixed point on the curve
- \( Q \) is another point on the curve
Then the slope of the secant line \( PQ \) is:
\[
m_{PQ} = \frac{f(x) - f(a)}{x - a}.
\]
</div>
> **Key Idea:** A tangent line is the **limit of secant lines** as the second point approaches the first point.
Symbolically:
\[
\text{slope of tangent at } x=a
=
\lim_{x \to a} \frac{f(x)-f(a)}{x-a}.
\]
This is the foundational idea that leads directly to **derivatives**.
::: {.example}
Tangent to a Curve
**Problem**
Find the equation of the tangent line to the parabola
\[
y = x^2
\]
at the point \( P(1,1) \).
**Solution:**
Step 1: Use a nearby point \( Q(x, x^2) \)
Slope of secant line:
\[
m_{PQ} = \frac{x^2 - 1}{x - 1}
\]
Step 2: Take the limit
\[
m = \lim_{x \to 1} \frac{x^2 - 1}{x - 1}
\]
Factor:
\[
= \lim_{x \to 1} \frac{(x-1)(x+1)}{x-1}
= \lim_{x \to 1} (x+1) = 2
\]
Step 3: Use point-slope form
\[
y - 1 = 2(x - 1)
\]
:::
Geometrically, as point \( Q \) moves closer to point \( P \):
- secant lines rotate
- slopes stabilize
- the secant line approaches a single limiting line
That limiting line **is the tangent line**.
---
### Tangents from Experimental Data
Not all functions come from formulas — many come from **measured data**.
In this case:
- The graph is approximated from data points
- Secant slopes are computed between nearby points
- The tangent slope is estimated using nearby secants
- The tangent slope represents an **instantaneous rate of change**
::: {.example}
Tangent from a Table of Values
**Problem**
A function has the following values near \( x=1 \):
| \(x\) | \(f(x)\) |
|------|--------|
| 0.9 | 1.81 |
| 0.99 | 1.9801 |
| 1.01 | 2.0201 |
| 1.1 | 2.21 |
Estimate the slope of the tangent line at \( x=1 \).
**Solution**
Compute secant slopes:
Left side:
\[
m \approx \frac{1.9801 - 2}{0.99 - 1} = \frac{-0.0199}{-0.01} = 1.99
\]
Right side:
\[
m \approx \frac{2.0201 - 2}{1.01 - 1} = \frac{0.0201}{0.01} = 2.01
\]
Estimated tangent slope:
\[
m \approx 2
\]
:::
### The Velocity Problem
<div class="definition">
Average Velocity
Over a time interval \( [t_1, t_2] \):
\[
\text{Average velocity} =
\frac{\text{change in position}}{\text{change in time}}
=
\frac{s(t_2)-s(t_1)}{t_2-t_1}
\]
</div>
Velocity at a **single instant** cannot be computed directly because no time interval exists.
So we define it as a **limit**:
\[
v(t) = \lim_{h \to 0} \frac{s(t+h)-s(t)}{h}
\]
::: {.example}
Average vs Instantaneous Velocity
**Problem**
A particle moves according to:
\[
s(t) = t^2
\]
1. Find the average velocity on \( [2, 4] \)
2. Estimate the instantaneous velocity at \( t=2 \)
**Solution**
**1) Average velocity**
\[
v_{avg} = \frac{s(4)-s(2)}{4-2}
= \frac{16 - 4}{2} = 6
\]
**2) Instantaneous velocity**
\[
v(2) = \lim_{h \to 0} \frac{s(2+h)-s(2)}{h}
= \lim_{h \to 0} \frac{(2+h)^2 - 4}{h}
\]
\[
= \lim_{h \to 0} \frac{4 + 4h + h^2 - 4}{h}
= \lim_{h \to 0} \frac{4h + h^2}{h}
\]
\[
= \lim_{h \to 0} (4 + h) = 4
\]
**Final Answers:**
\[
\boxed{v_{avg} = 6}, \qquad \boxed{v(2) = 4}
\]
:::
---
### Connection Between Tangents and Velocity
These are actually the **same mathematical idea**:
| Interpretation | Meaning |
|------|--------|
| Tangent slope | Instantaneous rate of change |
| Velocity | Instantaneous rate of change of position |
| Secant slope | Average rate of change |
| Limit of secants | Derivative |
| Tangent slope | Derivative |
| Velocity | Derivative |
<div class="definition">
**Fundamental Unifying Formula**
\[
\lim_{h \to 0} \frac{f(a+h)-f(a)}{h}
\]
This represents:
- slope of tangent line
- instantaneous velocity
- instantaneous rate of change
- derivative
</div>
::: {.example}
Interpreting a Tangent Physically
**Problem**
The position of a vehicle is given by:
\[
s(t) = 3t^2 + 2t
\]
Find the slope of the tangent line at \( t=1 \) and interpret its meaning.
---
**Solution**
\[
v(1) = \lim_{h \to 0} \frac{s(1+h)-s(1)}{h}
\]
\[
s(1) = 5
\]
\[
s(1+h) = 3(1+h)^2 + 2(1+h) = 3(1 + 2h + h^2) + 2 + 2h
\]
\[
= 3 + 6h + 3h^2 + 2 + 2h = 5 + 8h + 3h^2
\]
\[
v(1) = \lim_{h \to 0} \frac{(5 + 8h + 3h^2) - 5}{h}
= \lim_{h \to 0} \frac{8h + 3h^2}{h}
\]
\[
= \lim_{h \to 0} (8 + 3h) = 8
\]
**Interpretation:**
At \( t=1 \), the vehicle’s instantaneous velocity is **8 units per second**.
:::
---
### Putting It All Together
> **Instantaneous change is the limit of average change.**
This single idea connects:
- tangents → slopes
- velocity → motion
- acceleration → changing velocity
- growth → population dynamics
- decay → radioactive processes
- learning curves → AI training
- finance → marginal change
- economics → marginal cost
- physics → kinematics
- data science → gradients
- machine learning → optimization
These problems lead directly to:
\[
\boxed{\text{Derivative} = \lim_{h \to 0} \frac{f(x+h)-f(x)}{h}}
\]
Which will become the central object of differential calculus.
### Conceptual Takeaways
- Tangents are **limits of secant lines**
- Velocity is the **limit of average velocities**
- Both problems are solved using **limits**
- Instantaneous change requires limiting processes
- Slopes represent **rates of change**
- Physical motion and geometry share the same mathematics
- Calculus begins when we formalize “approaching”
- The derivative unifies geometry and physics
- Data-based tangents are meaningful even without formulas
- Limits are not just abstract — they model real processes
#### Skills You Should Be Able To Do
- Explain what a tangent line represents
- Explain what instantaneous velocity means
- Distinguish secant vs tangent lines
- Compute slopes of secant lines
- Interpret slopes as rates of change
- Use difference quotients
- Take limits of difference quotients
- Connect physical motion to slope
- Understand limits as approximation processes
- Explain why single-point measurements require limits
- Interpret data-based tangent estimates
- Use point-slope form
- Build tangent line equations
- Compute average velocity
- Approximate instantaneous velocity
#### Problems
---
## The Limit of a Function
In the previous section, limits appeared naturally when studying:
- tangent lines
- instantaneous velocity
Now we study **limits themselves** as a fundamental concept in calculus, independent of geometry and motion. Limits describe how a function behaves **near a point**, not necessarily at the point.
---
### Intuitive Idea of a Limit
<div class="definition">
Let \( f(x) \) be defined near \( a \). We write:
\[
\lim_{x \to a} f(x) = L
\]
and say:
“The limit of \( f(x) \) as \( x \) approaches \( a \) is \( L \)”
if the values of \( f(x) \) can be made **arbitrarily close to \( L \)** by taking \( x \) sufficiently close to \( a \), **but not equal to \( a \)**.
</div>
<div class="note">
**Limits depend on behavior near a point, not the value at the point.**
- \( f(a) \) may be undefined
- \( f(a) \) may exist but differ from the limit
- the limit may exist even if the function is not defined at \( a \)
</div>
---
### Numerical Approach to Limits
We estimate limits using **tables of values**:
- choose values close to \( a \)
- approach from both sides
- observe stabilization
::: {.example}
Numerical Limit
**Problem**
Estimate:
\[
\lim_{x \to 2} (x^2 - 2x + 2)
\]
**Solution**
Evaluate near \( x=2 \):
| \(x\) | \(f(x)\) |
|------|--------|
| 1.9 | 3.71 |
| 1.99 | 3.9701 |
| 2.01 | 4.0301 |
| 2.1 | 4.31 |
Values approach **4**.
:::
Graphically:
- as \( x \to a \)
- the **y-values approach \( L \)**
even if:
- the point is missing
- the point is a hole
- the point has a different value
::: {.example}
Limit Exists but Function Value Is Different
**Problem**
Let:
\[
f(x)=
\begin{cases}
\frac{x-1}{x^2-1}, & x\neq 1 \\
2, & x=1
\end{cases}
\]
Find:
\[
\lim_{x \to 1} f(x)
\]
**Solution**
Factor:
\[
\frac{x-1}{(x-1)(x+1)}=\frac{1}{x+1}, \quad x\neq 1
\]
\[
\lim_{x \to 1} f(x) = \frac{1}{2}
\]
Even though \( f(1)=2 \):
\[
\lim_{x\to 1} f(x)=\frac{1}{2}.
\]
:::
---
### One-Sided Limits
Sometimes behavior differs depending on direction.
<div class="definition">
Left-hand limit: The values of $x$ get closer to $a$ from the left of $a$
\[
\lim_{x \to a^-} f(x)
\]
Right-hand limit: The values of $x$ get closer to $a$ from the right of $a$
\[
\lim_{x \to a^+} f(x)
\]
</div>
<div class="theorem">
**Fundamental Rule**
\[
\lim_{x \to a} f(x) = L
\quad \text{iff} \quad
\lim_{x \to a^-} f(x)=L \;\text{and}\; \lim_{x \to a^+} f(x)=L.
\]
</div>
::: {.example}
One-Sided Limits
**Problem**
Let:
\[
f(x)=
\begin{cases}
0, & x<0 \\
1, & x>0
\end{cases}
\]
Find:
\[
\lim_{x\to 0^-} f(x), \quad
\lim_{x\to 0^+} f(x), \quad
\lim_{x\to 0} f(x)
\]
**Solution**
\[
\lim_{x\to 0^-} f(x)=0
\]
\[
\lim_{x\to 0^+} f(x)=1
\]
Since they are not equal:
\[
\lim_{x\to 0} f(x)\ \text{does not exist}
\]
:::
---
### Infinite Limits
Sometimes values grow without bound.
\[
\lim_{x\to a} f(x)=\infty
\quad \text{or} \quad
\lim_{x\to a} f(x)=-\infty.
\]
These **do not mean the limit exists** — they describe divergence behavior.
::: {.example}
Infinite Limit
**Problem**
Evaluate:
\[
\lim_{x \to 0} \frac{1}{x^2}
\]
**Solution**
As \( x\to 0 \), \( x^2 \to 0^+ \), so:
\[
\frac{1}{x^2} \to \infty.
\]
Therefore,
\[
\lim_{x\to 0} \frac{1}{x^2}=\infty.
\]
:::
---
### Vertical Asymptotes
<div class="definition">
A line \( x=a \) is a **vertical asymptote** if:
\[
\lim_{x\to a} f(x)=\infty \quad \text{or} \quad -\infty
\]
(or one-sided versions)
</div>
::: {.example}
Vertical Asymptote
**Problem**
Find the vertical asymptote of:
\[
f(x)=\frac{2x}{x-3}
\]
**Solution**
Denominator \(=0\) at \( x=3 \).
Right side:
\[
x\to 3^+ \Rightarrow f(x)\to \infty
\]
Left side:
\[
x\to 3^- \Rightarrow f(x)\to -\infty
\]
\[
x=3 \text{ is a vertical asymptote}
\]
:::
Some functions never settle to a value.
::: {.example}
Limit Does Not Exist (Oscillation)
**Problem**
\[
\lim_{x\to 0} \sin\left(\frac{\pi}{x}\right)
\]
**Solution**
As \( x\to 0 \):
- function oscillates infinitely between \( -1 \) and \( 1 \)
- does not approach a single value
\[
\text{Limit does not exist}
\]
:::
---
### Putting It All Together
**A limit describes behavior near a point — not at the point.** Limits are about **tendency**, **approach**, **direction**, and **local structure**, not exact values.
#### Conceptual Takeaways
- Limits describe **local behavior**, not point values
- A function value and a limit are independent concepts
- Limits are about **approach**, not arrival
- Tables and graphs are approximations, not proofs
- Numerical methods can mislead (rounding errors, cancellation)
- One-sided limits detect directional behavior
- Limits fail if:
- oscillation occurs
- sides disagree
- divergence occurs
- Infinite limits describe **unbounded growth**, not numbers
- Vertical asymptotes are geometric expressions of infinite limits
- Limits unify algebra, geometry, physics, and data analysis
- Limits formalize the idea of “getting close”
#### Skills You Should Be Able To Do
- Distinguish limit value from function value
- Estimate limits numerically
- Estimate and interpret limits graphically
- Use correct limit notation
- Recognize non-existent limits
- Explain one-sided behavior/ limits
- Identify infinite limits and vertical asymptotes
- Understand asymptotic behavior
- Recognize oscillation and analyze oscillating functions
- Interpret discontinuities
- Analyze rational functions near singularities
- Distinguish removable vs non-removable discontinuities
- Interpret divergence
- Detect numerical instability
#### Problems
---
## Calculating Limits Using the Limit Laws
In earlier sections, limits were often **estimated numerically or graphically**. While useful for intuition, these methods can be unreliable. This section introduces **Limit Laws**, which provide **algebraic rules** for computing limits exactly and systematically.
These laws allow us to break complicated expressions into simpler pieces and compute limits using known limits.
---
### Limit Laws
Assume that
\[
\lim_{x \to a} f(x) \quad \text{and} \quad \lim_{x \to a} g(x)
\]
both exist, and that \( c \) is a constant.
<div class="definition">
**Algebraic Limit Laws**
1. **Sum Law**
\[
\lim_{x \to a}[f(x)+g(x)] = \lim_{x \to a} f(x) + \lim_{x \to a} g(x)
\]
2. **Difference Law**
\[
\lim_{x \to a}[f(x)-g(x)] = \lim_{x \to a} f(x) - \lim_{x \to a} g(x)
\]
3. **Constant Multiple Law**
\[
\lim_{x \to a}[c f(x)] = c \cdot \lim_{x \to a} f(x)
\]
4. **Product Law**
\[
\lim_{x \to a}[f(x)g(x)] = \lim_{x \to a} f(x)\cdot \lim_{x \to a} g(x)
\]
5. **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) \neq 0
\]
</div>
<div class="definition">
**Special Limits**
1. **Constants and Identity**
\[
\lim_{x \to a} c = c, \qquad \lim_{x \to a} x = a
\]
2. **Powers and Roots**
\[
\lim_{x \to a} x^n = a^n, \qquad
\lim_{x \to a} \sqrt[n]{x} = \sqrt[n]{a}
\]
3. **Power Law**
\[
\lim_{x \to a} [f(x)]^n = \left(\lim_{x \to a} f(x)\right)^n
\]
</div>
<div class="definition">
**Direct Substitution Property:** If \( f(x) \) is a **polynomial** or a **rational function** and \( a \) is in its domain, then:
\[
\lim_{x \to a} f(x) = f(a)
\]
</div>
> For continuous algebraic functions, limits can be found by direct substitution.
::: {.example}
Polynomial Limit
Evaluate the limit:
\[
\lim_{x \to 5} (2x^2 - 3x + 4)
\]
**Solution**
\[
= 2(5^2) - 3(5) + 4
\]
\[
= 50 - 15 + 4
\]
\[
= 39
\]
:::
::: {.example}
Rational Function
Evaluate the limit:
\[
\lim_{x \to -2} \frac{x^3 + 2x^2 - 1}{5 - 3x}
\]
**Solution**
\[
= \frac{(-2)^3 + 2(-2)^2 - 1}{5 - 3(-2)}
\]
\[
= \frac{-8 + 8 - 1}{5 + 6}
\]
\[
= \frac{-1}{11}
\]
:::
::: {.example}
Indeterminate Form \( \frac{0}{0} \)
Evaluate the limit:
\[
\lim_{x \to 1} \frac{x^2 - 1}{x - 1}
\]
**Solution**
**Step 1: Factor**
\[
= \frac{(x-1)(x+1)}{x-1}
\]
**Step 2: Cancel**
\[
= x+1
\]
**Step 3: Take limit**
\[
\lim_{x \to 1} (x+1) = 2
\]
:::
::: {.example}
Difference of Squares Structure
Evaluate the limit:
\[
\lim_{h \to 0} \frac{(3+h)^2 - 9}{h}
\]
**Solution**
**1. Expand numerator**
\[
= \frac{9 + 6h + h^2 - 9}{h}
\]
\[
= \frac{6h + h^2}{h}
\]
**2. Simplify**
\[
= 6 + h
\]
**3. Limit**
\[
\lim_{h \to 0} (6+h) = 6
\]
:::
::: {.example}
Rationalization
Evaluate the limit:
\[
\lim_{t \to 0} \frac{\sqrt{t+9} - 3}{t}
\]
**Solution**
**1. Multiply by conjugate:**
\[
\frac{\sqrt{t+9} - 3}{t} \cdot \frac{\sqrt{t+9} + 3}{\sqrt{t+9} + 3}
\]
\[
= \frac{(t+9)-9}{t(\sqrt{t+9}+3)}
\]
**2. Cancel \( t \):**
\[
= \frac{1}{\sqrt{t+9}+3}
\]
**3. Take limit:**
\[
= \frac{1}{3+3} = \frac{1}{6}
\]
:::
::: {.example}
Absolute Value
Evaluate the limit:
\[
\lim_{x \to 0} |x|
\]
**Solution**
**1. Right-hand:**
\[
\lim_{x \to 0^+} x = 0
\]
**2. Left-hand:**
\[
\lim_{x \to 0^-} (-x) = 0
\]