← Home

Understanding Derivatives

Independent & Dependent Variables · dy/dx · The Tap & Pipe Analogy

x
Independent
Variable
y = f(x)
Dependent
Function
dy/dx
Rate of Change
(Derivative)
f′(x)
Prime
Notation
x — Independent

The Tap (You Control It)

An independent variable is one you freely choose or control. It doesn't react to anything else. Think of the tap handle — you turn it wherever you like. In math: x. A tiny change in x is called dx.

y — Dependent

The Water Flow (It Reacts)

A dependent variable is determined by x — it cannot decide its own value. Think of the water flowing from the pipe: open the tap more (↑x) → more water (↑y). In math: y = f(x). A tiny change in y is called dy.

🚰 Interactive Tap Simulator

Drag the slider to open or close the tap (x). The water stream and pool react instantly — that's y = x² responding to x.

0 — Closed10 — Fully Open

📐 Live Calculation

Function:y = x²
x =5.0← you set this
y =25.0← reacts to x
Derivative at current x :
dy
dx
= 2x = 10.0
Every +1 tap → +10.0 more flow
💡 dy/dx = "How much does flow change when I nudge the tap by dx?" That ratio is the derivative — the rate of change.

📖 Derivative Rules

Click a rule — see how it connects to the tap analogy.

General Power Rule — if y = xⁿ, then:
dy/dx = n · xn−1

Bring the exponent down as a multiplier, then reduce the power by 1. This covers y = x², y = x³, y = x⁵ and beyond. Opening the tap wider causes increasingly rapid flow increases.

y = x²
dy/dx = 2x
y = x³
dy/dx = 3x²
y = x⁵
dy/dx = 5x⁴
y = x
dy/dx = 1
Linear function — y = mx + b :
dy/dx = m

A straight-line tap: every equal nudge to x gives exactly m more units of flow — always the same, no acceleration. The constant b (starting offset) vanishes because d/dx(constant) = 0. The tangent line IS the curve itself.

y = 2x + 1
dy/dx = 2
y = 5x − 3
dy/dx = 5
y = −x + 7
dy/dx = −1
Cubic — y = x³ :
dy/dx = 3x²

A rapidly accelerating tap. At x = 2 the rate is 12, at x = 5 the rate is 75. The derivative 3x² is itself a function of x — the rate of change keeps changing. Opening a nearly-full tap even slightly causes a huge surge in flow.

At x = 1
dy/dx = 3
At x = 3
dy/dx = 27
At x = 5
dy/dx = 75
Exponential — y = eˣ :
dy/dx = eˣ

The most magical function in calculus: its derivative equals itself! The flow rate equals the current flow. The more water that flows, the faster it grows. This self-referential property makes eˣ appear in compound growth, population models, and physics everywhere.

At x = 0
dy/dx = 1.000
At x = 1
dy/dx = 2.718
At x = 2
dy/dx = 7.389
Square Root — y = √x = x½ :
dy/dx = 1 / (2√x)

A diminishing-returns tap: fast at first, then slowing down. Opening from x = 0→1 adds 1 unit of flow, but x = 9→10 adds only 0.16. This is the Power Rule with n = ½: dy/dx = ½ · x−½ = 1/(2√x). The derivative shrinks as x grows.

At x = 1
dy/dx = 0.500
At x = 4
dy/dx = 0.250
At x = 9
dy/dx = 0.167
Constant — y = c :
dy/dx = 0

A constant doesn't react to x at all — the tap is welded shut. y stays the same no matter what x is. Rate of change = zero. On a graph: a perfectly flat horizontal line with slope 0. Shifting a function up or down (adding a constant) never changes its derivative.

📈 Interactive Graph Explorer

Choose a function below. Orange dot = your current (x, y). Green dashed = tangent — its slope IS dy/dx.

Function:
y = x²
dy/dx = 2x
A quadratic: flow accelerates as you open the tap. The rate of change grows linearly — every extra unit of tap opening adds 2 more units of rate.

🔄 Inverse Proportion — y = k/x

When one quantity goes up, the other goes down — but their product stays constant. Drag the slider and watch the geometry.

🚗 Speed & Travel Time
A car must travel a fixed distance of 120 km. The faster you drive, the less time the journey takes. Speed (x) and time (y) are inversely proportional: y = 120/x.
MinMax
Function: y = 120 / x
x = 4.0 km/h
y = 30.0 hours
x·y = 120 = constant k
Derivative (dy/dx):
dy
dx
= −k/x² = −7.50
Negative: as speed ↑, time ↓ (they move opposite)
The Hyperbola — y = k/x

The curve never touches the axes — as x→∞, y→0 and as x→0, y→∞. The shaded rectangle always has the same area = k.

🎯 Quick Check

Click the correct answer for each question.

1. In the tap analogy, what is the independent variable?

2. If y = x², what is dy/dx?

3. If y = x³, what is dy/dx?

4. If y = 2x + 1, what is dy/dx?

5. What is special about the derivative of y = eˣ?

6. If y = √x, what is dy/dx at x = 4?

7. dy/dx = 0 at a point means the function is…

Ad space