Derivatives

Every curve has a slope that keeps changing as you move along it, and every moving object has a speed that keeps changing as time passes. The derivative is the single tool that captures both: it takes a function ff and produces a new function f′f' whose value at any point is the instantaneous rate of change there — the slope of the tangent line if ff is a graph, the instantaneous velocity if ff is a position. The derivative is built directly from a limit, so it inherits all the precision of limits while finally letting you answer a question limits alone cannot: not just "what does ff approach near xx" but "how fast is ff changing right at xx." This section covers the formal definition, differentiation from first principles, the sum, product and quotient rules, and the standard derivatives of polynomial and trigonometric functions — exactly the CBSE Class 11 scope, stopping short of exponential, logarithmic and inverse trigonometric derivatives, which belong to Class 12.

The core insight

The derivative f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}{h} is the instantaneous rate of change of ff at xx, computable directly from this limit or, faster, from the sum, product and quotient rules applied to a handful of standard results.

The core idea

From average rate to instantaneous rate. The average rate of change of ff between xx and x+hx+h is the familiar slope-of-a-chord expression f(x+h)−f(x)h\frac{f(x+h)-f(x)}{h}. This is exact but describes an interval, not a single point. Shrinking hh toward 00 turns that chord into a tangent line touching the curve at exactly one point, and the limiting value of the slope is the derivative:

f′(x)=lim⁡h→0f(x+h)−f(x)h,f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h},

where: f′(x)f'(x) is the derivative of ff at xx (also written dydx\frac{dy}{dx} or ddxf(x)\frac{d}{dx}f(x)), hh is a small increment in xx that is never actually set to zero but only driven toward it, and the limit must exist for ff to be called differentiable at xx. Computing f′f' this way is called differentiating from first principles or ab initio.

Two readings of the same number. Geometrically, f′(x)f'(x) is the slope of the tangent to y=f(x)y=f(x) at that point — positive where the curve rises, negative where it falls, zero at a flat point. Physically, if f(t)f(t) is the position of a particle at time tt, f′(t)f'(t) is its instantaneous velocity — the speed a speedometer would show at that exact instant, not averaged over a stretch of time. Both readings describe the same limiting number; only the meaning of xx (a position on a graph, or a moment in time) changes with the context.

Differentiability is not automatic. A function can fail to have a derivative at a point even where it is perfectly well defined there — the limit in the definition simply may not exist. This happens, for instance, at a sharp corner on a graph, where approaching from the left and from the right gives two different limiting slopes, so no single tangent line is well defined. At this level it is enough to know that "differentiable at xx" is a real condition worth checking, not something every function automatically satisfies; a full treatment of continuity and differentiability, with left-hand and right-hand derivatives, belongs to Class 12.

Figure
A curve with a chord between two nearby points and the chord rotating to become the tangent line as the second point slides toward the first
Chord to tangent as h shrinks toward 0 x x+h (h large) x+h (h small) tangent as h to 0 As the second point slides toward x, the chord's slope approaches f prime of x

Algebra of derivatives. If u(x)u(x) and v(x)v(x) are differentiable, the derivative distributes over sums and differences, and follows fixed patterns for products and quotients:

ddx[u(x)±v(x)]=u′(x)±v′(x),\frac{d}{dx}[u(x)\pm v(x)] = u'(x)\pm v'(x),
ddx[u(x)v(x)]=u′(x)v(x)+u(x)v′(x),ddx[u(x)v(x)]=u′(x)v(x)−u(x)v′(x)[v(x)]2, v(x)≠0.\frac{d}{dx}[u(x)v(x)] = u'(x)v(x)+u(x)v'(x), \qquad \frac{d}{dx}\left[\frac{u(x)}{v(x)}\right]=\frac{u'(x)v(x)-u(x)v'(x)}{[v(x)]^2},\ v(x)\neq0.

where: u′(x)u'(x) and v′(x)v'(x) are the separate derivatives of uu and vv; note the product rule is not u′v′u'v', and the quotient rule's numerator order matters since subtraction is not commutative.

