-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Essence of calculus: Taylor series (#346)
* Initial commit for taylor series lesson * Partial progress of rough draft of taylor series lesson * Rough draft progress * MVP first pass of taylor series * Apply suggestions from code review Co-authored-by: Grant Sanderson <[email protected]> * Pushing current changes, a couple things still to wrap up * Added images for comprehensive question and infinity and divergence section * Update broken link * Comment out TODO stubs * Comment out TODO stubs --------- Co-authored-by: Kurt Bruns <[email protected]> Co-authored-by: Grant Sanderson <[email protected]>
- Loading branch information
1 parent
b4ddb01
commit 35fd476
Showing
100 changed files
with
12,797 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
public/content/lessons/2017/taylor-series-geometric-view/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: Taylor series (geometric view) | ||
description: Taylor series are extremely useful in engineering and math, but what are they? This video shows why they're useful, and how to make sense of the formula. | ||
date: 2017-05-07 | ||
chapter: 15 | ||
video: 3d6DsjIBzJ4 | ||
source: _2017/eoc/chapter10.py | ||
credits: | ||
- Lesson by Grant Sanderson | ||
- Text adaptation by Kurt Bruns | ||
--- | ||
|
||
### Geometric View | ||
|
||
In the spirit of showing you just how connected the topics of calculus are, let me turn to a completely different way to understand this second order term geometrically. It's related to the fundamental theorem of calculus, which I talked about in chapters 1 and 8. | ||
|
||
Like we did in those videos, consider a function that gives the area under some graph between a fixed left point and a variable right point. What we're going to do is think about how to approximate this area function, not the function for the graph like we were doing before. Focusing on that area is what will make the second order term pop out. | ||
|
||
Remember, the fundamental theorem of calculus is that this graph itself represents the derivative of the area function, and as a reminder it's because a slight nudge dx to the right bound on the area gives a new bit of area approximately equal to the height of the graph times dx, in a way that's increasingly accurate for smaller choice of dx. | ||
|
||
So df over dx, the change in area divided by that nudge dx, approaches the height of the graph as dx approaches 0. | ||
|
||
But if you wanted to be more accurate about the change to the area given some change to x that isn't mean to approach 0, you would take into account this portion right here, which is approximately a triangle. | ||
|
||
Let's call the starting input a, and the nudged input above it x, so that this change is (x-a). | ||
|
||
The base of that little triangle is that change (x-a), and its height is the slope of the graph times (x-a). Since this graph is the derivative of the area function, that slope is the second derivative of the area function, evaluated at the input a. | ||
|
||
So the area of that triangle, ½ base times height, is one half times the second derivative of the area function, evaluated at a, multiplied by (x-a)2. | ||
|
||
And this is exactly what you see with Taylor polynomials. If you knew the various derivative information about the area function at the point a, you would approximate this area at x to be the area up to a, f(a), plus the area of this rectangle, which is the first derivative times (x-a), plus the area of this triangle, which is ½ (the second derivative) * (x - a)2. | ||
|
||
I like this, because even though it looks a bit messy all written out, each term has a clear meaning you can point to on the diagram. |
38 changes: 38 additions & 0 deletions
38
public/content/lessons/2017/taylor-series-geometric-view/patrons.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Ali Yahya | ||
CrypticSwarm | ||
Juan Benet | ||
YuJun | ||
Othman Alikhan | ||
Joseph John Cox | ||
Luc Ritchie | ||
Einar Wikheim Johansen | ||
Rish Kundalia | ||
Achille Brighton | ||
Kirk Werklund | ||
Ripta Pasay | ||
Felipe Diniz | ||
Chris | ||
Andy Petsch | ||
Teerapat Jirasirikul | ||
Otavio Good | ||
Karthik T | ||
Steve Muench | ||
Viesulas Sliupas | ||
Steffen Persch | ||
Brendan Shah | ||
Andrew Mcnab | ||
Matt Parlmer | ||
Naoki ParlmerOrai | ||
Dan Davison | ||
Jose Oscar Mur-Miranda | ||
Aidan Boneham | ||
Brent Kennedy | ||
Henry Reich | ||
Sean Bibby | ||
Paul Constantine | ||
Justin Clark | ||
Mohannad Elhamod | ||
Denis | ||
Ben Granger | ||
Jeffrey Herman | ||
Jacob Young |
270 changes: 270 additions & 0 deletions
270
public/content/lessons/2017/taylor-series/figures/alternative-example.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
108 changes: 108 additions & 0 deletions
108
...ssons/2017/taylor-series/figures/approximation-coeffecients-and-derivatives.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
163 changes: 163 additions & 0 deletions
163
...nt/lessons/2017/taylor-series/figures/cosine-and-second-order-approximation.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
231 changes: 231 additions & 0 deletions
231
...content/lessons/2017/taylor-series/figures/cosine-approximation-0-annotated.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
227 changes: 227 additions & 0 deletions
227
public/content/lessons/2017/taylor-series/figures/cosine-approximation-0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
229 changes: 229 additions & 0 deletions
229
...lessons/2017/taylor-series/figures/cosine-approximation-1-different-choices.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
230 changes: 230 additions & 0 deletions
230
...tent/lessons/2017/taylor-series/figures/cosine-approximation-1-tangent-line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
232 changes: 232 additions & 0 deletions
232
public/content/lessons/2017/taylor-series/figures/cosine-approximation-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
232 changes: 232 additions & 0 deletions
232
...content/lessons/2017/taylor-series/figures/cosine-approximation-2-curvature.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
243 changes: 243 additions & 0 deletions
243
...lessons/2017/taylor-series/figures/cosine-approximation-2-different-choices.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
234 changes: 234 additions & 0 deletions
234
public/content/lessons/2017/taylor-series/figures/cosine-approximation-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
244 changes: 244 additions & 0 deletions
244
public/content/lessons/2017/taylor-series/figures/cosine-approximation-3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
233 changes: 233 additions & 0 deletions
233
public/content/lessons/2017/taylor-series/figures/cosine-approximation-4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
216 changes: 216 additions & 0 deletions
216
public/content/lessons/2017/taylor-series/figures/cosine-approximation-at-pi-0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
225 changes: 225 additions & 0 deletions
225
public/content/lessons/2017/taylor-series/figures/cosine-approximation-at-pi-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
272 changes: 272 additions & 0 deletions
272
public/content/lessons/2017/taylor-series/figures/cosine-approximation-at-pi-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
242 changes: 242 additions & 0 deletions
242
...ntent/lessons/2017/taylor-series/figures/cosine-approximation-at-pi-general.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
141 changes: 141 additions & 0 deletions
141
...ontent/lessons/2017/taylor-series/figures/cosine-approximation-at-pi-math-0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
144 changes: 144 additions & 0 deletions
144
...ontent/lessons/2017/taylor-series/figures/cosine-approximation-at-pi-math-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
190 changes: 190 additions & 0 deletions
190
...ontent/lessons/2017/taylor-series/figures/cosine-approximation-at-pi-math-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
public/content/lessons/2017/taylor-series/figures/cosine-approximation-c-0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
public/content/lessons/2017/taylor-series/figures/cosine-approximation-c-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
public/content/lessons/2017/taylor-series/figures/cosine-approximation-c-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...2017/taylor-series/figures/cosine-approximation-c-3-derivative-goes-to-zero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...tent/lessons/2017/taylor-series/figures/cosine-approximation-c-3-derivative.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
public/content/lessons/2017/taylor-series/figures/cosine-approximation-c-3.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...tent/lessons/2017/taylor-series/figures/cosine-approximation-c-4-derivative.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
public/content/lessons/2017/taylor-series/figures/cosine-approximation-c-4.png
Oops, something went wrong.
Oops, something went wrong.