LeoMath

Explore

Mathematical experiments computed live in your browser. Each one is tied to a concept's principles and derivation.

A𝐞1, A𝐞2

Linear transformation

Drag the basis vectors and watch a matrix stretch, shear, rotate and flip the plane; see the determinant and eigenvectors change with it.

Related concept: Linear maps

yn+1=yn+hΦ(tn,yn)

Numerical ODE explorer

Change initial values, parameters and step size; compare Euler and RK4 on the same equation and watch the phase portrait.

Related concept: Numerical solutions

limh→0⁡ah−1h

Why eˣ is its own derivative

Drag the base a and the step h; watch when the difference-quotient curve coincides with aˣ.

Related concept: The derivative

f(x0+h)−f(x0)h→f′(x0)

Secant becomes tangent

Shrink the distance h between two points and watch the secant slope approach the tangent slope: difference quotient → derivative.

Related concept: The derivative

∑f(ξi)Δxi→∫abf

Riemann sums

Increase the number of subintervals and compare how left, right and midpoint sampling approach the same area.

Related concept: The integral

∑k≤nf(k)(a)k!(x−a)k

Taylor approximation

Raise the polynomial order step by step: see it hug the function near the centre, the error grow outward, and where the radius of convergence ends.

Related concept: Taylor expansion

The birthday problem

Change the group size, simulate class after class, and watch the frequency approach the formula; compare the exact value with the exponential bound.

Related concept: Probability spaces

Bayes in screening

A thousand people, split by illness and test result. Change the prevalence, sensitivity and false-positive rate and see what share of positives are really ill; then retest the positives.

Related concept: Conditioning & Bayes

Conditioning as a ratio of areas

Draw the sample space as a unit square with A as its left column. Adjust P(A), P(B), P(A∩B) and watch the height of B inside and outside A; then condition on B and look only inside it.

Related concept: Conditioning & Bayes

ε–N: trapping a sequence in a band

Draw a band of half-width ε around a candidate limit L and find the last term outside it. Shrink ε and watch N grow; move L to a wrong value, or pick a sequence with no limit, and see why no N exists.

Related concept: Limits

Bases and coordinates

Drag two basis vectors and a vector v; see the skewed grid spanned by b₁, b₂ and the coordinates (c₁, c₂) of v in that basis. Change the basis: v stays put, its coordinates change. When the basis vectors are collinear, coordinates either do not exist or are not unique.

Related concept: Vectors

Projection and the Cauchy–Schwarz slack

Drag u and v and see the projection of u onto v and what is left over; two bars compare |⟨u,v⟩| with ‖u‖‖v‖. Then switch to a weighted inner product: perpendicularity, the unit circle and the projection all change, and the inequality still holds.

Related concept: Inner products & Cauchy–Schwarz

From binomial to Poisson

Run n independent trials, each succeeding with probability λ/n. The bars are the distribution of the number of successes, the dots the Poisson law; keep the average λ fixed, raise n, and watch the two merge and how fast the distance shrinks.

Related concept: Random variables