Skip to the main content

Lab

Tools for exploring an idea rather than being tested on it. Type any expression and the engine differentiates it rule by rule, plots it and integrates it; then see where the same mathematics leads in probability and actuarial work.

Workbench

One expression drives the derivation, the plot and the definite integral at once. Pick an AP problem below and it loads here, fully solved.

Symbolic solver

Differentiate or integrate an expression and read the full argument, rule by rule.

variables: x

Standard infix notation. Implicit multiplication (2x, 3sin(x)) is understood.

x2sin⁡(x)x^{2} \sin\left(x\right)
Try:

Matrix tools

Determinant by LU factorisation, inverse by Gauss-Jordan elimination, rank from the row echelon form, and Jacobi eigenvalues for symmetric matrices.

Rows
Columns
Determinant
9
Rank
3
Trace
13
Condition (∞-norm)
41.889

Transpose

AT=[432765213]A^{T} = \begin{bmatrix} 4 & 3 & 2 \\ 7 & 6 & 5 \\ 2 & 1 & 3 \end{bmatrix}

Inverse

A−1=[1.444444444−1.222222222−0.5555555556−0.77777777780.88888888890.22222222220.3333333333−0.66666666670.3333333333]A^{-1} = \begin{bmatrix} 1.444444444 & -1.222222222 & -0.5555555556 \\ -0.7777777778 & 0.8888888889 & 0.2222222222 \\ 0.3333333333 & -0.6666666667 & 0.3333333333 \end{bmatrix}

Graphing canvas

The same expression, plotted with its derivative overlaid.

480 samples
f(x)=x2sin⁡(x)f(x) = x^{2} \sin\left(x\right)f′(x)=2xsin⁡(x)+x2cos⁡(x)f'(x) = 2 x \sin\left(x\right) + x^{2} \cos\left(x\right)
window [-5, 5]f(0) = 0
0

Step-by-step solution

Every rule invoked, in the order the engine applied it.

Result

ddx[x2sin⁡(x)]=2xsin⁡(x)+x2cos⁡(x)\frac{d}{dx}\left[x^{2} \sin\left(x\right)\right] = 2 x \sin\left(x\right) + x^{2} \cos\left(x\right)

2 steps

  1. The expression is differentiated with respect to x. Every other symbol is treated as a constant.

    f(x)=x2sin⁡(x)f(x) = x^{2} \sin\left(x\right)

AP Calculus & Statistics visualiser

Exam-style prompts the engine solves in full. Pick one and the derivation appears above, rule by rule.

12 worked problems

Each card names the professional technique its topic becomes. That is the thread this project is built around: the chain rule you learn for the AP exam is the same chain rule that produces an option's delta, and the improper integral in BC is literally the present value of a life annuity.

Probability, statistics & where they lead

The distributions on the AP Statistics formula sheet, plus the parametric mortality laws they turn into once you reach actuarial work.

Probability & survival visualiser

Parametric distributions and mortality laws, with the life-contingency functions derived from them.

closed-form
μx=Bc x,B=0.0003, c=1.09,S(x)=exp⁡ ⁣[−Bln⁡c(c x−1)]\mu_x = Bc^{\,x},\quad B=0.0003,\ c=1.09,\qquad S(x)=\exp\!\left[-\tfrac{B}{\ln c}\left(c^{\,x}-1\right)\right]
10p45{}_{10}p_{45}Survival probability
79.450%

Chance a life aged 45 reaches age 55.

10q45{}_{10}q_{45}Mortality probability
20.550%

The complement — what a term policy actually insures.

e˚45\mathring{e}_{45}Complete expectation
18.76 yr

Area under the conditional survival curve.

e45e_{45}Curtate expectation
18.26 yr

Whole years survived, summed at integer durations.

Aˉ45\bar{A}_{45}Whole-life insurance
0.50649

EPV of 1 paid at the moment of death.

aˉ45\bar{a}_{45}Life annuity
12.33779

EPV of 1 per year paid continuously while alive.

Pˉ(Aˉ45)\bar{P}(\bar{A}_{45})Net annual premium
0.04105

Equivalence principle: EPV(premiums) = EPV(benefits).

Aˉ+δaˉ\bar{A} + \delta\bar{a}Identity check
1

Must equal 1 — an internal consistency check on the quadrature.

3.00e-4
1.09

Mortality compounds geometrically — c ≈ 1.09 doubles the hazard about every 8 years.

45
10
4.0%

Monte Carlo laboratory

Opens on the Central Limit Theorem: average a strongly skewed population and watch the sampling distribution become normal, with the simulated spread checked against σ/√n.

Stochastic simulation

Runs off the main thread, so the interface stays responsive at half a million paths.

worker-offloaded

Distribution of the sample mean for n = 30 drawn from a exponential population.

40,000
20260801
30

Set n = 1 to see the raw population shape, then raise it. The histogram becomes symmetric and bell-shaped no matter which population you pick — that is the theorem.

Xˉn=1n∑i=1nXi  →  d    N ⁣(μ, σ2n)\bar{X}_n = \frac{1}{n}\sum_{i=1}^{n} X_i \;\xrightarrow{\;d\;}\; \mathcal{N}\!\left(\mu,\ \frac{\sigma^2}{n}\right)

Press Run to sample the distribution.