Calculus I · Chapter 1

Limits & Continuity

The language of approaching — not arriving

The limit describes what value a function approaches as its input draws near some point, not necessarily the value at that point. We write \(\lim_{x\to a}f(x)=L\) when \(f(x)\) can be made arbitrarily close to \(L\) by taking \(x\) close to \(a\) from both sides. If left and right limits disagree, the limit does not exist (DNE).

Move \(a\) to choose an approach point and adjust \(\delta\) for the neighborhood size. Try each function to experience removable holes, jump discontinuities, and vertical asymptotes.

ε-δ Definition
\(\displaystyle\lim_{x \to a} f(x) = L\)

\(\forall\,\varepsilon>0,\ \exists\,\delta>0\,:\)
\(0<|x-a|<\delta\)
\(\Rightarrow|f(x)-L|<\varepsilon\)
Interactive — click graph to place a
Function
Approach point a 0.00
Neighborhood \(\delta\) 0.60
f(x) = sin(x)/x
click to place a
💡 Try sin(x)/x: f(0) undefined, yet \(\lim_{x\to 0}\sin(x)/x=1\). Switch to |x|/x for a jump discontinuity — left and right limits disagree so the limit DNE.
\(a\)
0
Left limit
Right limit
Limit \(L\)
\(f(a)\)
Exists?
Calculus I · Chapter 2

The Derivative

Instantaneous rate of change — the tangent line as a limit