Standard derivatives. At this level only polynomial and trigonometric functions are built from first principles and then reused as building blocks:

ddx(xn)=nxn−1,ddx(c)=0 (c constant),\frac{d}{dx}(x^n)=nx^{n-1}, \qquad \frac{d}{dx}(c)=0\ (c\text{ constant}),
ddx(sin⁡x)=cos⁡x,ddx(cos⁡x)=−sin⁡x.\frac{d}{dx}(\sin x)=\cos x, \qquad \frac{d}{dx}(\cos x)=-\sin x.

where: nn is any real exponent and cc is a fixed constant. These four results themselves come from the first-principles limit combined with two standard limits proved earlier in the chapter, lim⁡x→axn−anx−a=nan−1\lim_{x\to a}\frac{x^n-a^n}{x-a}=na^{n-1} and lim⁡x→0sin⁡xx=1\lim_{x\to0}\frac{\sin x}{x}=1 — so nothing here is assumed without justification, only compressed for speed.

Derivation ADifferentiating f(x)=x2+3xf(x)=x^2+3x from first principles

The goal is to compute the derivative of a concrete polynomial, f(x)=x2+3xf(x)=x^2+3x, directly from the limit definition rather than by quoting the power rule, so that the four-stage pattern — expand, subtract, divide by hh, then let h→0h\to0 — is fully visible and can be reused on any polynomial or trigonometric function in this chapter.

Step 1. Write down the first-principles limit for this particular ff: f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x)=\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}, with f(x+h)f(x+h) and f(x)f(x) still to be expanded.

Step 2. Expand f(x+h)=(x+h)2+3(x+h)=x2+2xh+h2+3x+3hf(x+h)=(x+h)^2+3(x+h)=x^2+2xh+h^2+3x+3h, by squaring the binomial and distributing the 33.

Step 3. Form the difference f(x+h)−f(x)=(x2+2xh+h2+3x+3h)−(x2+3x)=2xh+h2+3hf(x+h)-f(x)=(x^2+2xh+h^2+3x+3h)-(x^2+3x)=2xh+h^2+3h; the x2x^2 and 3x3x terms cancel exactly, leaving only terms carrying a factor of hh.

Step 4. Divide by hh, which is valid since h→0h\to0 means hh approaches zero without ever equalling it during the limiting process: f(x+h)−f(x)h=2xh+h2+3hh=2x+h+3\dfrac{f(x+h)-f(x)}{h}=\dfrac{2xh+h^2+3h}{h}=2x+h+3.

Step 5. Let h→0h\to0 in this simplified expression: f′(x)=lim⁡h→0(2x+h+3)=2x+3f'(x)=\lim_{h\to0}(2x+h+3)=2x+3, since the hh term simply vanishes in the limit. The result, f′(x)=2x+3f'(x)=2x+3, matches what the sum rule and standard results give instantly: ddx(x2)+ddx(3x)=2x+3\frac{d}{dx}(x^2)+\frac{d}{dx}(3x)=2x+3. First principles and the shortcut rules always agree — the rules are just the first-principles calculation done once and for all, then reused.

Worked example

Find f′(x)f'(x) for f(x)=x2+3xf(x)=x^2+3x, and use it to find the slope of the tangent to y=x2+3xy=x^2+3x at x=2x=2; then find the derivative of g(x)=xsin⁡xg(x)=x\sin x using the product rule.

Step 1. From the derivation above, f′(x)=2x+3f'(x)=2x+3 for every xx. Substituting x=2x=2: f′(2)=2(2)+3=7f'(2)=2(2)+3=7. So the tangent to y=x2+3xy=x^2+3x at x=2x=2 has slope 7\boldsymbol{7}.

Step 2. For g(x)=xsin⁡xg(x)=x\sin x, identify the two factors for the product rule: u(x)=xu(x)=x and v(x)=sin⁡xv(x)=\sin x, with u′(x)=1u'(x)=1 (the derivative of xx itself) and v′(x)=cos⁡xv'(x)=\cos x (a standard result).

