Python Instructional Video Series - Part 3
An example-based guide to using Python to solve math problems
- This part focuses on Calculus 2 examples, but it is useful for learning Python even if you are not taking Calculus.
- For each video, you can see the problem being solved, as well as the Python code used.
- You can also open the link to the Python Notebook file. You can click File>Download to download the notebook file to run on your own computer.
- Each video has a link to the full video page. These pages include links to related videos covering the same topics.
Three Part Series
This is part three of a three part Python video series and you should visit them in order.Python Series - Part 1
Python Series - Part 2
Concepts
- Finding area between curves
- Finding volumes of revolution
- Calculating work for springs and pumping liquid from a tank
- Generating and plotting sequences and partial sums of series
- Generating a recursive sequence
- Finding the radius and interval of convergence for a power series
- Plotting a function with partial sums of its power series
Calculus II
Areas Between Curves
Problem
Area under \(y=\frac{4}{3}\sqrt{9-x^2},\) above \(x\)-axis, and to the left of \(y=2x.\)Open Python Notebook File
Transcript 21
Full Video Page
Volumes of Revolution
Problem
Find the volume of the ellipsoid formed by rotating \(y=\frac{b}{a} \sqrt{a^2-x^2}\) about the \(x\)-axis.Open Python Notebook File
Transcript 22
Full Video Page
Work: Hooke’s Law
Problem
It takes 10 Joules of work to move a spring from a natural length of 10cm to a length of 15cm. How much work would it take to move the spring from a length of 15cm to a length of 20cm?Open Python Notebook File
Transcript 23
Full Video Page
Work: Pumping Liquid from a Tank
Problem
Find the work required to pump water from a 0.5m spout at the top of a tank 6m long whose ends are semicircles with radius 2m.Open Python Notebook File
Transcript 24
Full Video Page
Generating and Plotting Sequences
Problem
Suppose that\[\lim_{n\rightarrow\infty} a_n = n\sin\left(\frac{\pi}{n}\right)\]
- List the first 20 terms (numerical estimate)
- Plot the first 50 terms (graphical estimate)
- Find the exact limit
Open Python Notebook File
Transcript 25
Full Video Page
Generating and Plotting Partial Sums of a Series
Problem
Given the series\[\sum_{n=1}^\infty \frac{(-1)^{n+1}}{n^2}\]
a) Find and plot the first 20 partial sums.
b) Find the exact sum of the series.
Open Python Notebook File
Transcript 26
Full Video Page
For Loops and Recursive Sequences
Problem
Generate and print the first 50 Fibonacci numbers, a recursive sequence defined by\(a_1=1,\) \(a_2=2,\) and \(a_n=a_{n-1}+a_{n-2}.\)
Open Python Notebook File
Transcript 27
Full Video Page
Radius and Interval of Convergence
Problem
Find the radius and interval of convergence of\[\sum_{n=0}^\infty \frac{(-1)^n x^n}{ (n+2) 2^n}\]
Open Python Notebook File
Transcript 28
Full Video Page
Plotting a Function and Partial Sums of its Power Series
Problem
Plot \(f(x)=arctan(x)\) and the 3rd, 5th, and 10th partial sum of its powers series\[\sum_{n=0}^\infty \frac{(-1)^n x^{2n+1}}{ 2n+1}\]
Open Python Notebook File
Transcript 29
Full Video Page