The average rate of change over \([x_0,x_0+h]\) is the slope of the secant line through two points. As \(h\to 0\), the secant pivots toward the tangent line at \(x_0\). The slope of this limiting tangent is the derivative \(f'(x_0)\).

Click the graph to place \(x_0\), then press Animate h→0 to watch the secant automatically converge to the tangent.

Limit Definition
\(\displaystyle f'(x_0)=\lim_{h\to 0}\frac{f(x_0{+}h)-f(x_0)}{h}\)

— solid = tangent
·· dashed = secant
Interactive — click graph to place x₀
\(f(x)\)
Point \(x_0\) 1.00
Step \(h\) (→0) 1.00
f(x) = x²
click to place x₀
💡 For x² at x₀=2: drag h from 2 to 0.01 — the secant slope converges to exactly 4, confirming f′(2)=4.
\(x_0\)
1.0000
\(f(x_0)\)
Secant slope
\(f'(x_0)\) tangent
Calculus I · Chapter 3

Curve Sketching

Reading a function's geometry through its derivatives

The first derivative \(f'(x)\) is positive where \(f\) rises, negative where it falls, and zero at critical points. The second derivative \(f''(x)\) captures concavity — where concavity switches we have an inflection point.

Toggle the three curves and click the graph to move the trace point.

Key Relationships
\(f'>0\Rightarrow\) increasing
\(f'<0\Rightarrow\) decreasing
\(f'=0\Rightarrow\) critical pt

\(f''>0\Rightarrow\) concave up
\(f''<0\Rightarrow\) concave dn
\(f''=0\Rightarrow\) inflection
Interactive — click graph to set trace
\(f(x)\)
Trace \(x\) 0.00
Show
f(x)
f′
f″
f · f′ · f″
click to set trace
💡 For x³−3x: drag through x=±1 to find critical points where f′=0. Local max at x=−1 has f″<0 (concave down); local min at x=1 has f″>0 (concave up).
\(x\)
0
\(f(x)\)
\(f'(x)\)
\(f''(x)\)
Calculus I · Chapter 4

Optimization

Finding the largest and smallest values on a closed interval

The Closed Interval Method: global extrema on \([a,b]\) occur only at endpoints or at critical points inside \((a,b)\) where \(f'=0\). Evaluate \(f\) at all candidates and compare. Drag the interval bounds to see how the extrema shift.

Closed Interval Method
1. Find \(c\in(a,b)\)
   where \(f'(c)=0\)
2. Eval \(f\) at \(a,b,c\)
3. Largest = global max
   Smallest = global min
Interactive
\(f(x)\)
Left bound \(a\) −1.00
Right bound \(b\) 3.00
global extrema on [a,b]
hover to read values
💡 Try x³−3x²+1 on [−1,3]: local max near x=0, local min near x=2. Move left bound past x=0 — the global max shifts from interior critical point to endpoint.
Global Max f=
at x=
Global Min f=
at x=
Calculus I · Chapter 5

Riemann Sums

Approximating area with rectangles — as n→∞ the exact integral emerges

A Riemann sum approximates area by partitioning \([a,b]\) into \(n\) subintervals of width \(\Delta x=(b-a)/n\) and placing a rectangle of height \(f(x_i^*)\) on each. Four methods — Left, Right, Midpoint, Trapezoid — all converge to \(\int_a^b f\,dx\) as \(n\to\infty\), with midpoint and trapezoid converging ~4× faster.

Riemann Sum
\(\displaystyle\sum_i f(x_i^*)\Delta x\to\int_a^b f\,dx\)

\(\Delta x=\dfrac{b-a}{n}\)
Interactive
\(f(x)\)
Method
Left
Right
Mid
Trap
Subdivisions n 8
\(a\) 0.00
\(b\) 3.00
Riemann approximation
hover to read f(x)
💡 Set n=4 Left vs Midpoint — compare errors. Double to n=8: Left error halves, Midpoint drops to ~¼. This is the second-order convergence advantage.
n
8
Riemann sum
Exact ∫f dx
|Error|
Calculus I · Chapter 6

The Definite Integral

Net signed area — above the axis positive, below negative

The definite integral \(\int_a^b f(x)\,dx\) measures signed area. Regions above contribute positively; below negatively. The integral returns the net result — they can cancel. If \(f(t)\) is velocity, the integral gives displacement (net position change).

Signed Area
\(\displaystyle\int_a^b f\,dx\)
\(=(\text{above})-(\text{below})\)

Dark blue = positive
Light blue = negative
Interactive
\(f(x)\)
Lower bound \(a\) 0.00
Upper bound \(b\) 3.14
\(\int_a^b f(x)\,dx\)
hover to read f(x)
💡 Try x²−4 on [−2,2]: positive and negative areas cancel — net = 0. Move b to 3 to add the positive region back.
Positive area
Negative area
Net ∫f dx
Calculus I · Chapter 7

Fundamental Theorem of Calculus

Differentiation and integration are inverse operations

Part 1: \(F(x)=\int_a^x f(t)\,dt\Rightarrow F'(x)=f(x)\). The running total's slope equals \(f\). Part 2: \(\int_a^b f\,dx=F(b)-F(a)\) — just evaluate any antiderivative at the bounds and subtract. Click or drag \(x\) to watch \(F(x)\) accumulate signed area.

FTC Parts 1 & 2
Part 1: \(\frac{d}{dx}\int_a^x f\,dt=f(x)\)

Part 2: \(\int_a^b f\,dx=F(b)-F(a)\)
Interactive — click graph to set x
\(f(t)\)
Lower bound \(a\) 0.00
Upper bound \(x\) 2.00
\(F(x)=\int_a^x f(t)\,dt\)
click to set x
💡 Drag x rightward through sin(t): F(x) rises through the positive hump (0→π), then falls as the negative hump accumulates (π→2π).
\(x\)
2.00
\(F(x)=\int_a^x f\,dt\)
\(F'(x)=f(x)\)
Calculus I · IB AA HL Topic 5.13

L'Hôpital's Rule

Resolving \(\tfrac{0}{0}\) and \(\tfrac{\infty}{\infty}\) indeterminate forms

When substituting \(x=a\) into \(f(x)/g(x)\) gives \(0/0\) or \(\infty/\infty\), the limit is indeterminate. L'Hôpital's Rule says we may replace the ratio with \(f'(x)/g'(x)\) and evaluate again. Both curves approach the same limit \(L\) as \(x\to a\).

The dashed curve is \(f/g\) (the original ratio). The solid curve is \(f'/g'\) (after applying the rule). Both converge to the same \(L\).

L'Hôpital's Rule
If \(\dfrac{f(a)}{g(a)}=\dfrac{0}{0}\) or \(\dfrac{\infty}{\infty}\):

\(\displaystyle\lim_{x\to a}\frac{f}{g}=\lim_{x\to a}\frac{f'}{g'}\)

Dashed = f/g   Solid = f′/g′
Interactive — hover to compare both ratios
Indeterminate form
f/g (dashed) vs f′/g′ (solid)
hover to compare
💡 For sin(x)/x: at x=0 you get 0/0 but both curves converge to L=1. Try (1−cos x)/x² — the rule must be applied twice: first gives sin(x)/2x (still 0/0), second gives cos(x)/2 = 1/2.
Form
f/g near a
Limit L
f′/g′ near a
Calculus I · IB AA HL Topic 5.8

Implicit Differentiation

Tangent lines on curves defined by F(x,y)=0

When a curve can't be written as \(y=f(x)\), we differentiate both sides with respect to \(x\), treating \(y\) as an implicit function and applying the chain rule to every \(y\)-term. The result: \(dy/dx=-F_x/F_y\).

Drag the angle slider to trace a point around the curve and read the tangent slope. The tangent is undefined at vertical tangent points where \(F_y=0\).

Implicit Rule
\(F(x,y)=0\)

\(\dfrac{dy}{dx}=-\dfrac{F_x}{F_y}\)

Circle: \(x^2+y^2=9\)
\(\Rightarrow\dfrac{dy}{dx}=-\dfrac{x}{y}\)
Interactive — drag angle to trace point
Curve
Angle \(\theta\) 45°
F(x,y)=0
drag angle to trace
💡 On the circle: at θ=0° the tangent is vertical (slope undef, Fᵧ=0). At θ=90° it is horizontal (Fₓ=0). The formula −x/y confirms both.
Point (x,y)
dy/dx
Tangent eqn
Calculus I · IB AA HL Topic 5.9

Related Rates

Using the chain rule to connect rates of change in geometric quantities

Related rates uses implicit differentiation with respect to time: differentiate both sides of a formula, substitute known rates, and solve for the unknown rate. Drag the slider to animate the geometry and read the computed rate.

Chain Rule in Time
Circle: \(A=\pi r^2\)
\(\frac{dA}{dt}=2\pi r\frac{dr}{dt}\)

Ladder: \(x^2+y^2=L^2\)
\(x\dot x+y\dot y=0\)

Sphere: \(\frac{dV}{dt}=4\pi r^2\frac{dr}{dt}\)
Interactive — drag slider to animate
Scenario
Time t 2.00
Rate dr/dt or dx/dt 1.00
Expanding circle
rates shown in readout
💡 Ladder: as the base slides right, the top falls faster and faster. Near y=0 the rate dy/dt→−∞ — the classic IB surprise.
Primary var.
Known rate
Found rate
Formula
Calculus II · Chapter 1

Taylor Series

Approximating any smooth function with polynomials centered at a point

A Taylor series centered at \(a\): \(T_n(x)=\sum_{k=0}^n\frac{f^{(k)}(a)}{k!}(x-a)^k\). Each additional term extends the radius of accurate approximation. Increase \(n\) to watch the solid polynomial track the dashed true function farther from center.

Taylor Series
\(\displaystyle T_n(x)=\sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x-a)^k\)

\(\sin x=x-\tfrac{x^3}{6}+\cdots\)
\(e^x=1+x+\tfrac{x^2}{2}+\cdots\)
Interactive
Function
Center \(a\) 0.00
Terms n 3
Tₙ(x) vs f(x)
hover to compare
💡 Start sin(x) at n=1 — just a line. At n=3 it tracks well near 0; by n=11 nearly perfect across the full window.
Degree
3
Polynomial Tₙ(x)
Calculus II · Chapter 2

Volumes of Revolution

The disk method — rotating a curve around the x-axis generates a 3D solid

Rotating \(y=f(x)\) around the \(x\)-axis sweeps out a solid. The disk method slices it into circular disks of radius \(r=f(x)\) and area \(\pi r^2\). Integrating gives \(V=\pi\int_a^b[f(x)]^2\,dx\). Click or drag the slice slider to move the cross-sectional disk.

Disk Method
\(\displaystyle V=\pi\int_a^b[f(x)]^2\,dx\)

Radius \(r=f(x)\)
Area \(=\pi r^2\)
Interactive — click graph to move slice
\(f(x)\)
\(a\) 0.00
\(b\) 3.00
Slice at x 1.50
\(V=\pi\int[f(x)]^2\,dx\)
click to set slice
💡 Try √x on [0,4]: the solid is a paraboloid. Move slice from x=0 (radius 0) to x=4 (radius 2). The disk area grows linearly with x.
V =
r=f(x) at slice
Calculus II · Chapter 3

Series & Convergence

When does an infinite sum converge to a finite value?

An infinite series \(\sum a_n\) converges if its partial sums \(S_n\) approach a finite limit. Geometric series \(\sum r^n\) converge when \(|r|<1\) with sum \(r/(1-r)\). The \(p\)-series \(\sum 1/n^p\) converges when \(p>1\) — the harmonic series (\(p=1\)) diverges astonishingly slowly.

Key Tests
Geometric: \(|r|<1\Rightarrow S=\dfrac{r}{1-r}\)

\(p\)-series: \(p>1\Rightarrow\) conv.
\(p\le1\Rightarrow\) div.
Interactive
Series type
Ratio r 0.50
Terms N 40
Partial sums Sₙ
hover to read Sₙ
💡 Geometric r=0.95: partial sums level off. Drag r above 1.0 — watch them escape upward. The boundary |r|=1 is exact, not approximate.
Exact sum S
Sₙ partial
Converges?
Calculus II · IB AA HL Topic 5.17

Area Between Curves

The integral of the difference gives the enclosed area

To find the area between \(y=f(x)\) and \(y=g(x)\), integrate the absolute difference: \(A=\int_a^b|f(x)-g(x)|\,dx\). Find natural bounds by solving \(f(x)=g(x)\). When curves cross, split the integral and sum absolute sub-areas.

Area Formula
\(\displaystyle A=\int_a^b|f-g|\,dx\)

Blue = f above g
Orange = g above f
Interactive
f(x) (blue)
g(x) (orange)
\(a\) −1.00
\(b\) 1.00
\(\int|f-g|\,dx\)
hover to read f, g
💡 f=x², g=x on [0,1]: they cross at x=0 and x=1, enclosing area 1/6. Change g to x²/4 for a wider region.
Total area
f avg − g avg
Crossings in [a,b]
Calculus II · IB AA HL Topic 5.15

Slope Fields

Visualising differential equations before solving them — dy/dx=f(x,y)

A slope field draws a short segment of slope \(f(x,y)\) at each point, sketching tangent directions any solution must follow. Given an initial condition \(y(x_0)=y_0\), a unique solution curve threads through that point. Click the graph to move the initial condition.

Slope Field
At each \((x,y)\):
draw slope \(=f(x,y)\)

IC \(\Rightarrow\) unique curve

IB: \(\frac{dy}{dx}=ky\)
\(\Rightarrow y=Ae^{kx}\)
Interactive — click graph to set initial condition
dy/dx =
IC: y₀ at x₀=0 1.00
dy/dx = y
click to place initial condition
💡 dy/dx=y with y₀=1: solution is y=e^x. Try dy/dx=−x/y — the solution bends into a semicircle, solving x²+y²=const implicitly. Custom: try x^2-y.
IC (x₀,y₀)
Slope at IC
y at x=2
Calculus II · IB AA HL Topic 5.16

Integration by Parts

The product rule reversed: ∫u dv = uv − ∫v du

Integration by Parts is the antiderivative counterpart of the product rule: \(\int u\,dv=uv-\int v\,du\). The LIATE rule guides the choice of \(u\) — Logarithms, Inverse trig, Algebraic, Trig, Exponential. Blue area = \(\int u\,dv\); orange = \(\int v\,du\). Together they tile the rectangle \([uv]_a^b\).

IBP Formula
\(\displaystyle\int u\,dv=uv-\int v\,du\)

\(\displaystyle\int_a^b u\,dv=[uv]_a^b-\int_a^b v\,du\)

LIATE: pick u first
Interactive — blue + orange = uv rectangle
Integrand
Upper bound b 2.00
IBP geometric view
hover to read values
💡 For x·e^x: u=x, dv=e^x dx gives ∫xe^x dx = xe^x − e^x + C. Blue (u·v') + orange (v·u') = corner rectangle [uv].
u choice
dv choice
[uv]₀ᵇ
∫₀ᵇ u dv
Calculus II · IB AA HL Topic 5.18

Arc Length

Measuring the true length of a curve with L=∫√(1+f′²) dx

We approximate the arc by \(n\) chord segments. Each chord of width \(\Delta x\) has length \(\sqrt{\Delta x^2+\Delta y^2}=\sqrt{1+(\Delta y/\Delta x)^2}\,\Delta x\). As \(\Delta x\to 0\) this sum becomes \(\int_a^b\sqrt{1+[f'(x)]^2}\,dx\). Drag \(n\) to watch the chord approximation converge.

Arc Length
\(\displaystyle L=\int_a^b\sqrt{1+(f')^2}\,dx\)

Chord approx.:
\(\displaystyle\approx\sum_{i=1}^n\sqrt{\Delta x^2+\Delta y_i^2}\)
Interactive — chord segments converge to arc
\(f(x)\)
\(a\) 0.00
\(b\) 3.14
Chord segments n 6
Arc length via chord approx.
hover to read cumulative length
💡 sin(x) on [0,π]: horizontal span is π≈3.14 but arc length is ≈3.82 — 22% longer. Increase n to watch chord total converge.
Exact arc length
Chord approx. (n)
|Error|
Horiz. span b−a
Creator · About This Project

About the Creator

Vyom Krothapalli — Class of 2027

VK
Vyom Krothapalli
Class of 2027 · Self-taught Calculus · Math & CS
📖 My Story

I have always been interested in mathematics, and as someone who has taught themselves calculus, I came to an important conclusion: while calculus may seem daunting at first, it's fundamentally the same as algebra — just with limits.

The goal is to provide aspiring math students with visual intuition for calculus concepts. The modules are aligned to IB AA HL & SL exam topics.

⚙️ Built With
Vanilla JavaScriptHTML5 CanvasKaTeXmath.jsGoogle FontsZero build step
💬 Get in Touch
🔗 Share Math Explorer