iLabs Shunya

Shunya / Function & Graph Explorer

Shunya · Maths lab

Function & graph explorer

Drag a dot or a slider and watch the graph change, with the roots, vertex and working updating as you go. Plot lines, quadratics and polynomials, type any function, solve a pair of equations by graph, and try the distance and section formulas on points you place yourself.

The maths behind it

What each mode covers

Liney=mx+cy = mx + c with two draggable dots. Slope as rise ÷ run, the angle with the x-axis, and both intercepts. Class 9 coordinate geometry and linear equations.
Quadraticy=ax2+bx+cy = ax^2 + bx + c with a draggable vertex, the discriminant, real or complex zeros, standard, vertex and factored forms, and the sum and product of zeros. Class 10 quadratics and class 11 complex numbers.
Polynomial — cubics and quartics from coefficient sliders or by dragging their zeros, with turning points, end behaviour and the relations between zeros and coefficients. Class 9–10 polynomials.
Any function — type your own f(x) with sliders for a, b, c, then read its zeros, symmetry (even or odd), tangent and derivative, and reflect it in y = x to see the inverse. Class 11–12 functions.
Pair of lines — two linear equations drawn together. One solution, none or infinitely many, with the ratio test and Cramer's rule shown step by step. Class 10 pair of linear equations.
Coordinate tools — drag points A, B and C for the distance, midpoint, slope, section formula, area of a triangle and centroid. Class 9–11 coordinate geometry and straight lines.

Part of Shunya. See the syllabus map for the chapters these modes map to. Every number on this page is computed live from what you drag.

Formulas used in this lab

Coordinate geometry and the graph of a line Class 9

Equation of a line
y=mx+cy = mx + c
Slope (rise ÷ run)
m=y2y1x2x1m = \dfrac{y_2 - y_1}{x_2 - x_1}
y-intercept (put x = 0)
(0, c)(0,\ c)
x-intercept (put y = 0)
x=cmx = -\dfrac{c}{m}
Angle the line makes with the x-axis
θ=tan1m\theta = \tan^{-1} m

Pair of linear equations and zeros of a quadratic Class 10

Pair of linear equations
a1x+b1y=c1,a2x+b2y=c2a_1x + b_1y = c_1,\qquad a_2x + b_2y = c_2
Determinants (Cramer's rule)
D=a1b2a2b1,Dx=c1b2c2b1,Dy=a1c2a2c1D = a_1b_2 - a_2b_1,\quad D_x = c_1b_2 - c_2b_1,\quad D_y = a_1c_2 - a_2c_1
The one solution when D ≠ 0
x=DxD,y=DyDx = \dfrac{D_x}{D},\qquad y = \dfrac{D_y}{D}
One solution (lines cross)
a1a2b1b2\dfrac{a_1}{a_2} \ne \dfrac{b_1}{b_2}
No solution (parallel lines)
a1a2=b1b2c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} \ne \dfrac{c_1}{c_2}
Infinitely many (same line)
a1a2=b1b2=c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} = \dfrac{c_1}{c_2}
Quadratic
y=ax2+bx+cy = ax^2 + bx + c
Discriminant
D=b24acD = b^2 - 4ac
Zeros (D > 0)
x=b±D2ax = \dfrac{-b \pm \sqrt{D}}{2a}
Repeated zero (D = 0)
x=b2ax = -\dfrac{b}{2a}
Complex roots (D < 0)
x=b±iD2ax = \dfrac{-b \pm i\sqrt{-D}}{2a}
Sum and product of the zeros
α+β=ba,αβ=ca\alpha + \beta = -\dfrac{b}{a},\qquad \alpha\beta = \dfrac{c}{a}
Vertex form
y=a(xh)2+k,h=b2a, k=cb24ay = a(x - h)^2 + k,\quad h = -\dfrac{b}{2a},\ k = c - \dfrac{b^2}{4a}
Factored form
y=a(xα)(xβ)y = a(x - \alpha)(x - \beta)

Polynomials: zeros and the shape of the graph Class 10

Cubic
y=ax3+bx2+cx+dy = ax^3 + bx^2 + cx + d
Sum of the zeros
α+β+γ=ba\alpha + \beta + \gamma = -\dfrac{b}{a}
Sum of products of pairs
αβ+βγ+γα=ca\alpha\beta + \beta\gamma + \gamma\alpha = \dfrac{c}{a}
Product of the zeros
αβγ=da\alpha\beta\gamma = -\dfrac{d}{a}
Polynomial built from its zeros
y=a(xα)(xβ)(xγ)y = a(x - \alpha)(x - \beta)(x - \gamma)\cdots
Number of real zeros of a degree-n polynomial
n\le n

Functions, symmetry and coordinate geometry Class 11

Even function (symmetric about the y-axis)
f(x)=f(x)f(-x) = f(x)
Odd function (half-turn symmetry about the origin)
f(x)=f(x)f(-x) = -f(x)
Stretched sine wave
y=asin(bx)+cy = a\sin(bx) + c
Amplitude, period, vertical lift
a,2πb,c|a|,\qquad \dfrac{2\pi}{|b|},\qquad c
Where a function is undefined
1x: x=0,tanx: x=π2+nπ\dfrac{1}{x}:\ x = 0, \qquad \tan x:\ x = \dfrac{\pi}{2} + n\pi
Distance between two points
AB=(x2x1)2+(y2y1)2AB = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}
Midpoint
M=(x1+x22, y1+y22)M = \left(\dfrac{x_1 + x_2}{2},\ \dfrac{y_1 + y_2}{2}\right)
Section formula (internal, m : n)
P=(mx2+nx1m+n, my2+ny1m+n)P = \left(\dfrac{mx_2 + nx_1}{m + n},\ \dfrac{my_2 + ny_1}{m + n}\right)
Area of a triangle
12x1(y2y3)+x2(y3y1)+x3(y1y2)\tfrac{1}{2}\,\bigl|\,x_1(y_2 - y_3) + x_2(y_3 - y_1) + x_3(y_1 - y_2)\,\bigr|

One-one functions, inverses and a first look at slope Class 12

Inverse function
f1(f(x))=xf^{-1}\bigl(f(x)\bigr) = x
Reflection in y = x
(a, b)  (b, a)(a,\ b) \ \longleftrightarrow\ (b,\ a)
One-one test
f(x1)=f(x2)x1=x2f(x_1) = f(x_2) \Rightarrow x_1 = x_2
Derivative (slope of the tangent)
f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \dfrac{f(x + h) - f(x)}{h}
Tangent line at x₀
yf(x0)=f(x0)(xx0)y - f(x_0) = f'(x_0)\,(x - x_0)
Power rule
ddxxn=nxn1\dfrac{d}{dx}\,x^n = n x^{n-1}
Sum, product and quotient rules
(u±v)=u±v,(uv)=uv+uv,(uv)=uvuvv2(u \pm v)' = u' \pm v',\quad (uv)' = u'v + uv',\quad \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\bigl(g(x)\bigr) = f'\bigl(g(x)\bigr)\cdot g'(x)
Standard derivatives
(sinx)=cosx, (cosx)=sinx, (tanx)=sec2x, (ex)=ex, (lnx)=1x(\sin x)' = \cos x,\ (\cos x)' = -\sin x,\ (\tan x)' = \sec^2 x,\ (e^x)' = e^x,\ (\ln x)' = \dfrac{1}{x}