IV. Differential equations and advanced analysis

34. Functional analysis

“Linear functional analysis is really linear algebra in infinite dimension.”

– Prof. RNDr. Ondřej Došlý, DrSc., in the opening lecture

The computational part of linear functional analysis. Write a vector's norm as ||(1; -2; 3)||_p (p = 1, 2, ∞ or another number; without the index the app computes all three), a sequence's norm in the space ℓᵖ as ||1/n||_2 – the app sums the series Σ|aₙ|ᵖ, and if it diverges the sequence is not in the space. A function's Lᵖ norm is ||x^2||_{L^2(0; 1)}: the app removes the absolute value by splitting the integral at the function's zeros. The supremum norm ||f||_{C⟨a; b⟩} is the largest value of |f| from the stationary points and the endpoints. dist(f, g, ⟨a; b⟩) gives the distance of two functions in the supremum norm and in L², holder(...) and minkowski(...) check Hölder's and Minkowski's inequality on given functions or vectors.

A sequence of functions convergence(x^n, ⟨0; 1⟩) (or f_n(x) = ..., x ∈ ⟨a; b⟩) is examined in three steps: the pointwise limit piece by piece (a power qⁿ goes to zero for |q| < 1), uniform convergence by sₙ = sup |fₙ − f| from the stationary point xₙ (a discontinuous limit of continuous functions cannot be uniform) and convergence in L² by ∫(fₙ − f)². Where no formula comes out, the app estimates the supremum and the integral numerically. The graph has a slider over the terms f₁ to f₂₀.

The inner product in L² with a weight, inner(f, g, ⟨a; b⟩) (optionally w = ...), also gives the norms and the angle of the functions. gramschmidt(1, x, x^2; ⟨-1; 1⟩) runs the Gram–Schmidt process and recognizes the classical polynomials: Legendre, Chebyshev with the weight 1/√(1 − x²) or √(1 − x²), Laguerre with e^(−x) on ⟨0; ∞) and Hermite with e^(−x²); it works for vectors too. approx(e^x, 2, ⟨-1; 1⟩) finds the best approximation by a polynomial of degree n as the orthogonal projection, with the error and Bessel's inequality. Parseval's identity (and the derivation of Σ 1/n² = π²/6) is in the Fourier series chapter.

Matrix norms are written ||[1 2; 3 4]||_1 (also _2, _oo and _F for Frobenius; without a subscript the app computes them all), the condition number cond([1 2; 3 4]) (optionally p = 1). opnorm(x t, ⟨0; 1⟩) computes the norm of an integral operator with the kernel K(x, t): on C⟨a; b⟩ as the maximum of ∫|K| dt, in L² exactly for a degenerate kernel, otherwise bounded by the Hilbert–Schmidt norm. fnorm(g, ⟨a; b⟩) gives the norm of the functional φ(u) = ∫u·g on C and on L² (Riesz's theorem), with p = ... on Lᵖ.

Write an integral equation of the second kind as you see it: u(x) = x + λ∫_0^1 x t u(t) dt (Fredholm) or u(x) = 1 + ∫_0^x (x − t) u(t) dt (Volterra); a photo works too, or the commands fredholm(K; f; λ; ⟨a; b⟩) and volterra(K; f; λ; a). A degenerate kernel becomes a system of linear equations; with a parameter λ the app finds the characteristic values and the eigenfunctions and decides by Fredholm's alternative. Other kernels are solved by the Neumann series and Nyström's method, a Volterra equation with a kernel k(x − t) by the Laplace transform.

banach(cos x, ⟨0; 1⟩) checks the assumptions of Banach's fixed point theorem (g maps the interval into itself, q = max |g′| < 1), computes the a priori number of steps and iterates with the a posteriori error estimate (optionally eps = ..., x0 = ...); banach(A, b) does the same for the system x = Ax + b. picard(y' = x + y, y(0) = 1) gives Picard's successive approximations with the interval where the operator is a contraction and an error bound. Functional equations of Cauchy's type – f(x + y) = f(x) + f(y), f(x + y) = f(x)f(y), f(xy) = f(x) + f(y), f(xy) = f(x)f(y), Jensen's and d’Alembert's – are solved with the derivation.

How to enter it