Step 3. Apply ddx(uv)=u′v+uv′\frac{d}{dx}(uv)=u'v+uv': g′(x)=(1)(sin⁡x)+(x)(cos⁡x)=sin⁡x+xcos⁡xg'(x)=(1)(\sin x)+(x)(\cos x)=\sin x+x\cos x.

Final answer: f′(x)=2x+3f'(x)=2x+3 with tangent slope 7\boldsymbol{7} at x=2x=2; and \boldsymbol{g'(x)=\sin x+x\cos x}.

Competitive stretch

As a quick check on g′(x)=sin⁡x+xcos⁡xg'(x)=\sin x+x\cos x, evaluate at x=0x=0: g′(0)=sin⁡0+0⋅cos⁡0=0g'(0)=\sin0+0\cdot\cos0=0. This is consistent, since xsin⁡x≥0x\sin x\geq0 on both sides of x=0x=0 near the origin (a negative xx makes sin⁡x\sin x negative too, so the product stays non-negative), meaning y=xsin⁡xy=x\sin x behaves like it has a minimum there — a horizontal tangent, matching g′(0)=0g'(0)=0.

Common traps

  • Stopping at f(x+h)−f(x)h\frac{f(x+h)-f(x)}{h} and calling it "the derivative" — this expression is only the average rate of change until the limit h→0h\to0 is actually taken.
  • Applying the product rule as u′v′u'v' (multiplying the two derivatives together) instead of the correct u′v+uv′u'v+uv'.
  • Getting the quotient rule's numerator order wrong, or forgetting the [v(x)]2[v(x)]^2 denominator — since subtraction is not commutative, u′v−uv′u'v-uv' and uv′−u′vuv'-u'v are not the same thing.
  • Reaching for the chain rule or trying to differentiate exe^x, ln⁡x\ln x, or inverse trigonometric functions — all of these are Class 12 material; this chapter's scope is polynomial and trigonometric functions built with sum, product and quotient rules only.

Ask the tutor: want another function differentiated from first principles, side by side with the shortcut-rule version, to see exactly where the two methods meet?

Why can we not just set h = 0 directly in the first-principles formula?

Because f(x+h)−f(x)h\frac{f(x+h)-f(x)}{h} has hh in the denominator, and setting h=0h=0 directly gives 00\frac{0}{0}, an undefined expression, not a number. The whole point of the limit is that we simplify the fraction algebraically first — expanding and cancelling common factors of hh — until the hh in the denominator disappears, and only then is it safe to let h→0h\to0 in what remains. That is exactly why Step 4 in the derivation divides by hh before Step 5 takes the limit, never the other way round.

How do I know whether to use the product rule or the quotient rule on a given function?

Look at how the two pieces are combined. If the function is one expression multiplied by another, like xsin⁡xx\sin x or x2cos⁡xx^2\cos x, use the product rule, u′v+uv′u'v+uv'. If it is one expression divided by another, like sin⁡xx\frac{\sin x}{x} or x2+1x−1\frac{x^2+1}{x-1}, use the quotient rule, u′v−uv′v2\frac{u'v-uv'}{v^2}. A quick way to check afterward: the product rule always produces a sum of two terms of the same "size" as the original, while the quotient rule always produces a fraction with [v(x)]2[v(x)]^2 in the denominator.

Is the derivative the same thing as the slope of the curve?

At a specific point, yes — f′(x)f'(x) evaluated at that point equals the slope of the tangent line to y=f(x)y=f(x) there, which is the closest sensible meaning of "the slope of the curve" at a single point (a curve, unlike a line, does not have one slope everywhere). But f′(x)f'(x) as a whole is a function, giving a different slope value at every xx, so "the derivative" and "the slope at x=2x=2" are related but not identical ideas — the derivative is the full slope-producing machine, and a slope value is just one output of it.

Before this

Where this leads