iLabs Shunya

Shunya / Calculus Lab

Shunya · Maths lab

Calculus lab

Type any function and watch calculus happen. Squeeze x towards a point to see a limit, shrink a secant into a tangent to get the derivative, find where a curve peaks and dips, solve real optimisation problems, watch rectangles add up to an integral, and follow a differential equation through its slope field.

The maths behind it

What each mode covers

Limits — type any f(x) and squeeze x towards a from both sides: one-sided limits, infinite limits, oscillation, and whether f is continuous or differentiable there. Class 11 limits and class 12 continuity.
Derivative — a secant you can shrink into a tangent, the difference quotient table, the symbolic derivative, tangent and normal lines and the graph of f′. Class 11 derivatives and class 12 tangents and normals.
Maxima & minima — the curve coloured where it rises and falls, stationary points classified by the first and second derivative tests, points of inflection, concavity and absolute extrema on an interval. Class 12 applications of derivatives.
Optimisation — five classic problems (fenced rectangle, pen against a wall, open box, can of least metal, rectangle in a semicircle) with the four-step working. Class 12 applications of derivatives.
Integrals — Riemann sums with left, right, midpoint and trapezoid rules, the exact integral, the error, signed against total area, and the area function that shows the fundamental theorem. Class 12 integrals.
Differential equations — slope fields, a draggable starting point, Runge–Kutta and Euler solutions and the exact solution for the standard first-order equations. Class 12 differential equations.

Part of Shunya. See the syllabus map for the chapters these modes map to. The Function & Graph Explorer is a good place to look at a function before you differentiate it. Numbers here are computed live from your function, so a few results are numerical estimates and are shown to four decimals.

Formulas used in this lab

Limits Class 11

Definition
limxaf(x)=L\lim_{x \to a} f(x) = L
The limit exists when
limxaf(x)=limxa+f(x)\lim_{x \to a^-} f(x) = \lim_{x \to a^+} f(x)
Algebra of limits
lim(f±g)=limf±limg,lim(fg)=limflimg\lim (f \pm g) = \lim f \pm \lim g,\qquad \lim (fg) = \lim f \cdot \lim g
Standard limits
limx0sinxx=1,limx0ex1x=1\lim_{x \to 0}\dfrac{\sin x}{x} = 1,\qquad \lim_{x \to 0}\dfrac{e^x - 1}{x} = 1
More standard limits
limx0ln(1+x)x=1,limxaxnanxa=nan1\lim_{x \to 0}\dfrac{\ln(1 + x)}{x} = 1,\qquad \lim_{x \to a}\dfrac{x^n - a^n}{x - a} = na^{n-1}
The number e
limn(1+1n)n=e\lim_{n \to \infty}\left(1 + \dfrac{1}{n}\right)^n = e

Derivative Class 11

First principles
f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0}\dfrac{f(x + h) - f(x)}{h}
Sum and product
(u±v)=u±v,(uv)=uv+uv(u \pm v)' = u' \pm v',\qquad (uv)' = u'v + uv'
Quotient
(uv)=uvuvv2\left(\dfrac{u}{v}\right)' = \dfrac{u'v - uv'}{v^2}
Chain rule
ddxf(g(x))=f(g(x))g(x)\dfrac{d}{dx}f(g(x)) = f'(g(x))\,g'(x)
Power and exponential
(xn)=nxn1,(ex)=ex,(lnx)=1x(x^n)' = nx^{n-1},\qquad (e^x)' = e^x,\qquad (\ln x)' = \dfrac{1}{x}
Trigonometric
(sinx)=cosx,(cosx)=sinx,(tanx)=sec2x(\sin x)' = \cos x,\quad (\cos x)' = -\sin x,\quad (\tan x)' = \sec^2 x

Continuity and differentiability Class 12

Continuous at a
limxaf(x)=f(a)\lim_{x \to a} f(x) = f(a)
Differentiable at a
limh0f(a+h)f(a)h=limh0+f(a+h)f(a)h\lim_{h \to 0^-}\dfrac{f(a + h) - f(a)}{h} = \lim_{h \to 0^+}\dfrac{f(a + h) - f(a)}{h}
Differentiable implies continuous
f(a) existsf is continuous at af'(a) \text{ exists} \Rightarrow f \text{ is continuous at } a
The reverse is false (|x| is continuous at 0 but not differentiable)
f(x)=xf(x) = |x|

Tangent and normal Class 12

