electronics engineering
Course handbook · Second year · Edition with space for notes
Math Analysis 2
Mathematical Analysis 2: functions of several variables, partial derivatives, multiple integrals, differential equations and series of functions.
- 11Topics
- 33Solved exercises
- 74Formula sheet
Free handbook generated from the lessons of the site and updated often, every time a lesson or an exercise changes: the latest version is always at www.electronics-engineering.com/handbook/analysis-2. Links work in the PDF too.
1Series of functions, power series and Taylor series
In Analysis 1 series were infinite sums of numbers. In Analysis 2 we add up infinitely many functions, and the result is a new function. This is how calculators compute sines and exponentials, how differential equations with no elementary solution are solved, and how signals are approximated. In this lesson we cover sequences and series of functions, uniform convergence, power series and Taylor series.
Pointwise and uniform convergence
A sequence of functions
converges pointwise to
on a set
if
for every
. It is the most natural notion, but it is weak: the functions
on
are all continuous, yet the pointwise limit is 0 for
and 1 for
, which is discontinuous.
We say
converges uniformly to
if
![]()
that is, if from some
on the whole graph of
lies in a “strip” of width
around the graph of
, for all
at once. In the
example, for every
there is an
close to 1 where
: the convergence is not uniform.
Why it matters
- The uniform limit of continuous functions is continuous. Given
, choose
with
everywhere, then
from the continuity of
; then
. - You can take the limit under the integral sign on a bounded interval:
, because
. - Derivatives need more: uniform convergence of the derivatives
.
For a series of functions
one studies the partial sums. The most used test is the Weierstrass M-test: if
for every
and
converges, the series converges uniformly. Example:
converges uniformly on the whole of
, because
.
Power series
A power series centred at
is
![Rendered by QuickLaTeX.com \[ \sum_{k=0}^{\infty} a_k\,(x - x_0)^k \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-bbe0b1374c1bd1c9cf69840291c060b2_l3.png)
Theorem. There is
, the radius of convergence, such that the series converges absolutely for
and does not converge for
. The end points must be checked separately. The radius is found with the ratio or root test:
![]()
Examples.
:
, sum
. It does not converge at the end points.
:
; at
it converges (alternating series), at
it diverges (harmonic series). The sum is
.
:
, sum
.
Inside the interval of convergence the series converges uniformly on every smaller closed interval, and it can be differentiated and integrated term by term without changing the radius. For example, integrating
from 0 to
gives
![]()
and at
the Leibniz series: ![]()
Taylor series
If
has derivatives of every order at
, its Taylor series is
![Rendered by QuickLaTeX.com \[ \sum_{k=0}^{\infty}\frac{f^{(k)}(x_0)}{k!}\,(x - x_0)^k \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-75d3c80896213b54acb1058b18a6808b_l3.png)
The partial sums are the Taylor polynomials of Analysis 1. The series converges to
if and only if the remainder
tends to zero. With Lagrange’s remainder,
for some
between
and
.

Proof: the sine series converges everywhere
Every derivative of the sine is
or
, so
and
![Rendered by QuickLaTeX.com \[ |R_n(x)| \le \frac{|x|^{n+1}}{(n+1)!} \to 0 \quad\text{for every } x \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-0e5c6584293a87694cf1b38273b5ffe5_l3.png)
because the factorial grows faster than any power. Hence
![Rendered by QuickLaTeX.com \[ \sin x = \sum_{k=0}^{\infty}\frac{(-1)^k x^{2k+1}}{(2k+1)!},\qquad \cos x = \sum_{k=0}^{\infty}\frac{(-1)^k x^{2k}}{(2k)!},\qquad e^x = \sum_{k=0}^{\infty}\frac{x^k}{k!} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-f895701a5aa152b1a8a750a759c337b1_l3.png)
Substituting
in the exponential series and separating even and odd terms gives Euler’s formula,
.
Careful: not every function is the sum of its Taylor series. The function
(with
) has all derivatives zero at 0: its Taylor series is the zero function, which equals
only at the origin. Functions that equal their Taylor series near every point are called analytic.
An application: computing with series
To compute
, which has no elementary antiderivative, integrate the series term by term:
![Rendered by QuickLaTeX.com \[ \int_0^1 e^{-x^2}dx = \sum_{k=0}^{\infty}\frac{(-1)^k}{k!\,(2k+1)} = 1 - \frac13 + \frac1{10} - \frac1{42} + \frac1{216} - \dots \approx 0.7468 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-6f71f5f3e7e52e7214e8b66a68864ed5_l3.png)
Since it is an alternating series with decreasing terms, the error is less than the first term left out: with five terms the error is below
. This integral is proportional to the error function erf, which describes the bit error probability of a digital transmission with Gaussian noise.
2Fourier series
The Taylor series approximates a function with powers, and it is excellent near a point. For periodic functions, such as the signals of a circuit in AC steady state, sines and cosines are far more natural. Fourier proposed this in 1807 to solve the heat equation; today it is the foundation of signal analysis, filters, audio compression and communications.
Trigonometric polynomials and Fourier series
We want to write a function
of period
as
![Rendered by QuickLaTeX.com \[ f(x) \sim \frac{a_0}{2} + \sum_{k=1}^{\infty}\big(a_k\cos kx + b_k\sin kx\big) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-65849316afe5cfdd776ed1eb0823a892_l3.png)
The term
is the mean value, the
terms are the fundamental, those with
the harmonics. For any period
, replace
with
, where
.
Proof: the coefficient formulas
The key is the orthogonality relations: for integers ![]()
![Rendered by QuickLaTeX.com \[ \int_{-\pi}^{\pi}\cos kx\cos mx\,dx = \int_{-\pi}^{\pi}\sin kx\sin mx\,dx = \begin{cases}\pi & k = m\\ 0 & k \ne m\end{cases},\qquad \int_{-\pi}^{\pi}\sin kx\cos mx\,dx = 0 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-dd15123a21e3ffdcecdae215177a82b3_l3.png)
They are proved with product-to-sum formulas: for example
, and the integral over a period of
is zero for every
.
Multiply the series by
and integrate over
, assuming we may integrate term by term. Every term vanishes except the one with
, which gives
. Hence
![]()
It is exactly the computation of coordinates in an orthogonal basis from the Geometry and Algebra lesson: the functions
and
are an orthogonal basis for the inner product
, and the Fourier coefficients are the projections of
onto it.
Useful symmetries. If
is even, all
are zero (a cosine series); if it is odd, all
are zero (a sine series).
Example: the square wave
Let
for
and
for
, extended periodically. It is odd, so
, and
![Rendered by QuickLaTeX.com \[ b_k = \frac2\pi\int_0^\pi\sin kx\,dx = \frac{2}{k\pi}(1 - \cos k\pi) = \begin{cases}\dfrac{4}{k\pi} & k \text{ odd}\\ 0 & k \text{ even}\end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-529d160bc37d998a5c8ca1fdc85c062b_l3.png)
![]()

A square wave contains only odd harmonics, with amplitude falling as
. That is why a 100 MHz digital clock produces interference at 300, 500, 700 MHz, and why the edges of fast signals are sometimes deliberately slowed down.
Convergence
Theorem (Dirichlet). If
is periodic and piecewise smooth (with finitely many jumps and corners in a period), the Fourier series converges at every point:
- to
where
is continuous; - to the average
at jumps.
For the square wave, at
the series gives 0, the average of
and
.
Near the jumps the convergence is not uniform: the partial sums overshoot the function by about 9% of the size of the jump, and this peak moves towards the jump but does not shrink as terms are added. This is the Gibbs phenomenon, visible in the figure. If instead
is continuous and piecewise smooth, the convergence is uniform.
Parseval’s identity and energy
![Rendered by QuickLaTeX.com \[ \frac1\pi\int_{-\pi}^{\pi}f(x)^2\,dx = \frac{a_0^2}{2} + \sum_{k=1}^{\infty}\big(a_k^2 + b_k^2\big) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-a943b86a1425ca72d6aa1cbed4a1e95d_l3.png)
It is Pythagoras’ theorem in infinite dimensions: the squared norm is the sum of the squares of the coordinates. Physically, the power of a periodic signal is the sum of the powers of its harmonics. For the square wave the left side is 2, and a surprising result follows:
, that is
.
It also follows that the fundamental alone carries
of the square wave’s power: this is the starting point for computing a signal’s total harmonic distortion (THD).
Complex form
With Euler’s formula the series becomes more compact:
![Rendered by QuickLaTeX.com \[ f(x) = \sum_{k=-\infty}^{\infty}c_k\,e^{ikx},\qquad c_k = \frac{1}{2\pi}\int_{-\pi}^{\pi}f(x)\,e^{-ikx}\,dx \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-d7f7cdf2b818a9d5460b6c0e076fd6f2_l3.png)
This is the form used in electronics and telecommunications. Letting the period tend to infinity, the sum over discrete frequencies
becomes an integral over all frequencies: the Fourier transform, which describes the spectrum of non-periodic signals. The version for sampled signals, computed with the FFT algorithm, is inside every digital oscilloscope, modem and audio codec. The Z transform, linked to this subject, generalises it to discrete-time systems.
3Functions of several variables: limits and continuity
The temperature in a room depends on three coordinates, the resistance of a thermistor on temperature and current, the gain of an amplifier on frequency and load. Almost every real quantity depends on several variables. In this lesson we extend the ideas of Analysis 1 to functions
: how they are represented, what neighbourhoods, open and closed sets are, and how limits and continuity are defined.
The space 
The points of
are
-tuples
. Distance is Euclidean,
. The ball (or neighbourhood) with centre
and radius
is
: an interval in
, a disc in the plane, a solid sphere in space.
Relative to a set
, a point can be:
- interior: there is a ball around it entirely inside
; - boundary: every ball around it contains points of
and points outside
; - accumulation point: every ball around it contains points of
other than itself.
is open if all its points are interior (the disc without its edge), closed if it contains its whole boundary (the disc with its edge), bounded if it fits inside a ball. A closed and bounded set is called compact: it is the counterpart of the intervals
of Analysis 1, and Weierstrass’ theorem still holds on it.
Representing a function of two variables
The graph of
is the surface
in space. Since surfaces are awkward to draw, level curves are used: the sets
, projected onto the
plane. It is exactly the method of topographic maps (contour lines), weather maps (isobars) and electric field maps (equipotential lines).

and some of its level curves: cutting the surface at constant heights gives curves which, projected onto the
plane, form the function’s “contour map”.Where the level curves (at equally spaced heights) are close together the function rises quickly; where they are far apart the surface is almost flat.
Examples.
has concentric circles as level curves and a paraboloid as graph.
has hyperbolas as level curves and a “saddle” as graph.
has parallel lines and a plane as graph.
Domain. As in Analysis 1 you need to find where the expression makes sense, but now the result is a region of the plane. For
you need
and
: the disc of radius 2 intersected with the half-plane above the diagonal.
Limits
![]()
if for every
there is
such that
for all
in the domain with
. The definition is identical to Analysis 1, but with a huge difference: in the plane you can approach the point from infinitely many directions and along infinitely many paths, and the limit must be the same for all of them.
How to show a limit does not exist
It is enough to find two paths along which the limits differ. Example:
![]()
Along the
axis (
) it is always 0. Along the line
it equals
, which depends on
: along the diagonal it is
. The limit does not exist.
Careful: having the same limit along every line is not enough. For
the limit along every line through the origin is 0, but along the parabola
the function is constantly
.
How to show a limit exists: polar coordinates
Set
,
, and look for a bound
with
, independent of
. Example:
![Rendered by QuickLaTeX.com \[ \left|\frac{x^2 y}{x^2 + y^2}\right| = \frac{\rho^3|\cos^2\theta\sin\theta|}{\rho^2} \le \rho \to 0 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-3a099c21c43217bc291a6daa91eea1a5_l3.png)
so the limit is 0. It is not enough that for each fixed
the limit in
is zero: the bound must be uniform in
, otherwise you fall back into the parabola case.
Continuity
is continuous at
if
. Sums, products, quotients (where the denominator is non-zero) and compositions of continuous functions are continuous: polynomials in
and
,
,
are continuous everywhere.
The function
, extended by 0 at the origin, is not continuous at
, even though it is continuous along every horizontal and vertical line: the first sign that things are more delicate in several variables.
Weierstrass’ theorem. A continuous function on a compact set has a maximum and a minimum. We will use it to look for absolute extrema in the lessons on maxima and minima.
Vector-valued functions
More generally one studies functions
. With
they are curves (the position of a point as a function of time); with
or
they are vector fields, such as the electric field or the velocity of a fluid, which attach a vector to every point. Limits and continuity are studied component by component.
Exercises
Exercises on limits, partial derivatives, tangent planes and unconstrained and constrained maxima and minima of functions of several variables, of the kind set in Mathematical Analysis 2 (multivariable calculus) courses, in three levels: basic, for partial derivatives, the gradient and the tangent plane; intermediate, with critical points classified with the Hessian matrix and limits in two variables; exam, with Lagrange multipliers, absolute extrema on a closed set and cases where the Hessian does not decide. The result is given straight away; the full solution opens with a click.
Basic level
Exercise 2. Gradient and directional derivative
Compute the derivative of
at the point
in the direction of the vector
.
Exercise 3. The tangent plane to a surface
Write the tangent plane to the graph of
at the point
.
Intermediate level
Exercise 4. Critical points and the Hessian matrix
Find and classify the critical points of
.
4Partial derivatives, gradient and differentiability
In one variable the derivative tells how fast a function grows. In several variables the question becomes: how fast does it grow moving in a given direction? The answer leads to partial derivatives, the gradient, the tangent plane and differentiability, which is the right notion for saying that a function is “smooth”.
Partial derivatives
The partial derivative with respect to
is computed by holding
fixed and differentiating as in Analysis 1:
![]()
Geometrically it is the slope of the curve obtained by cutting the graph with the plane
. Example:
has
and
.
The vector of partial derivatives is the gradient:
![]()
Partial derivatives are not enough
In one variable, differentiable implies continuous. In several variables it does not: the function
, extended by 0 at the origin, has both partial derivatives zero at
(along the axes it is always 0), but it is not even continuous there. Partial derivatives look at only two directions, while the behaviour around a point depends on all of them.
Differentiability and the tangent plane
is differentiable at
if it can be approximated by a linear function with an error that goes to zero faster than the distance:
![]()
Geometrically: near the point the graph cannot be told apart from a plane, the tangent plane
![]()
Differentiable implies continuous and having every directional derivative. The practical test: if the partial derivatives exist and are continuous near the point, the function is differentiable (total differential theorem). All functions built from elementary operations are, where the derivatives are continuous.
Example. The tangent plane to
at
:
,
, so
.
Directional derivative
The derivative in the direction of the unit vector
is
![]()
and, if
is differentiable, the gradient formula holds:
![]()
Proof and consequences
From the definition of differentiability with
:
; dividing by
and taking the limit gives the formula. From the cosine three key facts follow:
- the directional derivative is largest in the direction of the gradient (
) and equals
: the gradient points in the direction of steepest ascent; - it is smallest,
, in the opposite direction; - it is zero in directions perpendicular to the gradient.

and the gradient at a few points: it is always perpendicular to the level curve through the point and points towards increasing values. Where the curves are closer together the gradient is longer.Along a level curve
is constant, so the derivative in the tangent direction is zero: the gradient is perpendicular to the level curves. That is why electric field lines
cross equipotential surfaces at right angles, and why water runs down the steepest slope, perpendicular to the contour lines.
The chain rule
If
and
describe a curve, the composite function
has derivative
![]()
Example. The temperature on a plate is
°C (with
in metres) and an ant moves along
metres, with
in seconds. At time
,
and
: the ant feels the temperature drop by
°C per second.
More generally, for
the derivative is the Jacobian matrix, with the partial derivatives of each component along the rows, and the chain rule says that the Jacobian of a composition is the product of the Jacobians. It is the bridge between Analysis 2 and Geometry and Algebra: differentiating means approximating with a linear map.
Second derivatives
Differentiating again gives the second derivatives
, collected in the Hessian matrix. Schwarz’s theorem guarantees that, if the mixed second derivatives are continuous, the order does not matter:
, and the Hessian is symmetric. We will use it in the next lesson to classify maxima, minima and saddle points.
5Unconstrained maxima and minima
Finding the maximum or minimum of a function of several variables is the optimisation problem: the shape of a box that uses the least material, the parameters of a model that best fit some data, the weights of a neural network. In this lesson we see how critical points are found and how they are classified with the Hessian matrix.
Critical points
Fermat’s theorem. If
is differentiable and has a local maximum or minimum at an interior point
, then
![]()
Proof. For every direction
, the one-variable function
has a maximum or minimum at
, so
. A vector orthogonal to every direction is the zero vector.
Points where the gradient vanishes are called critical (or stationary): there the tangent plane is horizontal. But as in Analysis 1 the condition is only necessary: a critical point can be a maximum, a minimum, or neither.
Saddle points
In one variable, a critical point that is neither maximum nor minimum is a horizontal inflection. In two variables there is a new and very common possibility: the saddle point, where the function rises in some directions and falls in others.

has zero gradient at the origin, but along the
axis (red curve) the origin is a minimum and along the
axis (green curve) it is a maximum: it is a saddle point, like the middle of a horse saddle or a mountain pass.Classification with the Hessian
Near a critical point, the second-order Taylor expansion reduces to its quadratic part, because the gradient is zero:
![]()
The sign of
therefore depends on the sign of the quadratic form
. By the spectral theorem the symmetric Hessian can be diagonalised by a rotation: along the eigenvector directions the quadratic form becomes
. So:
- all eigenvalues positive (
positive definite):
rises in every direction, local minimum; - all negative (negative definite): local maximum;
- eigenvalues of opposite sign (indefinite): saddle point;
- some eigenvalue zero (semidefinite): the test is inconclusive, and the function must be studied another way.
The practical test in two variables
With
, the product of the eigenvalues, and
:
| Point | ||
|---|---|---|
| local minimum | ||
| local maximum | ||
| any | saddle | |
| inconclusive |
In
variables one uses Sylvester’s criterion:
is positive definite if and only if all its leading principal minors are positive.
A complete example
![]()
Critical points:
and
. From the first
; substituting into the second,
, that is
or
. The critical points are
and
.
Hessian:
,
,
.
- At
:
. Saddle. - At
:
and
. Local minimum, with
.
It is not an absolute minimum: along the
axis the function equals
and goes down to
.
Absolute maxima and minima on a compact set
By Weierstrass’ theorem, a continuous function on a closed and bounded set has an absolute maximum and minimum. They can be in two places:
- at interior critical points;
- on the boundary of the set.
Compute the values at all the candidates and pick the largest and the smallest; no Hessian is needed. The boundary is studied by parametrising it (each side of a rectangle is a one-variable problem) or with the Lagrange multipliers of the next lesson.
Example.
on the square
. The only interior critical point is
, with
. On the boundary: with
,
between 0 and 1; with
,
, between 0 and 1; with
,
, between 0 and 1. Absolute minimum
at
, absolute maximum
, reached for example at the corners.
An application: the least squares line
Given
experimental points
, we look for the line
that minimises the sum of squared residuals
![Rendered by QuickLaTeX.com \[ S(m, q) = \sum_{i=1}^{n}(y_i - m x_i - q)^2 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-1cfc298b089563e00596105383d51e92_l3.png)
Setting
and
gives two linear equations in
and
, the normal equations, and their solution is the regression line that every spreadsheet draws through data. The Hessian of
is positive definite (if the
are not all equal), so the critical point really is the minimum. It is the same result obtained with orthogonal projections in Geometry and Algebra, seen from the analysis side.
6Constrained extrema and Lagrange multipliers
Often you are not looking for the maximum of a function everywhere, but only among points that satisfy a constraint: the box of largest volume from a given amount of cardboard, the largest power with a limited current, the shortest distance from a curve. These are constrained extremum problems, and the method of Lagrange multipliers solves them with an elegant geometric idea.
The problem
We look for maxima and minima of
among the points that satisfy the constraint
. If one variable can be solved for from the constraint (for example
), substitute it and get a one-variable problem. But often this is impossible or awkward: a constraint like
gives two branches, and in three variables things get worse.
The geometric idea
Imagine walking along the constraint curve
while watching the level curves of
. As long as our curve crosses the level curves, we can move towards higher or lower values of
. At a constrained maximum or minimum that is no longer possible: there the constraint curve is tangent to a level curve of
.

on the circle
. The dashed lines are the level curves of
; the red one is the last that still touches the circle, and it is tangent to it. At that point
and
are parallel.Two tangent curves share the same normal line. The gradients are perpendicular to their level curves, so at the point of tangency
and
are parallel:
![]()
for some number
, the Lagrange multiplier.
Proof
Assume
. Then, by the implicit function theorem, near
the constraint is a smooth curve that can be parametrised by
,
. The function
has an extremum at
, so by the chain rule
: the gradient of
is perpendicular to the tangent of the constraint. So is
, because
for every
and therefore
. In the plane, two vectors perpendicular to the same direction are parallel.
The method
Define the Lagrangian
![]()
and look for its critical points, that is solve the system
![]()
Three equations in three unknowns. The solutions include every constrained extremum (along with any points where
, to be checked separately). If the constraint is a compact set, like a circle, the maximum and minimum exist by Weierstrass: just compare the values of
at the candidates.
The example in the figure.
,
:
,
, so
, and from the constraint
. Maximum
at
, minimum
at the opposite point.
Example: the box of largest volume
A closed box shaped like a rectangular block must have surface area
m². What is the largest volume
? With the Lagrangian in three variables:
![]()
Multiplying the first by
and the second by
:
, so
and
. In the same way
. The best box is a cube:
, side 1 m, volume 1 m³.
The meaning of the multiplier
is not just an auxiliary unknown. If the constraint is
, the optimal value
changes with
, and
![]()
The multiplier says how much the optimum improves if the constraint is relaxed by one unit. In economics it is called the “shadow price” of the resource; in physics, in problems with mechanical constraints, the multipliers are the constraint forces.
Several constraints and inequalities
With several constraints
there is one multiplier for each:
. For example, the extrema of a function on a curve in space, the intersection of two surfaces.
When the constraint is an inequality,
, as in the search for absolute extrema on a disc, interior points (zero gradient) and the boundary
(Lagrange) are studied separately. The systematic generalisation is the Karush-Kuhn-Tucker conditions, the basis of the numerical optimisation used in circuit design and machine learning.
An electronics example: maximum power transfer
A voltage source
with internal resistance
drives a load
. The power in the load is
. Here the problem is unconstrained in one variable:
gives
, with maximum power
. If instead the current may not exceed a maximum value, the constraint becomes active and the optimum moves to the edge of the allowed region: exactly the situation that calls for the methods of this lesson.
7Curves, line integrals and conservative fields
A curve in space is the path of a moving point. Along a curve you can integrate two different things: a scalar function (to compute a length or a mass) or a vector field (to compute work). This lesson introduces both integrals and arrives at conservative fields and potentials, which in Physics 2 will become the electric potential.
Parametric curves
A curve is a function
,
. The vector
is tangent to the curve and, if
is time, it is the velocity. The curve is regular if
is continuous and never zero.
Examples. The circle
,
. The helix
, the shape of a spring and a screw thread. The graph of
is the curve
.
The length of a curve
Approximating the curve with a polygonal line and taking the limit, the length is the integral of the speed:
![Rendered by QuickLaTeX.com \[ L = \int_a^b |\mathbf r'(t)|\,dt \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-485970e429c09db55505e16564d2a88c_l3.png)
Example. One turn of the helix
:
, so
. It is the hypotenuse of a right triangle with legs
(the circumference) and
(the pitch): unrolling the cylinder, the helix becomes a straight line.
The length does not depend on how the curve is parametrised: travelling faster or slower does not change the road.
Line integral of a function
For a scalar function
(for example the linear density of a wire):
![Rendered by QuickLaTeX.com \[ \int_\gamma f\,ds = \int_a^b f(\mathbf r(t))\,|\mathbf r'(t)|\,dt \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-2a8c55a3aa94d8d46e98987af37c709d_l3.png)
where
is the element of length. With
you get the length back; with
a density you get the mass of the wire. It does not depend on the direction of travel.
Line integral of a vector field: work
If
is a force, the work done along the curve
is
![Rendered by QuickLaTeX.com \[ \int_\gamma\mathbf F\cdot d\mathbf r = \int_a^b\mathbf F(\mathbf r(t))\cdot\mathbf r'(t)\,dt \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-ee4d96a0cb9cae1708c031af50331b81_l3.png)
Only the component of
tangent to the curve counts. Unlike the previous case, it changes sign if the direction is reversed.

(grey and red arrows) and the curve
from A to B with tangent vectors
(green). The line integral adds up, point by point, the dot product of field and displacement: where they agree the contribution is positive, where they oppose it is negative.Example.
along the unit circle anticlockwise:
,
, dot product 1, integral
. The field “turns” the same way as the curve and does positive work all the way round.
Conservative fields
A field
is conservative if there is a function
, the potential, such that
. (Physics often uses the opposite sign,
, with
the potential energy.)
Theorem. If
, then for every curve from A to B
![]()
Proof
By the chain rule
. So the integral is
, by the fundamental theorem of calculus.
Three equivalent properties follow (in a connected domain):
has a potential;- the integral between two points does not depend on the path;
- the integral around every closed curve is zero.
The field
of the previous example is not conservative: around a closed loop it gave
, not zero.
How to recognise a conservative field
If
, then
,
, and by Schwarz’s theorem
. The condition
![]()
(an irrotational field; in three dimensions
) is therefore necessary. It is also sufficient if the domain is simply connected, that is with no “holes” a closed curve could go around.
The classic counterexample.
on the plane without the origin is irrotational, but its integral round the unit circle is
. The hole at the origin breaks the equivalence. It is, up to constants, the magnetic field of a straight wire carrying a current: its integral round a closed curve counts how many times the curve goes round the wire, and that is Ampère’s law.
How to find the potential
Example.
. Check:
, and the domain is the whole plane. Integrating
in
:
. Differentiating in
and comparing with
:
, so
. The potential is
, and the work from
to
is
, whatever the path.
8Double integrals
The integral of Analysis 1 computes the area under a graph. The double integral does the same one floor up: it computes the volume under a surface, but also the mass of a plate, the charge on an electrode, the centroid of a cross-section or the moment of inertia of a beam. In this lesson we see how it is defined, how it is computed by reducing it to two single integrals and how variables are changed, with polar coordinates.
The definition
Split the region
of the plane into many small rectangles of area
, choose a point in each and form the sum
. If, as the rectangles get smaller, the sums tend to a limit, that is the double integral:
![]()
With
it is the volume of the solid between the region
and the graph of
. With
it is the area of
. Continuous functions on bounded regions with a regular boundary are always integrable, and linearity, monotonicity and additivity over regions hold.
Computing it: normal domains
The idea is to slice the solid. A region is normal with respect to the
axis if it can be described as
![]()
that is, if every vertical line cuts it in a single segment.

between
and
,
runs from
to
. The double integral is computed by first summing along the vertical strip (in
) and then adding up all the strips (in
).Reduction formula (Fubini’s theorem):
![Rendered by QuickLaTeX.com \[ \iint_D f\,dx\,dy = \int_a^b\left(\int_{g_1(x)}^{g_2(x)}f(x, y)\,dy\right)dx \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-809277500254ca8ffebd5ed8ef5d7bfc_l3.png)
The inner integral, with
fixed, gives the area of the vertical slice; integrating the slice areas gives the volume. It is Cavalieri’s principle. In the same way you integrate first in
and then in
if the domain is normal with respect to the
axis.
Example.
over the triangle with vertices
,
,
, that is
,
:
![Rendered by QuickLaTeX.com \[ \int_0^1\left(\int_0^x xy\,dy\right)dx = \int_0^1 x\cdot\frac{x^2}{2}\,dx = \frac18 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-d6186a71d5b22f5841461fd0d20a99fc_l3.png)
Swapping the order of integration
Sometimes one order leads to an impossible integral and the other to an easy one.
cannot be computed as it stands, because
has no elementary antiderivative. The domain is the same triangle as before, seen as
,
. Swapping:
![Rendered by QuickLaTeX.com \[ \int_0^1\left(\int_0^x e^{x^2}dy\right)dx = \int_0^1 x\,e^{x^2}dx = \frac{e - 1}{2} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-92ff7e773b4a26f35b943640295b879b_l3.png)
Change of variables
Switching to new variables
with
,
, the small rectangles
become curved parallelograms of area
, where
is the Jacobian matrix of the transformation. It is the determinant as the area scaling factor, seen in Geometry and Algebra:
![]()
Polar coordinates
With
,
:
![]()
![]()

and
: its area is
. The factor
explains why regions far from the origin weigh more.Polar coordinates simplify everything with circular symmetry: discs, annuli, sectors, and functions depending on
.
Example: the area of a circle.
.
The Gaussian integral
cannot be computed with antiderivatives. The trick is to square it and move to the plane:
![Rendered by QuickLaTeX.com \[ I^2 = \iint_{\mathbb R^2}e^{-(x^2 + y^2)}dx\,dy = \int_0^{2\pi}\int_0^\infty e^{-r^2}r\,dr\,d\theta = 2\pi\cdot\frac12 = \pi \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-199759759df06eafb21a653b07d1a703_l3.png)
so
. It is the result that normalises the Gaussian distribution, used everywhere from statistics to thermal noise in circuits.
Physical applications
For a plate with surface density
:
- mass
; - centre of mass
,
; - moment of inertia about the origin
.
Example. The moment of inertia of a uniform disc of mass
and radius
(density
):
. It is the value in the table of the Physics 1 lesson on the rigid body, now proved.
Exercises
Exercises on double and triple integrals of the kind set in Mathematical Analysis 2 (multivariable calculus) courses, in three levels: basic, for rectangles, normal domains and polar coordinates; intermediate, with changing the order of integration, volumes and the Gaussian integral; exam, with cylindrical and spherical coordinates, masses and centroids. The result is given straight away; the full solution opens with a click.
Basic level
Exercise 3. The area of a disc in polar coordinates
Compute with a double integral the area of the disc of radius 2.
Intermediate level
Exercise 6. The volume under a paraboloid
Compute the volume of the region above the plane
and below the paraboloid
.
9Triple integrals
The triple integral is the integral over a region of space. It is used to compute volumes, masses of bodies with variable density, charges distributed through a volume, centres of mass and moments of inertia of solids. The ideas are the same as for the double integral, with one more dimension; the real novelty is cylindrical and spherical coordinates, which make problems with symmetry simple.
Definition and reduction
![]()
is defined with sums over small boxes, just as the double integral uses rectangles. With
it gives the volume of
; with
a mass density, the mass.
It is computed by reducing it to simpler integrals, in two ways.
By columns: if
,
![Rendered by QuickLaTeX.com \[ \iiint_V f\,dV = \iint_D\left(\int_{h_1(x, y)}^{h_2(x, y)}f\,dz\right)dx\,dy \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-ebd242390bdc44645daf26fa5cd4e598_l3.png)
By slices: if each plane
cuts
in a region
, with
between
and
,
![Rendered by QuickLaTeX.com \[ \iiint_V f\,dV = \int_c^d\left(\iint_{S(z)}f\,dx\,dy\right)dz \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-90a79cec1a8485721417f3f93c25b7ce_l3.png)
The second method is very handy when the slices are figures with a known area.
Example: the volume of a cone of radius
and height
. The slice at height
is a circle of radius
, so
![Rendered by QuickLaTeX.com \[ V = \int_0^h\pi R^2\left(1 - \frac zh\right)^2dz = \pi R^2\cdot\frac h3 = \frac13\pi R^2 h \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-30ac3ac37a00655749ed8e726b4667b1_l3.png)
Cylindrical coordinates
They are polar coordinates in the
plane plus the height
:
![]()
The Jacobian is the same as for polar coordinates,
, because
does not change. They suit cylinders, cones, solids of revolution about the
axis, and anything wrapped around an axis: a coaxial cable, a drive shaft, a solenoid.
Example: the moment of inertia of a solid cylinder of mass
, radius
and height
, about its axis:
![Rendered by QuickLaTeX.com \[ I = \rho\int_0^h\int_0^{2\pi}\int_0^R r^2\cdot r\,dr\,d\theta\,dz = \rho\cdot h\cdot 2\pi\cdot\frac{R^4}{4} = \frac12 MR^2 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-e027e5276fa4417c1666860e6ad9e550_l3.png)
with
. The same value as the disc: the height does not matter, only how the mass is spread around the axis.
Spherical coordinates
A point is located by its distance
from the origin, the angle
from the
axis (from 0 to
) and the angle
of its projection on the
plane (from 0 to
), like latitude and longitude on the Earth.

from the origin, the angle
with the
axis and the angle
that its projection on the
plane makes with the
axis. ![]()
![]()
Careful: many physics texts swap the names
and
. What counts is the definition, not the letter.
Proof of the volume element
The small “cube” of spherical coordinates has three nearly perpendicular sides:
in the radial direction;
along the meridian, an arc of radius
;
along the parallel, an arc of radius
, the distance from the
axis. The volume is the product of the three sides,
. The same result comes from the determinant of the 3×3 Jacobian.
Example: the volume of a sphere.
![]()
Example: the moment of inertia of a solid sphere about a diameter (the
axis). The squared distance from the axis is
:
![Rendered by QuickLaTeX.com \[ I = \rho_m\int_0^{2\pi}\int_0^\pi\int_0^R\rho^2\sin^2\varphi\cdot\rho^2\sin\varphi\,d\rho\,d\varphi\,d\theta = \rho_m\cdot 2\pi\cdot\frac43\cdot\frac{R^5}{5} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-e84bc6c9951e2b448260262de74c7d84_l3.png)
because
. With
you get
, another value from the rigid body table, now proved.
Which system to choose
| Symmetry of the problem | Coordinates | Volume element |
|---|---|---|
| boxes, prisms | Cartesian | |
| cylinders, cones, rotation about an axis | cylindrical | |
| spheres, fields depending on the distance from a point | spherical |
In Physics 2 this choice comes up again and again: the field of a point charge is studied in spherical coordinates, that of a wire or coaxial cable in cylindrical ones, that of a parallel-plate capacitor in Cartesian ones.
An example from electromagnetism
A sphere of radius
holds a charge whose density grows outwards,
. The total charge is
![]()
Thanks to spherical symmetry, the integrals in
and
always give
, the total solid angle: for any function depending only on
,
.
10Surfaces, flux and the theorems of Green, Gauss and Stokes
This lesson completes integral calculus in several variables with the three great theorems: Green, Gauss (divergence) and Stokes. They all say the same thing in different forms: the integral of a “derivative” over a region equals the integral of the function over the boundary of the region, as in the fundamental theorem of calculus. They are the language of Maxwell’s equations, and so of all of electronics.
Differential operators
For a vector field
one defines, with the symbol
:
- the divergence
, a scalar: it measures how much the field “flows out” of a point, like a source; - the curl
, a vector computed like a cross product: it measures how much the field “swirls” around a point.
The field
has divergence 3 and zero curl: it flows out of every point without swirling. The field
has zero divergence and curl
: it swirls around the
axis with no sources.
Green’s theorem in the plane
Let
be a region of the plane with boundary
traversed anticlockwise. For a field
with continuous derivatives:
![]()
Proof (for the
part)
Let
be normal with respect to the
axis:
,
. Integrating first in
:
![Rendered by QuickLaTeX.com \[ -\iint_D\frac{\partial P}{\partial y}\,dx\,dy = -\int_a^b\big[P(x, g_2(x)) - P(x, g_1(x))\big]\,dx \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-d9d2d773f3d3d41c504953d33e165c79_l3.png)
The boundary is made of the lower curve traversed left to right, giving
, the upper curve traversed right to left, giving
, and any vertical pieces, on which
. The two sides match. The
part is proved the same way with the domain normal with respect to
.
Consequence: area from a boundary integral. With
,
the right side is the area of
:
![]()
It is the principle of the planimeter, the mechanical instrument that measures an area by tracing only its outline, and of the algorithm CAD programs use to compute a polygon’s area from its vertex coordinates.
Surfaces and flux
A surface is described with two parameters,
. The vectors
and
are tangent, and their cross product is normal to the surface, with magnitude equal to the area of the small parallelogram
:
![]()
The flux of a field through an oriented surface is
![]()
and it measures how much field crosses the surface, counting only the perpendicular component. If
is the velocity of a fluid, the flux is the flow rate, in m³/s.
Example. The flux of
through the sphere of radius
, with outward normal: on the sphere
, so
and
.
The divergence theorem (Gauss)
Let
be a solid bounded by the closed surface
, with outward normal
. Then
![]()

(red arrows: outward normals) equals the total of the sources inside the volume
, that is the integral of the divergence. Here the field starts at a source inside and flows out everywhere.The idea: split
into many small cubes. For one cube, the outward flux computed face by face is about
times its volume. Adding over all cubes, the flux through internal faces cancels (what leaves one cube enters its neighbour) and only the flux through the outer surface remains.
Check on the example.
, and
. It matches the flux computed directly.
In Physics 2 it becomes Gauss’s law: the flux of the electric field through a closed surface is proportional to the enclosed charge,
, and in local form
. The divergence theorem is the bridge between the two forms.
Stokes’ theorem
Let
be a surface with boundary
, oriented consistently (right-hand rule: with the thumb along
, the fingers show the direction of the boundary). Then
![]()
The circulation of the field round the boundary equals the flux of the curl through the surface. If
is flat in the
plane, it is exactly Green’s theorem. An important consequence: the flux of a curl depends only on the boundary, not on the surface chosen.
It also gives the characterisation of conservative fields from the lesson on line integrals: if
in a simply connected domain, every closed curve bounds a surface inside the domain, and the circulation is zero.
In Physics 2 it becomes Faraday’s law: the voltage induced around a loop,
, equals minus the rate of change of the magnetic flux through the loop; in local form
. It is the working principle of transformers, generators and wireless charging.
The overall picture
| Theorem | Region | Boundary |
|---|---|---|
| fundamental theorem of calculus | segment | two points |
| conservative fields | curve | two end points |
| Green | plane region | closed curve |
| Stokes | surface | closed curve |
| Gauss | volume | closed surface |
In every row, the integral of a derivative (gradient, curl, divergence) over the region equals the integral of the function over the boundary. In advanced mathematics all these results are a single theorem, the generalised Stokes theorem.
11Ordinary differential equations
A differential equation links an unknown function to its derivatives. It is the natural way of writing the laws of physics, which say how things change: Newton’s second law, the charging of a capacitor, the cooling of a component, the growth of a population. In this lesson we cover the most important first-order equations, the existence and uniqueness theorem, and second-order linear equations with constant coefficients, which describe oscillators and RLC circuits.
Definitions
An ordinary differential equation of order
links
to its derivatives up to
. An initial value problem (Cauchy problem) adds initial conditions: for first order the value
, for second order also the derivative
.
The geometric meaning
A first-order equation
assigns a slope to every point of the plane. Drawing a short dash with that slope at many points gives the direction field, and the solutions are the curves that follow the dashes.

and four solutions with different initial conditions. All those starting with
tend to the equilibrium
: those below rise with the typical S shape, the one above comes down.Existence and uniqueness theorem (Picard-Lindelöf). If
is continuous and has a continuous derivative
near
, the initial value problem has exactly one solution near
. Geometrically: exactly one solution curve passes through each point, and two different solutions never cross. In the figure the solutions never cross the line
, which is itself a solution.
Separable equations
They have the form
. If
, the constant
is a solution. Otherwise separate the variables and integrate:
![]()
Example: Newton’s law of cooling. A heat sink at temperature
in surroundings at
cools as
. Separating:
, so
![]()
The temperature difference halves every
seconds, the same exponential law as a capacitor discharging.
Example: the logistic equation in the figure,
. Separating with partial fractions,
, gives
and
![Rendered by QuickLaTeX.com \[ y(t) = \frac{1}{1 + \left(\frac{1}{y_0} - 1\right)e^{-t}} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-66e67d0dfd0277f027f05b7d954bd250_l3.png)
It is the model of growth that slows as resources run out: populations, the spread of a product on the market, epidemics.
First-order linear equations
![]()
Proof of the solution formula
Let
be an antiderivative of
. Multiplying by the integrating factor
, the left side becomes the derivative of a product:
![]()
Integrating:
![]()
Example: charging a capacitor. In an RC circuit driven by a voltage step
, the capacitor voltage satisfies
. With
,
,
:
![]()
Starting from empty, after a time
the capacitor is at 63% of
, after
at more than 99%.
Second-order linear equations with constant coefficients
![]()
As for linear systems (the Geometry and Algebra lesson on Rouché-Capelli), the general solution is one particular solution plus the general solution of the homogeneous equation. The solutions of the homogeneous equation form a vector space of dimension 2.
The homogeneous equation: the characteristic equation
Looking for solutions of the form
gives
. Three cases:
| Roots | General solution of the homogeneous equation |
|---|---|
| distinct real | |
| repeated real | |
| complex |
The complex case follows from Euler’s formula:
, and the real and imaginary parts are two independent real solutions.
Example: the series RLC circuit with no source,
. The characteristic equation has discriminant
:
: negative real roots, the charge decays without oscillating (overdamped);
: a repeated root, the fastest return without oscillation (critically damped);
: complex roots, a damped oscillation with angular frequency
(underdamped).
They are the same three regimes as the pendulum with friction in the Physics 1 lesson on oscillations: the same equation, with the same solutions.
The particular solution
For forcing terms
that are polynomials, exponentials, sines or cosines, use the method of undetermined coefficients: try a solution of the same form with coefficients to be found. If that form matches a solution of the homogeneous equation (resonance), multiply it by
.
Example.
. The homogeneous equation has solutions
. Try
:
,
. General solution:
. If instead the forcing were
, at the system’s own natural frequency, you would have to try
: the amplitude grows linearly in time, which is undamped resonance.
Beyond: systems and numerical methods
An equation of order
is equivalent to a system of
first-order equations,
, which in the constant-coefficient case is solved with the eigenvalues of
, as seen in Geometry and Algebra. When there is no closed-form solution, numerical methods are used: Euler’s method (
) follows the direction field in small steps, and Runge-Kutta methods do the same with far more accuracy. It is what SPICE does when it simulates a circuit in time.
Exercises
Exercises on ordinary differential equations of the kind set in Mathematical Analysis 2 courses, in three levels: basic, for separable and first-order linear equations; intermediate, with second-order linear equations with constant coefficients, homogeneous and non-homogeneous; exam, with resonance, RC and RLC circuits and the Bernoulli equation. The result is given straight away; the full solution opens with a click.
Basic level
Intermediate level
Exercise 7. A non-homogeneous equation with an exponential term
Find the general solution of
.
✎Exam exercises
3. Functions of several variables: limits and continuity
Exam level
Exercise 9. Absolute extrema on a disc
Find the absolute maximum and minimum of
on the disc
.
Exercise 11. The distance from a plane with Lagrange
Find the point of the plane
closest to the origin and its distance.
8. Double integrals
Exam level
Exercise 8. The volume of a sphere in spherical coordinates
Derive the volume of the sphere of radius
.
Exercise 9. The mass of a hemisphere with variable density
A solid hemisphere
,
, has density
. Compute its mass.
Exercise 11. A volume in cylindrical coordinates
Compute the volume of the solid inside the cylinder
, above
and below the plane
.
11. Ordinary differential equations
Exam level
Exercise 9. Charging a capacitor
In an RC circuit fed by a constant voltage
the capacitor voltage satisfies
, with
. Find
and the time to reach 90% of
.
Exercise 10. An underdamped RLC circuit
Solve
,
,
(for example the current in a discharging series RLC).
✓Solutions
3. Functions of several variables: limits and continuity · Exercise 1. Partial derivatives
Result:
,
.
For the derivative with respect to
you treat
as a constant:
and, by the chain rule,
.
In the same way with respect to
, with
constant:
and
.
3. Functions of several variables: limits and continuity · Exercise 2. Gradient and directional derivative
Result:
.
The gradient is
, which at
equals
. The direction must be normalised:
, so
. For a differentiable function
![]()
The largest directional derivative is
, in the direction of the gradient.
3. Functions of several variables: limits and continuity · Exercise 3. The tangent plane to a surface
Result:
.
The tangent plane to the graph of
at
is
![]()
Here
,
,
:
.
3. Functions of several variables: limits and continuity · Exercise 4. Critical points and the Hessian matrix
Result:
saddle point;
local minimum, with
.
The gradient vanishes when
![Rendered by QuickLaTeX.com \[ \begin{cases} 3x^2 - 3y = 0\\ 3y^2 - 3x = 0 \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-0ddfb3757d5110baf51d19ed7eaf773c_l3.png)
The Hessian matrix is
![]()
At
:
, saddle point. At
:
and
, local minimum, with
.
3. Functions of several variables: limits and continuity · Exercise 5. The minimum of a quadratic function
Result: a single critical point,
, absolute minimum with
.
and
give
, then
,
,
.
The Hessian is constant,
, with determinant 3 and
: positive definite. A quadratic function with a positive definite Hessian is convex, so the local minimum is also absolute:
.
3. Functions of several variables: limits and continuity · Exercise 6. A limit in two variables that exists
Result:
.
In polar coordinates
,
:
![]()
The factor
is bounded (at most 1 in absolute value) and does not depend on
:
, whichever way you approach the origin. The limit is 0.
3. Functions of several variables: limits and continuity · Exercise 7. A limit in two variables that does not exist
Result: along the lines
the value is
, which depends on
.
On the line
(with
) the function equals
![]()
3. Functions of several variables: limits and continuity · Exercise 8. Lagrange multipliers
Result: maximum
at
and
; minimum
at
and
.
The constraint is a closed and bounded set, so the maximum and minimum exist (Weierstrass theorem). With the Lagrangian
:
![Rendered by QuickLaTeX.com \[ \begin{cases} y = 2\lambda x\\ x = 2\lambda y\\ x^2 + y^2 = 2 \end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-0155ba9e8db13061b1345c2a8c784eee_l3.png)
From the first two
. If
then also
, which is not on the constraint; so
. With
you get
and
; with
you get
and
. Comparing the values:
at the points with
,
at those with
.
Check with the parametrisation
,
:
, which ranges between
and
.
3. Functions of several variables: limits and continuity · Exercise 9. Absolute extrema on a disc
Result: minimum
at
; maximum
at
.
Interior:
gives
, which is inside the disc, with
.
Boundary: on the circle
, so
with
. The maximum on the boundary is
for
, the minimum
for
.
Comparing all the candidates: absolute minimum
at
, absolute maximum
at
. You can also see it geometrically:
is the squared distance from
minus 1, and the point of the disc farthest from
is
.
3. Functions of several variables: limits and continuity · Exercise 10. When the Hessian does not decide
Result: for
it is an absolute minimum; for
it is a saddle point. In both cases the Hessian at
is zero.
The second derivatives contain
and
and are all zero at
:
and the Hessian test gives no information. You study the sign of
near the point.
For
:
everywhere, so an absolute minimum. For
: on the
axis
, on the
axis
; in every neighbourhood of the origin
takes values of both signs, so a saddle.
3. Functions of several variables: limits and continuity · Exercise 11. The distance from a plane with Lagrange
Result: the point
, distance
.
Minimise the squared distance,
, subject to the constraint. The Lagrange conditions are
,
,
: the point is
, parallel to the normal
, as expected. In the constraint:
,
, so the point is
and the distance
.
Check with the point-plane distance formula:
.
8. Double integrals · Exercise 1. A double integral on a rectangle
Result:
.
On a rectangle, with a function that is a product of a function of
and one of
, the integral splits into the product of two single integrals (Fubini’s theorem):
![Rendered by QuickLaTeX.com \[ \iint_R xy\,dx\,dy = \int_0^1 x\,dx\cdot\int_0^2 y\,dy = \frac{1}{2}\cdot 2 = 1 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-639ea683c602952ba72901ccac751573_l3.png)
8. Double integrals · Exercise 2. A triangular domain
Result:
.
is normal with respect to the
axis: for each
,
runs from
to
.
![Rendered by QuickLaTeX.com \[ \int_0^1\left(\int_0^x (x + y)\,dy\right)dx = \int_0^1\left(x^2 + \frac{x^2}{2}\right)dx = \int_0^1 \frac{3x^2}{2}\,dx = \frac{1}{2} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-4ca22477956bcbf3ea0732058d831073_l3.png)
8. Double integrals · Exercise 3. The area of a disc in polar coordinates
Result:
.
In polar coordinates
,
the area element is
(the Jacobian is
). The disc becomes the rectangle
,
:
![Rendered by QuickLaTeX.com \[ \int_0^{2\pi}\!\!\int_0^2 r\,dr\,d\theta = 2\pi\cdot\frac{4}{2} = 4\pi \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-ccc0da51ea43def8e627dd5daa10a590_l3.png)
8. Double integrals · Exercise 4. The Gaussian integral
Result:
, which tends to
.
In polar coordinates the function depends only on
, and the factor
of the Jacobian makes the antiderivative immediate:
![Rendered by QuickLaTeX.com \[ \int_0^{2\pi}\!\!\int_0^R e^{-r^2}\,r\,dr\,d\theta = 2\pi\left[-\frac{e^{-r^2}}{2}\right]_0^R = \pi\left(1 - e^{-R^2}\right) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-683a2937002cc715e0570e106f34756d_l3.png)
As
you get
. This is the step leading to the famous result
: the integral over the whole plane is the square of the one over a line.
8. Double integrals · Exercise 5. Changing the order of integration
Result:
.
has no elementary antiderivative, so the given order cannot be followed. The domain is
: the same triangle can be described as
,
. Changing the order:
![Rendered by QuickLaTeX.com \[ \int_0^1\!\!\int_0^x e^{x^2}\,dy\,dx = \int_0^1 x\,e^{x^2}\,dx = \left[\frac{e^{x^2}}{2}\right]_0^1 = \frac{e - 1}{2} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-71202aad83e3fc2d6aff0168653d2811_l3.png)
8. Double integrals · Exercise 6. The volume under a paraboloid
Result:
.
The paraboloid meets the plane
on the circle
. The volume is the integral of the height over the disc of radius 2:
![Rendered by QuickLaTeX.com \[ V = \int_0^{2\pi}\!\!\int_0^2 (4 - r^2)\,r\,dr\,d\theta = 2\pi\left[2r^2 - \frac{r^4}{4}\right]_0^2 = 2\pi(8 - 4) = 8\pi \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-6f4951e5356192688b941a3829b20be4_l3.png)
It is half the volume of the cylinder with the same base and height (
), a known result for the paraboloid.
8. Double integrals · Exercise 7. A triple integral on a cube
Result:
.
As in exercise 1, a product domain and a product function: the integral splits into three equal factors,
.
8. Double integrals · Exercise 8. The volume of a sphere in spherical coordinates
Result:
.
In spherical coordinates (
distance from the origin,
angle from the
axis,
longitude) the Jacobian is
:
![]()
8. Double integrals · Exercise 9. The mass of a hemisphere with variable density
Result:
.
In spherical coordinates
and the hemisphere is
,
:
![Rendered by QuickLaTeX.com \[ m = \int_0^{2\pi}\!\!\int_0^{\pi/2}\!\!\int_0^1 \rho\cos\varphi\cdot\rho^2\sin\varphi\,d\rho\,d\varphi\,d\theta = 2\pi\cdot\frac{1}{2}\cdot\frac{1}{4} = \frac{\pi}{4} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-299251e6a9f4e873ca9ef8af88036423_l3.png)
(
and
.)
8. Double integrals · Exercise 10. The centroid of a half-disc
Result:
.
By symmetry
. The area is
and the moment about the
axis is
![]()
so
: it lies below half the radius, because the part near the
axis is wider.
8. Double integrals · Exercise 11. A volume in cylindrical coordinates
Result:
.
The plane lies above
over the whole disc (
). The volume is
![Rendered by QuickLaTeX.com \[ V = \int_0^{2\pi}\!\!\int_0^1 (r\cos\theta + 2)\,r\,dr\,d\theta = \int_0^{2\pi}\left(\frac{\cos\theta}{3} + 1\right)d\theta = 2\pi \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-45d74ca3ec14eca8126c96ee00da9e6d_l3.png)
The term with
vanishes: what the plane adds for
equals what it removes for
. What is left is the volume of the cylinder of height 2:
.
11. Ordinary differential equations · Exercise 1. Exponential growth
Result:
.
The solutions of
are
: the derivative is proportional to the function. Here
and the initial condition gives
. Check:
.
11. Ordinary differential equations · Exercise 2. A separable equation
Result:
, defined for
.
Separate the variables (
):
. Integrating,
. With
you get
, so
![]()
The solution blows up as
: a non-linear equation can have solutions that exist only on an interval, even if the coefficients are defined everywhere.
11. Ordinary differential equations · Exercise 3. A first-order linear equation
Result:
.
The homogeneous equation
has solutions
. A particular solution is sought in the form of the forcing term,
:
gives
,
. So
and
gives
.
Alternatively, with the integrating factor
:
, which is integrated by parts.
11. Ordinary differential equations · Exercise 4. Distinct real roots
Result:
.
Look for
: substituting gives the characteristic equation
, with roots
and
. The two exponentials are independent and generate all the solutions.
11. Ordinary differential equations · Exercise 5. Complex roots: the harmonic oscillator
Result:
.
The characteristic equation
has roots
, so
. The conditions give
and
,
.
Written as a single sinusoid: amplitude
and phase
. It is an oscillation with angular frequency 2 that does not die out.
11. Ordinary differential equations · Exercise 6. A double root
Result:
.
: double root
. Besides
a second independent solution is needed, and it is
(check by substituting). This is the critically damped case.
11. Ordinary differential equations · Exercise 7. A non-homogeneous equation with an exponential term
Result:
.
The homogeneous equation has roots
. Since
is not a root of the characteristic equation, the particular solution is sought as
:
,
. The general solution is the sum of the homogeneous solution and the particular one.
11. Ordinary differential equations · Exercise 8. Resonance
Result:
.
The forcing term has the same angular frequency as the homogeneous solutions (
are roots): the trial
would give zero. Multiply by
:
. Differentiating twice and substituting:
![]()
The amplitude grows linearly with time: this is resonance, what happens to an undamped system driven at its natural frequency.
11. Ordinary differential equations · Exercise 9. Charging a capacitor
Result:
; 90% is reached at
.
It is first-order linear with constant coefficients. The homogeneous equation gives
, the constant particular solution is
:
, and
gives
.
For 90%:
, so
and
. After one time constant
you are at about
.
11. Ordinary differential equations · Exercise 10. An underdamped RLC circuit
Result:
.
has roots
: an oscillation with angular frequency 2 inside the envelope
. So
.
;
, so
.
11. Ordinary differential equations · Exercise 11. The Bernoulli equation
Result:
.
Dividing by
and setting
, with
, the equation becomes linear:
![]()
Solution:
. With
you get
, so
. Check:
and
, equal.
∑Formula sheet
Series of functions, power series and Taylor series
Pointwise and uniform convergence
![]()
Power series
![Rendered by QuickLaTeX.com \[ \sum_{k=0}^{\infty} a_k\,(x - x_0)^k \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-bbe0b1374c1bd1c9cf69840291c060b2_l3.png)
![]()
![]()
Taylor series
![Rendered by QuickLaTeX.com \[ \sum_{k=0}^{\infty}\frac{f^{(k)}(x_0)}{k!}\,(x - x_0)^k \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-75d3c80896213b54acb1058b18a6808b_l3.png)
Proof: the sine series converges everywhere
![Rendered by QuickLaTeX.com \[ |R_n(x)| \le \frac{|x|^{n+1}}{(n+1)!} \to 0 \quad\text{for every } x \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-0e5c6584293a87694cf1b38273b5ffe5_l3.png)
![Rendered by QuickLaTeX.com \[ \sin x = \sum_{k=0}^{\infty}\frac{(-1)^k x^{2k+1}}{(2k+1)!},\qquad \cos x = \sum_{k=0}^{\infty}\frac{(-1)^k x^{2k}}{(2k)!},\qquad e^x = \sum_{k=0}^{\infty}\frac{x^k}{k!} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-f895701a5aa152b1a8a750a759c337b1_l3.png)
An application: computing with series
![Rendered by QuickLaTeX.com \[ \int_0^1 e^{-x^2}dx = \sum_{k=0}^{\infty}\frac{(-1)^k}{k!\,(2k+1)} = 1 - \frac13 + \frac1{10} - \frac1{42} + \frac1{216} - \dots \approx 0.7468 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-6f71f5f3e7e52e7214e8b66a68864ed5_l3.png)
Fourier series
Trigonometric polynomials and Fourier series
![Rendered by QuickLaTeX.com \[ f(x) \sim \frac{a_0}{2} + \sum_{k=1}^{\infty}\big(a_k\cos kx + b_k\sin kx\big) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-65849316afe5cfdd776ed1eb0823a892_l3.png)
Proof: the coefficient formulas
![Rendered by QuickLaTeX.com \[ \int_{-\pi}^{\pi}\cos kx\cos mx\,dx = \int_{-\pi}^{\pi}\sin kx\sin mx\,dx = \begin{cases}\pi & k = m\\ 0 & k \ne m\end{cases},\qquad \int_{-\pi}^{\pi}\sin kx\cos mx\,dx = 0 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-dd15123a21e3ffdcecdae215177a82b3_l3.png)
![]()
Example: the square wave
![Rendered by QuickLaTeX.com \[ b_k = \frac2\pi\int_0^\pi\sin kx\,dx = \frac{2}{k\pi}(1 - \cos k\pi) = \begin{cases}\dfrac{4}{k\pi} & k \text{ odd}\\ 0 & k \text{ even}\end{cases} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-529d160bc37d998a5c8ca1fdc85c062b_l3.png)
![]()
Parseval's identity and energy
![Rendered by QuickLaTeX.com \[ \frac1\pi\int_{-\pi}^{\pi}f(x)^2\,dx = \frac{a_0^2}{2} + \sum_{k=1}^{\infty}\big(a_k^2 + b_k^2\big) \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-a943b86a1425ca72d6aa1cbed4a1e95d_l3.png)
Complex form
![Rendered by QuickLaTeX.com \[ f(x) = \sum_{k=-\infty}^{\infty}c_k\,e^{ikx},\qquad c_k = \frac{1}{2\pi}\int_{-\pi}^{\pi}f(x)\,e^{-ikx}\,dx \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-d7f7cdf2b818a9d5460b6c0e076fd6f2_l3.png)
Functions of several variables: limits and continuity
Limits
![]()
How to show a limit does not exist
![]()
How to show a limit exists: polar coordinates
![Rendered by QuickLaTeX.com \[ \left|\frac{x^2 y}{x^2 + y^2}\right| = \frac{\rho^3|\cos^2\theta\sin\theta|}{\rho^2} \le \rho \to 0 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-3a099c21c43217bc291a6daa91eea1a5_l3.png)
Partial derivatives, gradient and differentiability
Partial derivatives
![]()
![]()
Differentiability and the tangent plane
![]()
![]()
Directional derivative
![]()
![]()
The chain rule
![]()
Unconstrained maxima and minima
Critical points
![]()
Classification with the Hessian
![]()
A complete example
![]()
An application: the least squares line
![Rendered by QuickLaTeX.com \[ S(m, q) = \sum_{i=1}^{n}(y_i - m x_i - q)^2 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-1cfc298b089563e00596105383d51e92_l3.png)
Constrained extrema and Lagrange multipliers
The geometric idea
![]()
The method
![]()
![]()
Example: the box of largest volume
![]()
The meaning of the multiplier
![]()
Curves, line integrals and conservative fields
The length of a curve
![Rendered by QuickLaTeX.com \[ L = \int_a^b |\mathbf r'(t)|\,dt \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-485970e429c09db55505e16564d2a88c_l3.png)
Line integral of a function
![Rendered by QuickLaTeX.com \[ \int_\gamma f\,ds = \int_a^b f(\mathbf r(t))\,|\mathbf r'(t)|\,dt \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-2a8c55a3aa94d8d46e98987af37c709d_l3.png)
Line integral of a vector field: work
![Rendered by QuickLaTeX.com \[ \int_\gamma\mathbf F\cdot d\mathbf r = \int_a^b\mathbf F(\mathbf r(t))\cdot\mathbf r'(t)\,dt \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-ee4d96a0cb9cae1708c031af50331b81_l3.png)
Conservative fields
![]()
How to recognise a conservative field
![]()
Double integrals
The definition
![]()
Computing it: normal domains
![]()
![Rendered by QuickLaTeX.com \[ \iint_D f\,dx\,dy = \int_a^b\left(\int_{g_1(x)}^{g_2(x)}f(x, y)\,dy\right)dx \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-809277500254ca8ffebd5ed8ef5d7bfc_l3.png)
![Rendered by QuickLaTeX.com \[ \int_0^1\left(\int_0^x xy\,dy\right)dx = \int_0^1 x\cdot\frac{x^2}{2}\,dx = \frac18 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-d6186a71d5b22f5841461fd0d20a99fc_l3.png)
Swapping the order of integration
![Rendered by QuickLaTeX.com \[ \int_0^1\left(\int_0^x e^{x^2}dy\right)dx = \int_0^1 x\,e^{x^2}dx = \frac{e - 1}{2} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-92ff7e773b4a26f35b943640295b879b_l3.png)
Change of variables
![]()
Polar coordinates
![]()
![]()
The Gaussian integral
![Rendered by QuickLaTeX.com \[ I^2 = \iint_{\mathbb R^2}e^{-(x^2 + y^2)}dx\,dy = \int_0^{2\pi}\int_0^\infty e^{-r^2}r\,dr\,d\theta = 2\pi\cdot\frac12 = \pi \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-199759759df06eafb21a653b07d1a703_l3.png)
Triple integrals
Definition and reduction
![]()
![Rendered by QuickLaTeX.com \[ \iiint_V f\,dV = \iint_D\left(\int_{h_1(x, y)}^{h_2(x, y)}f\,dz\right)dx\,dy \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-ebd242390bdc44645daf26fa5cd4e598_l3.png)
![Rendered by QuickLaTeX.com \[ \iiint_V f\,dV = \int_c^d\left(\iint_{S(z)}f\,dx\,dy\right)dz \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-90a79cec1a8485721417f3f93c25b7ce_l3.png)
![Rendered by QuickLaTeX.com \[ V = \int_0^h\pi R^2\left(1 - \frac zh\right)^2dz = \pi R^2\cdot\frac h3 = \frac13\pi R^2 h \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-30ac3ac37a00655749ed8e726b4667b1_l3.png)
Cylindrical coordinates
![]()
![Rendered by QuickLaTeX.com \[ I = \rho\int_0^h\int_0^{2\pi}\int_0^R r^2\cdot r\,dr\,d\theta\,dz = \rho\cdot h\cdot 2\pi\cdot\frac{R^4}{4} = \frac12 MR^2 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-e027e5276fa4417c1666860e6ad9e550_l3.png)
Spherical coordinates
![]()
![]()
Proof of the volume element
![]()
![Rendered by QuickLaTeX.com \[ I = \rho_m\int_0^{2\pi}\int_0^\pi\int_0^R\rho^2\sin^2\varphi\cdot\rho^2\sin\varphi\,d\rho\,d\varphi\,d\theta = \rho_m\cdot 2\pi\cdot\frac43\cdot\frac{R^5}{5} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-e84bc6c9951e2b448260262de74c7d84_l3.png)
An example from electromagnetism
![]()
Surfaces, flux and the theorems of Green, Gauss and Stokes
Green's theorem in the plane
![]()
Proof (for the
part)
![Rendered by QuickLaTeX.com \[ -\iint_D\frac{\partial P}{\partial y}\,dx\,dy = -\int_a^b\big[P(x, g_2(x)) - P(x, g_1(x))\big]\,dx \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-d9d2d773f3d3d41c504953d33e165c79_l3.png)
![]()
Surfaces and flux
![]()
![]()
The divergence theorem (Gauss)
![]()
Stokes' theorem
![]()
Ordinary differential equations
Separable equations
![]()
![]()
![Rendered by QuickLaTeX.com \[ y(t) = \frac{1}{1 + \left(\frac{1}{y_0} - 1\right)e^{-t}} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-66e67d0dfd0277f027f05b7d954bd250_l3.png)
First-order linear equations
![]()
Proof of the solution formula
![]()
![]()
![]()
Second-order linear equations with constant coefficients
![]()
.