BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year
Mathematics · Year I

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

Not ready yet?Start with the High SchoolPre-university physics and maths in nine blocks, leading into Year I

Lectures 31 of 35 with pages so far

Unit 1

Derivatives

7 lectures · 6 pages

  • 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.

  • 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.

  • 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.

  • 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!.

  • 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²).

  • 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)ⁿ.

  • 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

Unit 2

Applications of Differentiation

8 lectures · 8 pages

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

Unit 3

Integration

8 lectures · 7 pages

  • 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.

  • 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.

  • 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²).

  • 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.

  • 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.

  • 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.

  • 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.

  • 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

Unit 4

Techniques of Integration

12 lectures · 10 pages

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.

  • 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θ.

  • 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.

  • 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.

  • 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.

  • 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.

Not written yet

Note: Lectures 8, 17, 26 and 34 were exams in this course and have no lecture video.