IV. Differential equations and advanced analysis
34. Functional analysis
“Linear functional analysis is really linear algebra in infinite dimension.”
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) dt | Fredholm 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
||(1; -2; 3)||
||1/n||_2
||1/n||_1
||x - 1/2||_{L^3(0; 1)}


||x^3 - 3x||_{C⟨-2; 3⟩}


dist(x, x^2, ⟨0; 1⟩)


holder(x, 1 - x, 3, ⟨0; 1⟩)
convergence(x^n, ⟨0; 1⟩)


convergence(x/(1 + n x^2), ⟨-1; 1⟩)


convergence(n x e^(-n x^2), ⟨0; 1⟩)


inner(x, x^2, ⟨0; 1⟩)


gramschmidt(1, x, x^2, x^3; ⟨-1; 1⟩)


gramschmidt(1, x, x^2, x^3; ⟨-1; 1⟩; w = 1/sqrt(1 - x^2))


approx(e^x, 2, ⟨-1; 1⟩)


||[1 2; 3 4]||![||[1 2; 3 4]||](img/ns-matrix.png)
![||[1 2; 3 4]||](img/ns-matrix-1.png)
![||[1 2; 3 4]||](img/ns-matrix-2.png)
cond([1 1; 1 1.0001])
opnorm(x - t, ⟨0; 1⟩)


fnorm(x^2, ⟨0; 1⟩)


u(x) = x + λ∫_0^1 x t u(t) dt


u(x) = λ∫_0^1 (x + t) u(t) dt


u(x) = 1 + 1/2 ∫_0^1 e^(x t) u(t) dt


u(x) = 1 - ∫_0^x (x - t) u(t) dt


banach(cos x, ⟨0; 1⟩)


banach([0.5 0.1; 0.2 0.3], (1; 2))![banach([0.5 0.1; 0.2 0.3], (1; 2))](img/ns-banach-system.png)
![banach([0.5 0.1; 0.2 0.3], (1; 2))](img/ns-banach-system-1.png)
![banach([0.5 0.1; 0.2 0.3], (1; 2))](img/ns-banach-system-2.png)
picard(y' = x + y, y(0) = 1)


f(x + y) = f(x) + f(y)
f(x + y) + f(x - y) = 2 f(x) f(y)
Known limitations
- The app finds the pointwise limit for sequences whose limit is decided by a power qⁿ or a rational expression in n; more complicated ones (sin nx without dividing by n) it may decline.
- Convergence is examined on a closed bounded interval; an infinite interval not yet.
- The Gram–Schmidt process for at most 6 functions, the approximation by a polynomial of degree at most 5.
- A degenerate kernel with 4 terms at most; with a parameter λ degenerate kernels only, other kernels are solved numerically for a numerical λ. A Volterra equation exactly only with a kernel k(x − t) from zero or a(x)·b(t), otherwise by successive approximations and numerically.
- Matrices up to 6 × 6, at most 6 Picard approximations. Functional equations of the listed types only (and Cauchy's with an extra polynomial term), always with continuous solutions.