-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDifferentiationRules.Rmd
More file actions
3224 lines (2069 loc) · 53.2 KB
/
Copy pathDifferentiationRules.Rmd
File metadata and controls
3224 lines (2069 loc) · 53.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
# Differentiation Rules
## Derivatives of Polynomials and Exponential Functions
In this section, we learn how to differentiate:
- Constant functions
- Power functions
- Polynomials
- Exponential functions
These rules allow us to compute derivatives without using limits every time, making differentiation fast, systematic, and scalable.
<div class="theorem">
**Derivative of a Constant Function**
Let \( f(x) = c \), where \( c \) is a constant.
\[
\frac{d}{dx}(c) = 0
\]
The graph of \( y = c \) is a horizontal line, and horizontal lines have slope \( 0 \).
**Power Functions and the Power Rule**
A power function has the form:
\[
f(x) = x^n, \;\;\; \text{ for all } n
\]
</div>
::: {.example}
If
\[
f(x) = x^6,
\]
then
\[
f'(x) = 6x^5.
\]
:::
::: {.example}
If
\[
f(x) = \frac{1}{x^2} = x^{-2},
\]
then
\[
f'(x) = -2x^{-3} = -\frac{2}{x^3}
\]
:::
::: {.example}
If
\[
f(x) = \sqrt[3]{x^2} = x^{2/3},
\]
then
\[
f'(x) = \frac{2}{3}x^{-1/3}
\]
:::
For a function $f$, recall that
- **Tangent line**: slope = derivative \( f'(x) \)
- **Normal line**: perpendicular to tangent line
\[
m_{\text{normal}} = -\frac{1}{m_{\text{tangent}}}
\]
::: {.example}
Let \( y = x^{3/2} \). Find tangent and normal lines at \( (1,1) \).
**Solution:**
\[
y' = \frac{3}{2}x^{1/2}
\]
\[
y'(1) = \frac{3}{2}
\]
**Tangent line:**
\[
y - 1 = \frac{3}{2}(x - 1)
\]
**Normal line:**
\[
m = -\frac{2}{3}
\]
\[
y - 1 = -\frac{2}{3}(x - 1)
\]
:::
---
### New Derivatives from Old
<div class="theorem">
**Constant Multiple Rule**
\[
\frac{d}{dx}[c f(x)] = c f'(x)
\]
**Sum Rule**
\[
\frac{d}{dx}[f(x) + g(x)] = f'(x) + g'(x)
\]
**Difference Rule**
\[
\frac{d}{dx}[f(x) - g(x)] = f'(x) - g'(x)
\]
</div>
Because polynomials are sums of powers of \( x \), we combine:
- Power Rule
- Constant Multiple Rule
- Sum Rule
- Difference Rule
::: {.example}
If
\[
f(x) = x^4 - 6x^2 + 4,
\]
then
\[
f'(x) = 4x^3 - 12x.
\]
:::
Horizontal tangents occur where:
\[
f'(x) = 0.
\]
::: {.example}
Find where the tangent lines are horizontal for
\[
y = x^4 - 6x^2 + 4.
\]
**Solution:**
\[
y' = 4x^3 - 12x = 4x(x^2 - 3)
\]
Set equal to zero:
\[
x = 0, \ \pm \sqrt{3}
\]
These are the points where the tangent line is horizontal.
:::
If \( s(t) \) is position:
- Velocity:
\[
v(t) = s'(t)
\]
- Acceleration:
\[
a(t) = s''(t)
\]
::: {.example}
Let
\[
s(t) = 2t^3 - 5t^2 + 3t + 4.
\]
Then, we can find the velocity and acceleration by taking derivatives:
\[
v(t) = 6t^2 - 10t + 3,
\]
and
\[
a(t) = 12t - 10.
\]
:::
---
### Exponential Functions
<div class="theorem">
Let:
\[
f(x) = b^x.
\]
Then:
\[
f'(x) = f'(0)\, b^x
\]
</div>
So the derivative of an exponential function is **proportional to the function itself**.
We discussed the number $e$ in the previous chapter. It has the property that:
\[
\lim_{h \to 0} \frac{e^h - 1}{h} = 1
\]
<div class="definition">
The number $e$ is the number that satisfies
\[\lim_{h \to 0} \frac{e^h - 1}{h} = 1.\]
It is approximately 2.71828.
</div>
<div class="theorem">
\[
\frac{d}{dx}(e^x) = e^x
\]
</div>
This means:
> The function \( e^x \) is its **own derivative**.
::: {.example}
Exponential Functions
Let
\[
f(x) = e^x - x.
\]
Then
\[
f'(x) = e^x - 1
\]
\[
f''(x) = e^x
\]
:::
::: {.example}
Parallel Tangent Line
Find where the tangent to \( y = e^x \) is parallel to \( y = 2x \).
**Solution:**
Parallel means same slope. So, the slope of $e^x$ must be the same as the slope of $2x$:
\[
e^x = 2.
\]
Therefore,
\[
x = \ln 2.
\]
This is the point:
\[
(\ln 2, 2).
\]
:::
---
### Putting It All Together
Differentiation transforms functions into **rate-of-change functions**. With a small set of powerful rules, we can compute derivatives for entire families of functions efficiently and meaningfully.
> Differentiation is not just a technique — it is a language for describing change.
#### Conceptual Takeaways
- Derivatives measure rates of change
- Constants differentiate to zero
- Power functions follow a universal rule:
\( x^n \rightarrow nx^{n-1} \)
- Polynomials differentiate term-by-term
- Tangent lines use the derivative as slope
- Normal lines are perpendicular to tangents
- Motion problems are applications of derivatives:
- position → velocity → acceleration
- Exponential functions grow at rates proportional to their size
- \( e^x \) is unique because it equals its own derivative
- Derivatives connect:
- geometry (slopes)
- physics (motion)
- biology (growth)
- economics (rates)
- data science (change, trends, dynamics)
---
#### Skills You Should Be Able To Do
By the end of this section, you should be able to:
- Differentiate constant functions
- Apply the Power Rule for any real exponent
- Differentiate polynomials efficiently
- Find equations of tangent lines
- Find equations of normal lines
- Identify horizontal tangents
- Use derivatives in motion problems
- Apply sum, difference, and constant multiple rules
- Differentiate exponential functions
- Use \( \frac{d}{dx}(e^x) = e^x \)
- Solve slope-matching (parallel line) problems
- Interpret derivatives conceptually, not just computationally
- Connect derivatives to real-world meaning
---
#### Problems
## The Product and Quotient Rules
In this section, we learn how to differentiate new functions formed from old functions using:
- Multiplication → **Product Rule**
- Division → **Quotient Rule**
These rules extend differentiation beyond sums and powers, allowing us to handle realistic models involving interacting quantities.
---
### The Product Rule
It is **not true** that the derivative of a product is the product of the derivatives:
\[
(fg)' \neq f'g'
\]
Instead, differentiation of products requires a special rule.
<div class="theorem">
**Product Rule**
If \( f(x) \) and \( g(x) \) are differentiable, then:
\[
\frac{d}{dx}[f(x)g(x)] = f(x)g'(x) + g(x)f'(x)
\]
</div>
Using our prime notation,
\[
(fg)' = fg' + gf'
\]
> The derivative of a product is
> the **first function times the derivative of the second**
> plus
> the **second function times the derivative of the first**.
Geometrically, think of \( u \cdot v \) as the area of a rectangle. When both sides change, the total change in area comes from:
- Change in width
- Change in height
- Interaction between both changes
This naturally produces two main terms, explaining the structure of the Product Rule.
::: {.example}
Let
\[
f(x) = x e^x.
\]
Then
\[
f'(x) = x(e^x)' + e^x(x)' = x e^x + e^x.
\]
:::
::: {.example}
Higher Derivatives Example
Find the $n^{th}$ derivative of $f$ given
\[
f(x) = x e^x.
\]
**Solution:**
\[
f''(x) = (x+2)e^x
\]
\[
f^{(3)}(x) = (x+3)e^x
\]
**Pattern:**
\[
f^{(n)}(x) = (x+n)e^x
\]
:::
::: {.example}
Let
\[
f(t) = t\sqrt{a+bt}.
\]
Find the derivative of $f$.
**Solution:**
\begin{align*}
f'(t) &= u'v + v'u \\
& = t \cdot \frac{d}{dt}(\sqrt{a+bt}) + \sqrt{a+bt} \cdot \frac{d}{dt}(t)\\
& = t \cdot \frac{b}{2\sqrt{a+bt}} + \sqrt{a+bt}\\
& = \frac{bt + 2(a+bt)}{2\sqrt{a+bt}}.
\end{align*}
:::
> **Pedagogical insight:**
> Sometimes simplifying first is easier than applying the Product Rule immediately.
::: {.example}
Let \( f(x) = x\,t(x) \), and:
\[
t(4)=2, \quad t'(4)=3.
\]
Then:
\[
f'(x) = x t'(x) + t(x).
\]
So,
\[
f'(4) = 4(3) + 2 = 14.
\]
:::
---
### The Quotient Rule
<div class="definition">
If \( f(x) \) and \( g(x) \) are differentiable and \( g(x) \neq 0 \):
\[
\frac{d}{dx}\left(\frac{f(x)}{g(x)}\right)
=
\frac{g(x)f'(x) - f(x)g'(x)}{[g(x)]^2}
\]
</div>
Using our prime notation,
\[
\left(\frac{f}{g}\right)' = \frac{gf' - fg'}{g^2}
\]
> **Bottom × derivative of top
> minus
> top × derivative of bottom
> all over bottom squared**
::: {.example}
Let
\[
y = \frac{x^2 + x - 2}{x^3 + 6}.
\]
Then,
\[
y' = \frac{gf' - fg'}{g^2} =
\frac{(x^3+6)(2x+1) - (x^2+x-2)(3x^2)}{(x^3+6)^2}.
\]
:::
::: {.example}
Let
\[
y = \frac{e^x}{1+x^2}.
\]
Find the tangent line at $x = 1$.
**Solution:**
Differentiate:
\[
y' =
\frac{(1+x^2)e^x - e^x(2x)}{(1+x^2)^2}.
\]
At \( x=1 \):
\[
y'(1)=0.
\]
So the tangent line is **horizontal**.
Point:
\[
y(1) = \frac{e}{2}.
\]
So, the tangent line is
\[
y = \frac{e}{2}.
\]
:::
> Strategy Note:
> **Do not automatically use the Quotient Rule.**
Sometimes it is easier to simplify first:
\[
F(x)=\frac{3x^2+2x}{x} = 3x + 2x^{-1}.
\]
Then differentiate directly using the Power Rule.
<div class="note">
**Summary Table of Differentiation Rules**
\begin{align*}
\frac{d}{dx}(c) &= 0 \\
\frac{d}{dx}(x^n) &= nx^{n-1} \\
\frac{d}{dx}(e^x) &= e^x \\
(cf)' &= cf' \\
(f+g)' &= f'+g' \\
(f-g)' &= f'-g' \\
(fg)' &= fg'+gf' \\
\left(\frac{f}{g}\right)' &= \frac{gf'-fg'}{g^2}
\end{align*}
</div>
---
### Putting It All Together
The Product and Quotient Rules extend differentiation from simple functions to interacting systems and structured relationships.
They allow calculus to model:
- Growth with resistance
- Change with constraints
- Coupled systems
- Competing influences
- Physical interactions
- Economic tradeoffs
- Biological processes
- Machine learning gradients
> Differentiation is no longer just about curves — it becomes a language for systems, interactions, and structure.
#### Conceptual Takeaways
- Derivatives describe how quantities change together
- Products model interacting variables
- Quotients model rates, densities, efficiencies, and ratios
- Change in products involves two sources of variation
- Quotients introduce competition between growth rates
- Simplification is often more powerful than memorization
- Differentiation is structural, not mechanical
- Rules reflect how change propagates through systems
- Geometry, algebra, and physics interpretations are unified
- Real-world systems almost always require Product and Quotient Rules
---
#### Skills You Should Be Able To Do
By the end of this section, you should be able to:
- Apply the Product Rule correctly
- Apply the Quotient Rule correctly
- Recognize when **not** to use the Quotient Rule
- Simplify expressions before differentiating
- Compute higher-order derivatives of products
- Differentiate rational functions
- Find tangent lines using Product/Quotient Rules
- Combine Product Rule with Power Rule
- Combine Product Rule with Exponential Rule
- Interpret derivatives of products physically
- Interpret derivatives of quotients conceptually
- Identify growth vs competition dynamics
- Translate word models into derivative structure
- Recognize structural patterns in differentiation
- Solve mixed-rule problems efficiently
---
#### Problems
## Derivatives of Trigonometric Functions
All trigonometric functions are defined using **radians**, not degrees. When we write \( \sin x \), it means the sine of the angle whose **radian measure** is \( x \).
All trigonometric functions are:
- Continuous on their domains
- Smooth (infinitely differentiable where defined)
- Periodic
- Interpretable geometrically and physically
This allows us to meaningfully define and compute their derivatives.
A key limit in calculus is:
\[
\lim_{x \to 0} \frac{\sin x}{x} = 1
\]
This limit is geometrically justified using the unit circle and the Squeeze Theorem and forms the foundation for differentiating trigonometric functions. It leads directly to the derivative of sine and cosine.
<div class="theorem">
These formulas are **valid only when angles are measured in radians**.
\begin{align*}
\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 \\
\end{align*}
</div>
The minus signs occur with the **cofunctions**:
- cosine
- cosecant
- cotangent
::: {.example}
Product Rule with Trigonometric Function
Find the derivative of
\[
y = x^2 \sin x.
\]
**Solution:**
Differentiate:
\[
y' = u'v + v'u = x^2(\cos x) + \sin x(2x)
\]
:::
::: {.example}
Quotient Rule with Trigonometric Functions
Find the derivative of
\[
f(x) = \frac{\sec x}{1 + \tan x}.
\]
**Solution:**
Differentiate using the Quotient Rule:
\[
f'(x) = \frac{(1+\tan x)(\sec x \tan x) - \sec x(\sec^2 x)}{(1+\tan x)^2}
\]
Simplify using identities:
\[
\tan^2 x + 1 = \sec^2 x.
\]
Horizontal tangents occur when:
\[
\tan x = 1 \Rightarrow x = n\pi + \frac{\pi}{4}.
\]
:::
::: {.example}
Simple Harmonic Motion (Modeling Application)
Position function:
\[
s(t) = 4\cos t.
\]
Find the velocity and acceleration.
**Solution:**
Velocity:
\[
v(t) = -4\sin t.
\]
Acceleration:
\[
a(t) = -4\cos t.
\]
:::
Interpretation:
- Motion is periodic
- Speed is greatest at equilibrium
- Acceleration is greatest at endpoints
- The system oscillates between \( s = \pm 4 \)
- Period = \( 2\pi \)
This models simple harmonic motion, common in:
- springs
- vibrations
- waves
- circuits
- signal processing
- mechanical systems
::: {.example}
Higher Derivatives and Cycles
Find the $27^{th}$ derivative of \( f(x) = \cos x \).
**Solution:**
\[
f'(x) = -\sin x
\]
\[
f''(x) = -\cos x
\]
\[
f^{(3)}(x) = \sin x
\]
\[
f^{(4)}(x) = \cos x
\]
**Pattern:**
Derivatives cycle every 4 steps.
So:
\[
f^{(4k)}(x) = \cos x
\]
That means,
\begin{align*}
f^{(24)}(x) &= \cos x \\
f^{(25)}(x) &= -\sin x \\
f^{(26)}(x) &= -\cos x \\
f^{(27)}(x) &= \sin x \\
\end{align*}
:::
::: {.example}
Trigonometric Limits
Evaluate
\[
\lim_{x \to 0} \frac{\sin(7x)}{4x}
\]
**Solution:**
Rewrite:
\[
\lim_{x \to 0} \frac{\sin(7x)}{4x} = \frac{7}{4} \cdot \frac{\sin(7x)}{7x}
\]
Apply fundamental limit:
\[
\lim_{x \to 0} \frac{\sin(7x)}{4x} = \frac{7}{4}
\]
:::
::: {.example}
Evaluate
\[
\lim_{x \to 0} x \cot x.
\]
**Solution:**
Rewrite:
\begin{align*}
\lim_{x \to 0} x \cot x &= \frac{x\cos x}{\sin x}\\
&= \frac{\cos x}{\sin x/x}\\
&=1
\end{align*}
:::
Trigonometric derivatives reflect cyclic structure:
- sine ↔ cosine
- positive ↔ negative
- oscillation ↔ periodicity
- curvature ↔ acceleration
- slope ↔ motion
Differentiation preserves the wave nature of trigonometric functions.
---
### Putting It All Together
Derivatives of trigonometric functions transform geometry into motion.
They allow calculus to describe:
- Vibrations
- Waves
- Cycles
- Oscillations
- Rotations
- Energy transfer
- Signals
- Periodic systems
- Mechanical motion
- Biological rhythms
> Trigonometric differentiation is where calculus becomes the mathematics of motion and waves.
#### Conceptual Takeaways
- Trigonometric derivatives are rooted in geometry
- Radians are essential for correct differentiation
- Trig functions model periodic change
- Derivatives preserve oscillatory structure
- Motion, waves, and vibration use trig derivatives
- Cyclic derivative patterns reveal deep structure
- Limits connect geometry to algebra
- Differentiation reflects physical behavior
- Curvature, slope, and motion are unified concepts
- Trigonometry provides natural models for change
---
#### Skills You Should Be Able To Do
By the end of this section, you should be able to:
- Differentiate all six trigonometric functions
- Apply Product Rule with trig functions
- Apply Quotient Rule with trig functions
- Use trig identities to simplify derivatives
- Recognize derivative cycles
- Compute high-order trig derivatives
- Solve trig limit problems
- Apply the fundamental trig limit
- Identify horizontal tangents
- Analyze oscillatory motion
- Interpret velocity and acceleration
- Model periodic systems
- Connect derivatives to physical motion
- Use trig derivatives in real-world modeling
- Recognize structural patterns in trig calculus
---
#### Problems