Slope of the tangent
m=f(x0)m = f'(x_0)
Tangent line
yy0=f(x0)(xx0)y - y_0 = f'(x_0)\,(x - x_0)
Normal line
yy0=1f(x0)(xx0)y - y_0 = -\dfrac{1}{f'(x_0)}\,(x - x_0)
Rate of change of y with respect to x
dydx\dfrac{dy}{dx}

Increasing, decreasing, maxima and minima Class 12

Increasing and decreasing
f(x)>0increasing,f(x)<0decreasingf'(x) > 0 \Rightarrow \text{increasing},\qquad f'(x) < 0 \Rightarrow \text{decreasing}
Stationary points
f(x)=0f'(x) = 0
First derivative test
f changes +max,+minf' \text{ changes } + \to - \Rightarrow \max,\qquad - \to + \Rightarrow \min
Second derivative test
f(c)=0, f(c)<0max;f(c)>0minf'(c) = 0,\ f''(c) < 0 \Rightarrow \max;\quad f''(c) > 0 \Rightarrow \min
Concavity and inflection
f>0: concave up,f<0: concave downf'' > 0:\ \text{concave up},\quad f'' < 0:\ \text{concave down}
Absolute extrema on [a, b]: compare the ends and every stationary point c
f(a), f(b), f(c)f(a),\ f(b),\ f(c)

Optimisation Class 12

Fixed perimeter P
A(x)=x(P2x),x=P4A(x) = x\left(\dfrac{P}{2} - x\right),\qquad x = \dfrac{P}{4}
Pen against a wall, fencing L
A(x)=x(L2x),x=L4A(x) = x(L - 2x),\qquad x = \dfrac{L}{4}
Open box from a square sheet s
V(x)=x(s2x)2,x=s6V(x) = x(s - 2x)^2,\qquad x = \dfrac{s}{6}
Can of volume V, least metal
S(r)=2πr2+2Vr,r=V2π3, h=2rS(r) = 2\pi r^2 + \dfrac{2V}{r},\qquad r = \sqrt[3]{\dfrac{V}{2\pi}},\ h = 2r
Rectangle in a semicircle of radius R
A(x)=2xR2x2,x=R2A(x) = 2x\sqrt{R^2 - x^2},\qquad x = \dfrac{R}{\sqrt{2}}
The four steps
write f(x); f(x)=0; check f(x); state the answer\text{write } f(x);\ f'(x) = 0;\ \text{check } f''(x);\ \text{state the answer}

Integrals Class 12

Riemann sum
i=1nf(xi)Δx,Δx=ban\sum_{i=1}^{n} f(x_i)\,\Delta x,\qquad \Delta x = \dfrac{b - a}{n}
Definite integral
abf(x)dx=limni=1nf(xi)Δx\int_a^b f(x)\,dx = \lim_{n \to \infty}\sum_{i=1}^{n} f(x_i)\,\Delta x
Fundamental theorem
abf(x)dx=F(b)F(a),F(x)=f(x)\int_a^b f(x)\,dx = F(b) - F(a),\qquad F'(x) = f(x)
Standard integrals
xndx=xn+1n+1,exdx=ex,dxx=lnx\int x^n dx = \dfrac{x^{n+1}}{n + 1},\quad \int e^x dx = e^x,\quad \int \dfrac{dx}{x} = \ln x
Trigonometric
sinxdx=cosx,cosxdx=sinx\int \sin x\,dx = -\cos x,\qquad \int \cos x\,dx = \sin x
Properties
abf=baf,abf=acf+cbf\int_a^b f = -\int_b^a f,\qquad \int_a^b f = \int_a^c f + \int_c^b f
Trapezoid rule
Δx2[f(x0)+2f(x1)++f(xn)]\dfrac{\Delta x}{2}\,\bigl[f(x_0) + 2f(x_1) + \dots + f(x_n)\bigr]

Differential equations Class 12

Order and degree
order=highest derivative,degree=its power\text{order} = \text{highest derivative},\qquad \text{degree} = \text{its power}
Variable separable
dydx=f(x)g(y)dyg(y)=f(x)dx\dfrac{dy}{dx} = f(x)g(y) \Rightarrow \int \dfrac{dy}{g(y)} = \int f(x)\,dx
Growth and decay
dydx=kyy=Cekx\dfrac{dy}{dx} = ky \Rightarrow y = Ce^{kx}
Linear first order
dydx+Py=Q,integrating factor ePdx\dfrac{dy}{dx} + Py = Q,\qquad \text{integrating factor } e^{\int P\,dx}
Euler's method
yn+1=yn+hf(xn,yn)y_{n+1} = y_n + h\,f(x_n, y_n)
Particular solution
use y(x0)=y0 to find the constant C\text{use } y(x_0) = y_0 \text{ to find the constant } C