||(1; 2)||_1, ||1/n||_2, ||f||_{L^2(a; b)}, ||f||_{C⟨a; b⟩}Norms of a vector, a sequence (ℓᵖ) and a function (Lᵖ, C).
dist(f, g, ⟨a; b⟩)The distance of two functions in the supremum norm and in L².
holder(f, g, p, ⟨a; b⟩), minkowski(f, g, p, ⟨a; b⟩)Hölder's and Minkowski's inequality.
convergence(f_n, ⟨a; b⟩)Pointwise, uniform and L² convergence of a sequence of functions.
inner(f, g, ⟨a; b⟩, w = ...)The inner product, the norms and the angle of functions.
gramschmidt(1, x, x^2; ⟨a; b⟩; w = ...)The Gram–Schmidt process for functions and vectors.
approx(f, n, ⟨a; b⟩, w = ...)The best approximation by a polynomial of degree n.
||[1 2; 3 4]||_1, ||A||_2, ||A||_oo, ||A||_F, cond(A)Matrix norms 1, 2, ∞, Frobenius and the condition number.
opnorm(K(x, t), ⟨a; b⟩), fnorm(g, ⟨a; b⟩)The norm of an integral operator and of the functional ∫u·g.
u(x) = f(x) + λ∫_a^b K(x, t) u(t) dtFredholm and Volterra integral equations of the second kind.
banach(g, ⟨a; b⟩), banach(A, b), picard(y' = f, y(x0) = y0)Banach's fixed point theorem and Picard's approximations.
f(x + y) = f(x) + f(y)Functional equations of Cauchy's type.

Examples

The 1, 2 and ∞ norms of one vector.
Input: ||(1; -2; 3)||
||(1; -2; 3)||
‖1/n‖₂ = π/√6 – the Basel problem.
Input: ||1/n||_2
||1/n||_2
The harmonic series diverges – 1/n is not in ℓ¹.
Input: ||1/n||_1
||1/n||_1
The absolute value removed by splitting the integral.
Input: ||x - 1/2||_{L^3(0; 1)}
||x - 1/2||_{L^3(0; 1)}
||x - 1/2||_{L^3(0; 1)}||x - 1/2||_{L^3(0; 1)}
The supremum norm from the stationary points and the endpoints.
Input: ||x^3 - 3x||_{C⟨-2; 3⟩}
||x^3 - 3x||_{C⟨-2; 3⟩}
||x^3 - 3x||_{C⟨-2; 3⟩}||x^3 - 3x||_{C⟨-2; 3⟩}
The distance in the supremum norm and in L².
Input: dist(x, x^2, ⟨0; 1⟩)
dist(x, x^2, ⟨0; 1⟩)
dist(x, x^2, ⟨0; 1⟩)dist(x, x^2, ⟨0; 1⟩)
Hölder's inequality with the conjugate exponent q = 3/2.
Input: holder(x, 1 - x, 3, ⟨0; 1⟩)
holder(x, 1 - x, 3, ⟨0; 1⟩)
xⁿ – pointwise yes, uniformly no, in L² yes.
Input: convergence(x^n, ⟨0; 1⟩)
convergence(x^n, ⟨0; 1⟩)
convergence(x^n, ⟨0; 1⟩)convergence(x^n, ⟨0; 1⟩)
Uniform convergence: sₙ = 1/(2√n) → 0.
Input: convergence(x/(1 + n x^2), ⟨-1; 1⟩)
convergence(x/(1 + n x^2), ⟨-1; 1⟩)
convergence(x/(1 + n x^2), ⟨-1; 1⟩)convergence(x/(1 + n x^2), ⟨-1; 1⟩)
The travelling hump – pointwise to zero, but sₙ and ‖fₙ‖₂ grow.
Input: convergence(n x e^(-n x^2), ⟨0; 1⟩)
convergence(n x e^(-n x^2), ⟨0; 1⟩)
convergence(n x e^(-n x^2), ⟨0; 1⟩)convergence(n x e^(-n x^2), ⟨0; 1⟩)
The inner product, the norms and the angle of two functions.
Input: inner(x, x^2, ⟨0; 1⟩)
inner(x, x^2, ⟨0; 1⟩)
inner(x, x^2, ⟨0; 1⟩)inner(x, x^2, ⟨0; 1⟩)
Legendre polynomials from 1, x, x², x³.
Input: gramschmidt(1, x, x^2, x^3; ⟨-1; 1⟩)
gramschmidt(1, x, x^2, x^3; ⟨-1; 1⟩)
gramschmidt(1, x, x^2, x^3; ⟨-1; 1⟩)gramschmidt(1, x, x^2, x^3; ⟨-1; 1⟩)
Chebyshev polynomials – the integrals from the weight's moments.
Input: gramschmidt(1, x, x^2, x^3; ⟨-1; 1⟩; w = 1/sqrt(1 - x^2))
gramschmidt(1, x, x^2, x^3; ⟨-1; 1⟩; w = 1/sqrt(1 - x^2))
gramschmidt(1, x, x^2, x^3; ⟨-1; 1⟩; w = 1/sqrt(1 - x^2))gramschmidt(1, x, x^2, x^3; ⟨-1; 1⟩; w = 1/sqrt(1 - x^2))
The best quadratic approximation of eˣ on ⟨−1; 1⟩.
Input: approx(e^x, 2, ⟨-1; 1⟩)
approx(e^x, 2, ⟨-1; 1⟩)
approx(e^x, 2, ⟨-1; 1⟩)approx(e^x, 2, ⟨-1; 1⟩)
The norms 1, 2, ∞ and Frobenius of one matrix.
Input: ||[1 2; 3 4]||
||[1 2; 3 4]||
||[1 2; 3 4]||||[1 2; 3 4]||
A nearly singular matrix – κ ≈ 4·10⁴.
Input: cond([1 1; 1 1.0001])
cond([1 1; 1 1.0001])
The kernel changes its sign – the integral split at t = x.
Input: opnorm(x - t, ⟨0; 1⟩)
opnorm(x - t, ⟨0; 1⟩)
opnorm(x - t, ⟨0; 1⟩)opnorm(x - t, ⟨0; 1⟩)
A functional's norm on C and on L² (Riesz's theorem).
Input: fnorm(x^2, ⟨0; 1⟩)
fnorm(x^2, ⟨0; 1⟩)
fnorm(x^2, ⟨0; 1⟩)fnorm(x^2, ⟨0; 1⟩)
A degenerate kernel with the parameter λ.
Input: u(x) = x + λ∫_0^1 x t u(t) dt
u(x) = x + λ∫_0^1 x t u(t) dt
u(x) = x + λ∫_0^1 x t u(t) dtu(x) = x + λ∫_0^1 x t u(t) dt
Characteristic values and eigenfunctions.
Input: u(x) = λ∫_0^1 (x + t) u(t) dt
u(x) = λ∫_0^1 (x + t) u(t) dt
u(x) = λ∫_0^1 (x + t) u(t) dtu(x) = λ∫_0^1 (x + t) u(t) dt
A non-degenerate kernel – the Neumann series and Nyström's method.
Input: u(x) = 1 + 1/2 ∫_0^1 e^(x t) u(t) dt
u(x) = 1 + 1/2 ∫_0^1 e^(x t) u(t) dt
u(x) = 1 + 1/2 ∫_0^1 e^(x t) u(t) dtu(x) = 1 + 1/2 ∫_0^1 e^(x t) u(t) dt
A Volterra equation by the Laplace transform – cos x.
Input: u(x) = 1 - ∫_0^x (x - t) u(t) dt
u(x) = 1 - ∫_0^x (x - t) u(t) dt
u(x) = 1 - ∫_0^x (x - t) u(t) dtu(x) = 1 - ∫_0^x (x - t) u(t) dt
The fixed point of cos x with the a priori and a posteriori estimates.
Input: banach(cos x, ⟨0; 1⟩)
banach(cos x, ⟨0; 1⟩)
banach(cos x, ⟨0; 1⟩)banach(cos x, ⟨0; 1⟩)
The system x = Ax + b, a contraction in the ∞ norm.
Input: banach([0.5 0.1; 0.2 0.3], (1; 2))
banach([0.5 0.1; 0.2 0.3], (1; 2))
banach([0.5 0.1; 0.2 0.3], (1; 2))banach([0.5 0.1; 0.2 0.3], (1; 2))
Picard's approximations and the exact solution.
Input: picard(y' = x + y, y(0) = 1)
picard(y' = x + y, y(0) = 1)
picard(y' = x + y, y(0) = 1)picard(y' = x + y, y(0) = 1)
Cauchy's equation – f(x) = cx.
Input: f(x + y) = f(x) + f(y)
f(x + y) = f(x) + f(y)
d’Alembert's equation – cos and cosh.
Input: f(x + y) + f(x - y) = 2 f(x) f(y)
f(x + y) + f(x - y) = 2 f(x) f(y)

Known limitations