18.01 Single Variable Calculus
Differentiation and integration of functions of one variable: limits, derivatives, applications, integrals, techniques of integration, and infinite series.
Based on MIT OpenCourseWare, Fall 2006 · Prof. David Jerison · Course on OCW
Lectures 31 of 35 with pages so far
Derivatives
- The derivative: slope of the tangent line and rate of change
The derivative of a function at a point is the slope of its tangent line there, found as the limit of the slopes of secant lines. Worked out from this definition, 1/x has derivative −1/x² and xⁿ has derivative nxⁿ⁻¹; read physically, the derivative is a rate of change, such as a velocity.
- Lecture 1 Rate of Change MIT ↗ (opens in a new tab)
- Limits and continuity
A derivative is a rate of change: average over an interval, instantaneous in the limit. Limits come in easy and hard kinds, and from the left or the right. A function is continuous where its limit equals its value; everywhere else it has a jump, removable, infinite or worse discontinuity. Two trigonometric limits and the theorem "differentiable implies continuous" prepare the rules of differentiation.
- Lecture 2 Limits MIT ↗ (opens in a new tab)
- Derivatives of sine and cosine, and the product and quotient rules
The derivative of sin x is cos x, and the derivative of cos x is −sin x. Both follow from the addition formulas and two limits at zero, which a picture of the unit circle explains: short pieces of curves are nearly straight. A second, purely geometric argument gives the same result, and only works with angles in radians. Two general rules, for products and quotients, multiply what we can differentiate.
- Lecture 3 Derivatives MIT ↗ (opens in a new tab)
- The chain rule and higher derivatives
Proofs of the product and quotient rules, which also extend the power rule to negative powers; the chain rule, which differentiates a function of a function by multiplying the two derivatives; and higher derivatives, with their notations, from u″ to dⁿu/dxⁿ, and the fact that the n-th derivative of xⁿ is n!.
- Lecture 4 Chain Rule MIT ↗ (opens in a new tab)
- Implicit differentiation and the derivatives of inverse functions
Implicit differentiation finds dy/dx from an equation that defines y only indirectly: differentiate the whole equation, using the chain rule on every y, then solve for y′. It extends the power rule to fractional powers, gives slopes on curves like a circle without solving for y, and gives the derivatives of inverse functions: d/dx arctan x = 1/(1 + x²) and d/dx arcsin x = 1/√(1 − x²).
- Lecture 5 Implicit Differentiation MIT ↗ (opens in a new tab)
- Exponentials and logarithms: the number e and its derivatives
The derivative of aˣ is aˣ times a mystery number M(a), the slope of aˣ at 0. Choosing the base e so that M(e) = 1 makes eˣ its own derivative; its inverse, the natural logarithm, has derivative 1/x. Writing aˣ = e^(x ln a) shows M(a) = ln a. Logarithmic differentiation, (ln u)′ = u′/u, handles moving exponents such as xˣ, and gives e = lim (1 + 1/n)ⁿ.
- Lecture 6 Exponential and Log MIT ↗ (opens in a new tab)
- Problem set Problem Set 1: rates of change, tangent lines and the product rule
Five problems on the first week of calculus. You split a function into an even and an odd part, measure how an error in one length passes into another, find where a tangent line first reaches the top of a tower, compare an average rate with an instantaneous one, and extend the product rule to any number of factors.
Practises lectures 1, 2, 3, 4
Not written yet
- Lecture 7 Exam 1 Review MIT ↗ (opens in a new tab)
Applications of Differentiation
- Linear and quadratic approximations
Near a base point a curve is close to its tangent line: f(x) ≈ f(x₀) + f′(x₀)(x − x₀). Five standard approximations near 0 (sin, cos, eˣ, ln(1 + x), (1 + x)ʳ) combine by algebra alone. Adding a term with the second derivative gives the best-fitting parabola.
- Lecture 9 Linear and Quadratic Approximations MIT ↗ (opens in a new tab)
- Curve sketching with the first and second derivative
The lecture first finishes approximations (why linear relations are what engineers look for, a quadratic approximation worked out in full, and how fast (1 + 1/k)ᵏ approaches e). Then it turns to sketching graphs: the sign of f′ says where f rises and falls, the sign of f″ says which way it bends, and critical points, values, zeros and the ends fill in the rest.
- Lecture 10 Curve Sketching MIT ↗ (opens in a new tab)
- Sketching strategy and maximum–minimum problems
Two more curve sketches, (x + 1)/(x + 2) and x/ln x, lead to a general strategy: discontinuities and ends first, then critical points, with the signs of f′ and f″ as checks. Then maxima and minima: the largest and smallest values are found among the critical points, the endpoints and the discontinuities. Examples: the open can with least surface, and a wire cut into two squares.
- Lecture 11 Max-min MIT ↗ (opens in a new tab)
- More max–min, and related rates
Max–min problems often come with a constraint: the box without a top of fixed volume and least surface area turns out to have a base twice its height, a scale-free answer that implicit differentiation reaches fastest. Related rates use the same skills: write an equation linking quantities that change, differentiate it with respect to time, and only then put in the numbers.
- Lecture 12 Related Rates MIT ↗ (opens in a new tab)
- A ring on a string, and Newton's method
A ring sliding on a string hangs at the lowest point of its constraint curve; implicit differentiation shows the two halves of the string make equal angles, so they carry equal tension. Then Newton's method: replace the curve by its tangent line, find where that crosses zero, and repeat. Each step roughly doubles the number of correct digits.
- Lecture 13 Newton's Method MIT ↗ (opens in a new tab)
- The mean value theorem and inequalities
Newton's method squares the error at each step, provided the start is close and the slope is not too small. Then the mean value theorem: over any interval, the average rate of change equals the derivative at some point in between. Its real use is three consequences: a positive derivative means increasing, a negative one decreasing, and a zero derivative constant. From these come inequalities such as eˣ > 1 + x.
- Lecture 14 Mean Value Theorem MIT ↗ (opens in a new tab)
- Differentials and antiderivatives
Leibniz's differentials, dy = f′(x) dx, give a compact way to write linear approximations and are the language of integration. An antiderivative of f is a function whose derivative is f; it is written ∫f(x) dx and is fixed only up to an added constant, and that is the only freedom. Substitution, or guessing and checking by differentiating, finds most antiderivatives in this part of the course.
- Lecture 15 Antiderivatives MIT ↗ (opens in a new tab)
- Differential equations and separation of variables
A differential equation links a function to its rate of change. When dy/dx is a function of x times a function of y, put all the y's on one side and all the x's on the other, take antiderivatives, and you get an implicit formula for the solution. The arbitrary constant gives a whole family of solutions; a starting value picks one. Watch for solutions lost by dividing, and for places where the equation is undefined.
- Lecture 16 Differential Equations MIT ↗ (opens in a new tab)
- Problem set Problem Set 2: chain rule, inverse functions, approximations and a golf ball
Seven problems from the two halves of MIT's Problem Set 2. You differentiate with the chain rule, find the derivative of the inverse cosine, prove the product rule for many factors with logarithms, use linear and quadratic approximations to settle a contest question about a golf ball, and sketch a curve with its first two derivatives.
Practises lectures 4, 5, 6, 9, 10
- Problem set Problem Set 3: tangent lines, errors of measurement and Newton's method
Four problems and one optional problem on using derivatives. You show that a curve cuts a piece of length 1 from each of its tangent lines, work out how an error in a measured distance or angle passes into a position, find the cube root of 9 with Newton's method, and build the curve again from a sliding ladder.
Practises lectures 12, 13
Integration
- Definite integrals and Riemann sums
The definite integral of f from a to b is the area under the graph: cut the interval into n thin strips, add up the areas of rectangles, and take the limit as the strips get thin. Done by hand for x², with a staircase pyramid to estimate 1² + 2² + ⋯ + n², it gives b³/3, and the pattern b, b²/2, b³/3 hints at a much faster way. Integrals are also cumulative sums: totals of anything that accumulates at a varying rate.
- Lecture 18 Definite Integrals MIT ↗ (opens in a new tab)
- The first fundamental theorem of calculus
If F′ = f, then the definite integral of f from a to b is F(b) − F(a). The laborious rectangles of the last lecture become a one-line calculation. Read with velocity and position, the theorem says the speedometer, added up over time, gives the change on the odometer. Integrals count area below the axis as negative, and they obey simple rules: sums and constants come out, intervals add up, reversing the limits changes the sign, and bigger functions have bigger integrals. In a substitution, the limits change too.
- Lecture 19 First Fundamental Theorem MIT ↗ (opens in a new tab)
- The second fundamental theorem of calculus
Read the first fundamental theorem backwards: the change in F is the average of F′ times the length of the interval, which gives everything the mean value theorem gave and more. The second theorem says that the area function G(x) = ∫ₐˣ f(t) dt has derivative f: integrating and then differentiating gives back what you started with. Both theorems are proved here. And integrals define genuinely new functions, such as the antiderivative of e^(−x²).
- Lecture 20 Second Fundamental Theorem MIT ↗ (opens in a new tab)
- The logarithm from an integral, and areas between curves
Define L(x) = ∫₁ˣ dt/t. From L′ = 1/x and L(1) = 0 alone come the whole graph of the natural logarithm, the number e (where L = 1), and the rule L(ab) = L(a) + L(b), proved by a change of variables. The same approach sketches the area function of e^(−t²), which levels off at √π/2. Then integrals as answers to geometric questions: the area between two curves, sliced vertically or, often more easily, horizontally.
- Lecture 21 Applications to Logarithms MIT ↗ (opens in a new tab)
- Volumes by disks and shells
Slice a solid, find the volume of one thin slice, and add the slices with an integral. For a solid of revolution there are two ways: disks (slices perpendicular to the axis, volume πy² dx) and shells (thin cylinders around the axis, volume 2πx · height · dx). Both give the volume of a ball and of a parabolic cauldron. Watch the units: y = x² is not scale-invariant, so the same formula describes a 16-litre and a 1600-litre cauldron.
- Lecture 22 Volumes MIT ↗ (opens in a new tab)
- Average value, weighted averages and probability
The average of a function over an interval is its integral divided by the length of the interval: the continuous version of adding n numbers and dividing by n. An average depends on the variable you average over, and a weighted average divides by the total weight. Probability is a weighted average too: the part divided by the whole. The Gaussian integral, worth √π, is found by computing one volume in two ways.
- Lecture 23 Work, Probability MIT ↗ (opens in a new tab)
- The dartboard, and numerical integration
The lecture finishes the dartboard problem: with hits spread like e^(−r²), the chance of a ring of the board is e^(−r₁²) − e^(−r₂²), and a little brother standing next to the board is hit by about 1% of the darts. Then numerical integration, for integrals without a formula: Riemann sums, the trapezoidal rule (the average of left and right sums), and Simpson's rule, which fits parabolas and weights the values 1, 4, 2, 4, …, 4, 1. Simpson's rule is far more accurate.
- Lecture 24 Numerical Integration MIT ↗ (opens in a new tab)
- Problem set Problem Set 4: inequalities for the logarithm, air pressure and a Riemann sum
Five problems on the mean value theorem, antiderivatives, differential equations and the definite integral. You trap the logarithm between polynomials, explain two answers to one integral that look different, follow air pressure up a mountain, add up a Riemann sum for the exponential function, and find the curve whose tangent lines all cut off the same length.
Practises lectures 14, 15, 16, 18
- Problem set Problem Set 5: the fundamental theorems, a Fresnel integral and a volume by slices
The problems of Part II of MIT's Problem Set 5. You add up a summer of rising temperatures with the first fundamental theorem and again, the long way, with a Riemann sum. You study a function that exists only as an integral, the Fresnel integral of the cosine of t squared, with the second fundamental theorem and changes of variable. And you find a volume from the areas of its horizontal slices.
Practises lectures 19, 20, 21, 22
- Problem set Problem Set 6: root-mean-square voltage, radioactive decay and Simpson's rule
Four problems on average value, probability and numerical integration. You find the voltage that a meter shows for house current, turn areas into probabilities for a point in a square and for the decay of a radioactive particle, prove the formula for the area under a parabola on which Simpson's rule rests, and use the rule on an integral that has no formula.
Practises lectures 23, 24
Not written yet
- Lecture 25 Exam 3 Review MIT ↗ (opens in a new tab)
Techniques of Integration
- Trigonometric integrals and substitution
Integrals of sinⁿx cosᵐx: if one exponent is odd, peel off one factor, turn the rest into the other function with sin²x + cos²x = 1, and substitute u = cos x or u = sin x. If both are even, lower the powers with the half-angle formulas cos²x = (1 + cos 2x)/2 and sin²x = (1 − cos 2x)/2. The notes treat secants and tangents the same way. Then a trigonometric substitution, y = a sin θ, integrates √(a² − y²) and splits the area of a piece of a disk into a sector and a triangle.
- Lecture 27 Trig Integrals MIT ↗ (opens in a new tab)
- Inverse substitution and completing the square
Secants and tangents: their derivatives, the integrals of tan x and sec x, and powers of sec x. Then the three trigonometric substitutions that remove a square root: x = a sin θ for √(a² − x²), x = a tan θ for √(a² + x²), x = a sec θ for √(x² − a²). A right triangle undoes the substitution at the end. When the quadratic under the root has a middle term, completing the square brings it to one of these forms.
- Lecture 28 Inverse Substitution MIT ↗ (opens in a new tab)
- Partial fractions
A rational function P(x)/Q(x) can be split into simple pieces that are easy to integrate. Factor the denominator, set up one term for each factor (one per power for a repeated factor, a linear numerator over a quadratic factor), and find the coefficients, quickly by the cover-up method where it works. If the numerator's degree is not lower than the denominator's, first divide the polynomials.
- Lecture 29 Partial Fractions MIT ↗ (opens in a new tab)
- Integration by parts and reduction formulas
Partial fractions always work, though the general case can need a machine. Then the last technique: integration by parts, ∫uv′ dx = uv − ∫u′v dx, the product rule read backwards. Choose u to get simpler when differentiated and v′ not to get worse when integrated. Applied repeatedly it gives reduction formulas, such as ∫(ln x)ⁿ dx and ∫xⁿeˣ dx, and it computes the volume of an exponential wine glass two ways.
- Lecture 30 Integration by Parts MIT ↗ (opens in a new tab)
- Arc length, surface area and parametric curves
Break a curve into tiny straight pieces: each has length ds = √(dx² + dy²) = √(1 + (dy/dx)²) dx, and adding them gives the arc length. For the circle this gives the arcsine, and with it a proper definition of radians. Spinning a curve about the x-axis, each piece sweeps a band of area 2πy ds; for a sphere this gives 2πa times the width of the slice, the same for every slice of equal width. Finally, parametric curves x(t), y(t) describe trajectories, such as a circle traced counterclockwise.
- Lecture 31 Parametric Equations MIT ↗ (opens in a new tab)
- Parametric arc length and polar coordinates
For a parametric curve, ds = √((dx/dt)² + (dy/dt)²) dt, and ds/dt is the speed. The perimeter of an ellipse is an integral with no elementary formula, and that integral is the answer. Polar coordinates describe a point by its distance r from the origin and its angle θ, with x = r cos θ and y = r sin θ as the rule to trust; the other formulas are ambiguous. Lines and off-centre circles get polar equations such as r = 1/sin θ and r = 2a cos θ, each with its own range of θ, and areas in polar coordinates add up thin wedges of area ½r² dθ.
- Lecture 32 Polar Coordinates MIT ↗ (opens in a new tab)
- Indeterminate forms and L'Hôpital's rule
When a limit of f(x)/g(x) has the form 0/0 or ∞/∞, it equals the limit of f′(x)/g′(x), if that limit exists (or is ±∞). The rule comes from difference quotients, works as x → ±∞ too, and can be repeated. Products such as x ln x and powers such as xˣ are rewritten first as ratios. It ranks rates of growth: ln x is slower than any positive power of x, and every power is slower than eᵖˣ for p > 0. But look before you L'Hôp: the rule only applies to indeterminate forms.
- Lecture 35 Indeterminate Forms MIT ↗ (opens in a new tab)
- Improper integrals
An integral to infinity is the limit of integrals up to N as N → ∞; it converges if the limit is finite and diverges if not. ∫₀^∞ e^(−kx) dx = 1/k, simpler than any finite version. The borderline is the powers: ∫₁^∞ dx/xᵖ converges (to 1/(p − 1)) exactly when p > 1. Limit comparison decides other integrals by their tails, and integrals whose integrand blows up at an endpoint (the second type) need the same care: ignoring a singularity can give nonsense.
- Lecture 36 Improper Integrals MIT ↗ (opens in a new tab)
- Infinite series and convergence tests
First, improper integrals of the second kind: near a singularity, 1/x^p is integrable exactly when p < 1, the opposite of the rule at infinity, and a singularity inside the interval must be split off. Then infinite series: the sum is the limit of the partial sums. The geometric series 1 + a + a² + … converges to 1/(1 − a) only for |a| < 1. A Riemann sum with steps of 1 ties Σ 1/n^p to ∫ dx/x^p: the harmonic series diverges, trapped between ln N and ln N + 1, while Σ 1/n² converges (to π²/6). Limit comparison handles the rest.
- Lecture 37 Infinite Series MIT ↗ (opens in a new tab)
- Stacking blocks and Taylor series
Blocks stacked from the top down, each pushed out as far as balance allows, lean out past a table edge by 1 + ½ + ⅓ + ⋯ half-lengths: the harmonic series, so the overhang can be as large as you like, but only with an astronomical number of blocks. Then power series Σ aₙxⁿ: inside a radius of convergence they behave like polynomials and can be added, multiplied, differentiated and integrated term by term. Taylor's formula aₙ = f⁽ⁿ⁾(0)/n! turns functions into series: eˣ = Σ xⁿ/n!, and the odd and even powers with alternating signs give sin x and cos x.
- Lecture 38 Taylor's Series MIT ↗ (opens in a new tab)
- Problem set Problem Set 7: the volume of a torus, powers of the tangent and the integral of the secant
Five problems on the techniques of integration. You find the voltage that a meter shows for house current, the volume of a ring-shaped solid by shells and a trigonometric substitution, a reduction formula for the powers of the tangent, the integral of the secant by partial fractions, and a volume that needs integration by parts.
Practises lectures 27, 28, 29, 30
- Problem set Problem Set 8: curves, the catenary, polar areas, a factorial integral and a soap bubble
Five problems from the two halves of MIT's Problem Set 8, and one optional problem. You find the lengths of three curves between the same two points, meet the hyperbolic functions and the hanging chain, compute one area in rectangular and in polar coordinates, show that an improper integral gives the factorials, and find the shape of a soap bubble on a table.
Practises lectures 31, 32, 35, 36
Not written yet
- Lecture 33 Exam 4 Review MIT ↗ (opens in a new tab)
- Lecture 39 Final Review MIT ↗ (opens in a new tab)
Note: Lectures 8, 17, 26 and 34 were exams in this course and have no lecture video.