Logo Neurocoda

Essence of Derivatives

Neurocoda
Neurocoda
2026-07-03 12:46:06 2026-07-03 12:54:21 1.7k Words 9 Mins ...

Derivative Notation

Lagrange Notation

Uses function symbols with primes to denote derivatives. If y=f(x)y = f(x), then:

f(x0)oryf'(x_0) \quad \text{or} \quad y'

Features:

  • Directly associates with function names, making the correspondence between function and derivative clear
  • Higher-order derivatives are indicated by the number of primes: second derivative f(x)f''(x), third derivative f(x)f'''(x)
    Example:
    f(x)=x3f(x) = x^3 has derivative:
f(x)=3x2f(x)=6xf'(x) = 3x^2 \\ f''(x) = 6x

Applicable scenarios:

  • Explicit function expressions (e.g., f(x)=sinxf(x) = \sin x)
  • Theoretical proofs and formula derivations

Leibniz Notation

Uses differential symbols to represent derivatives. If y=f(x)y = f(x), then:

dydxx=x0orddxf(x)\frac{dy}{dx} \bigg|_{x=x_0} \quad \text{or} \quad \frac{d}{dx}f(x)

Features:

  • Intuitively shows the derivative as the limit of a ratio of differentials
  • Higher-order derivatives are indicated by exponents: second derivative d2ydx2\frac{d^2y}{dx^2}
    Chain rule example:
    Let y=sin(u)y = \sin(u), u=x2u = x^2, then:
dydx=dydududx=cos(u)2x=2xcos(x2)\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = \cos(u) \cdot 2x = 2x \cos(x^2)

Applicable scenarios:

  • Implicit functions (e.g., x2+y2=1x^2 + y^2 = 1)
  • Multivariable calculus and physical equations

Newton Notation

Uses dots above variables to denote time derivatives. If displacement is s(t)s(t), then:

s˙=dsdt,s¨=d2sdt2\dot{s} = \frac{ds}{dt}, \quad \ddot{s} = \frac{d^2s}{dt^2}

Features:

  • Concise notation, especially suitable for time derivatives
  • For derivatives beyond third order, multiple dots are used (e.g., s...\dddot{s} for third derivative)
    Kinematics example:
    Free fall motion s(t)=12gt2s(t) = \frac{1}{2}gt^2, then:
s˙=gt(velocity)s¨=g(acceleration)\dot{s} = gt \quad (\text{velocity}) \\ \ddot{s} = g \quad (\text{acceleration})

Applicable scenarios:

  • Classical mechanics and dynamics problems
  • Systems of differential equations (e.g., vibration system x¨+ω2x=0\ddot{x} + \omega^2x = 0)

Comparison and Selection Principles

Notation TypeAdvantagesLimitations
LagrangeClear function relationshipCumbersome notation for higher-order derivatives
LeibnizIntuitive reflection of differential natureMust note it is not a fraction
NewtonEfficient for time derivativesOnly applicable to single-variable time functions

For example, in the heat equation, mixing different notations is more efficient:

Tt=α2T(Leibniz for spatial derivatives + Newton for time derivative)\frac{\partial T}{\partial t} = \alpha \nabla^2 T \quad (\text{Leibniz for spatial derivatives + Newton for time derivative})

Definition

The derivative of a function is defined as the limit of the ratio of the increment of the function to the increment of the independent variable as the increment of the independent variable approaches zero. Mathematically:

\begin{eqnarray} f'(x_0) & = & \lim_{\Delta x \to 0}\frac{\Delta y}{\Delta x} = \lim_{\Delta x \to 0} \frac{f(x_0 + \Delta x) - f(x_0)}{\Delta x} \\\\ f'(x_0) & = & \lim_{x \to x_0} \frac{f(x) - f(x_0)}{x - x_0} \end{eqnarray}

When the limit exists, the function y=f(x)y = f(x) is said to be differentiable at x0x_0, and this limit is called the derivative of y=f(x)y = f(x) at point x0x_0.

Essentially, the definition of derivative is a limit problem

From the definition, it can be seen that the derivative studies the trend of change speed through the ratio of the change in function value to the change in independent variable.

「From a graphical perspective, the derivative is the slope of the tangent line to the function y=f(x)y = f(x) at x=x0x = x_0

Verify that the function y=lnx+1y = \ln{x} + 1 at x=1x = 1 has a tangent slope of 11, so the tangent is y1=1(x1)y - 1 = 1 \cdot (x - 1)
|500
And here f(x)f'(x) at x=1x = 1 is indeed equal to 11

How to prove it more rigorously?
500
As can be seen in this illustration, when Δx0\Delta x \to 0, the points (x0,f(x0))(x_0, f(x_0)) and (x0+Δx,f(x0+Δx))(x_0 + \Delta x, f(x_0 + \Delta x)) approach a straight line. For this line, its slope is:

k=f(x0+Δx)f(x0)x0+Δxx0=f(x0+Δx)f(x0)Δxk = \frac{f(x_0 + \Delta x) - f(x_0)}{x_0 + \Delta x - x_0} = \frac{f(x_0 + \Delta x) - f(x_0)}{\Delta x}

Does that look familiar?

Differentiation Rules

Basic Elementary Function Derivatives

Function TypeDerivative Formula
Constant function(C)=0(C)' = 0
Power function(xμ)=μxμ1(x^\mu)' = \mu x^{\mu-1}
Exponential function(ax)=axlna(a^x)' = a^x \ln a
Natural exponential function(ex)=ex(e^x)' = e^x
Logarithmic function(logax)=1xlna(\log_a x)' = \frac{1}{x \ln a}
Natural logarithmic function(lnx)=1x(\ln x)' = \frac{1}{x}
Sine function(sinx)=cosx(\sin x)' = \cos x
Cosine function(cosx)=sinx(\cos x)' = -\sin x

The derivative formulas for basic elementary functions can of course be derived using the definition of the derivative.

Operations

Addition and Subtraction Rule

(u±v)=u±v(u \pm v)' = u' \pm v'

Product Rule

(uv)=uv+uv(uv)' = u'v + uv'

Quotient Rule

(uv)=uvuvv2\left(\frac{u}{v}\right)' = \frac{u'v - uv'}{v^2}

where u,vu, v are basic elementary functions

Chain Rule

For composite functions, the derivative is obtained using the chain rule:

ddx[f(g(x))]=f(g(x))g(x)\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)

The chain rule states that the derivative of a composite function equals the derivative of the outer function with respect to the inner function multiplied by the derivative of the inner function. Intuitively, the rate of change of the rate of change equals the product of the individual rates of change.

Basic steps:

  1. Identify the outer function and inner function in the composite function
  2. Compute the derivative of the outer function, keeping the inner function unchanged
  3. Compute the derivative of the inner function
  4. Multiply the two derivatives to obtain the final result

Example 1: Find the derivative of y=sin(2x)y = \sin(2x)

Solution: Let u=2xu = 2x, then y=sinuy = \sin u

  • Derivative of outer function: dydu=cosu\frac{dy}{du} = \cos u
  • Derivative of inner function: dudx=2\frac{du}{dx} = 2
  • Applying chain rule: dydx=dydududx=cosu2=2cos(2x)\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = \cos u \cdot 2 = 2\cos(2x)

Example 2: Find the derivative of y=(3x+2)2y = (3x + 2)^2

Solution: Let u=3x+2u = 3x + 2, then y=u2y = u^2

  • Derivative of outer function: dydu=2u\frac{dy}{du} = 2u
  • Derivative of inner function: dudx=3\frac{du}{dx} = 3
  • Applying chain rule: dydx=dydududx=2u3=6(3x+2)\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = 2u \cdot 3 = 6(3x + 2)

Example 3: Find the derivative of y=e3x2+2y = e^{3x^2+2}

Solution: Let u=3x2+2u = 3x^2+2, then y=euy = e^u

  • Derivative of outer function: dydu=eu\frac{dy}{du} = e^u
  • Derivative of inner function: dudx=6x\frac{du}{dx} = 6x
  • Applying chain rule: dydx=dydududx=eu6x=6xe3x2+2\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = e^u \cdot 6x = 6x e^{3x^2+2}

Chain Rule for Multiple Composite Functions

For multi-layered composite functions, the chain rule can be applied repeatedly:

ddx[f(g(h(x)))]=f(g(h(x)))g(h(x))h(x)\frac{d}{dx}[f(g(h(x)))] = f'(g(h(x))) \cdot g'(h(x)) \cdot h'(x)

Example: Find the derivative of y=lnxy = \ln\sqrt{x}

Solution: Consider it as y=ln(x1/2)y = \ln(x^{1/2})

  • Let u=x1/2u = x^{1/2}, then y=lnuy = \ln u
  • Derivative of outer function: dydu=1u\frac{dy}{du} = \frac{1}{u}
  • Derivative of inner function: dudx=12x1/2\frac{du}{dx} = \frac{1}{2}x^{-1/2}
  • Applying chain rule: dydx=dydududx=1u12x1/2=12x\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} = \frac{1}{u} \cdot \frac{1}{2}x^{-1/2} = \frac{1}{2x}

Properties

Differentiability Condition

For a function y=f(x)y = f(x), when x=x0x = x_0, the two-sided derivatives are:

limΔx0+f(x0+Δx)f(x0)Δx=f+(x0)limΔx0f(x0+Δx)f(x0)Δx=f(x0)\begin{align} \lim_{\Delta x \to 0^+} \frac{f(x_0 + \Delta x) - f(x_0)}{\Delta x} & = f'_{+}(x_0) \\\\ \lim_{\Delta x \to 0^-} \frac{f(x_0 + \Delta x) - f(x_0)}{\Delta x} & = f'_{-}(x_0) \end{align}

where f+(x0)f'_{+}(x_0) and f(x0)f'_{-}(x_0) are the right-hand and left-hand derivatives of f(x)f(x) at x=x0x = x_0, collectively called one-sided derivatives.

Furthermore, for y=f(x)y = f(x), if at x=x0x = x_0 the one-sided derivatives exist and are equal:

f+(x0)=f(x0)f'_{+}(x_0) = f'_{-}(x_0)

then f(x)f'(x) exists and equals the one-sided derivative value. (Sufficient and necessary condition)

Relationship between Differentiability and Continuity

From the above, it is easy to compare differentiability and continuity. The descriptions of these two properties are very similar, aren’t they?

Continuity
If a function f(x)f(x) is continuous at x=x0x = x_0, then:
f(x)=limxx0+f(x)=limxx0f(x)f(x) = \lim_{x \to {x_0}^+}f(x) = \lim_{x \to {x_0}^-} f(x)
Differentiability
If a function f(x)f(x) is differentiable at x=x0x = x_0, then:
f(x)=f+(x0)=f(x0)f'(x) = f'_{+}(x_0) = f'_{-}(x_0)

In the article Function Limits from the Perspective of Hyperreal Numbers, we have mentioned that the hyperreal perspective can better understand function limits. Similarly, we can better understand differentiability.

Here we first supplement continuity:

A function f(x)f(x) is continuous at x=x0x = x_0 if and only if

ϵ>0, δ>0, such that when xx0<δ, we have f(x)f(x0)<ϵ.\forall \epsilon > 0,\ \exists \delta > 0,\ \text{such that when } |x - x_0| < \delta \text{, we have } |f(x) - f(x_0)| < \epsilon.

That is, the result of applying the standard part function to all hyperreal numbers in a neighborhood centered at x0x_0 is the real number f(x0)f(x_0).

A continuous interval consists of real numbers, but these real numbers are accompanied by infinitely close hyperreal numbers in the hyperreal model. Continuity in the hyperreal perspective is manifested as the stability of function values under infinitesimal perturbations, rather than a ‘seamless connection’ in space.
|500

Clearly, the definition of continuity: f(x)=limxx0+f(x)=limxx0f(x)f(x) = \lim_{x \to {x_0}^+}f(x) = \lim_{x \to {x_0}^-} f(x) essentially means that function f(x)f(x) is continuous at x0x_0 if and only if for all hyperreal numbers xx infinitely close to x0x_0, f(x)f(x) is infinitely close to f(x0)f(x_0). Continuity is a local property, and the continuity of a function on an interval must be verified at each point individually. Hence we often see the description ‘the function is everywhere continuous on an interval’.

Alright, let’s continue with differentiability.

Definition of derivative:

f(x0)=limxx0f(x)f(x0)xx0f'(x_0) = \lim_{x \to x_0} \frac{f(x) - f(x_0)}{x - x_0}

When the limit exists, the function is said to be differentiable. That is:

f(x0)f'(x_0) \not= \infty

For the case f(x0)=0f'(x_0) = 0, the numerator is a higher-order infinitesimal relative to the denominator. That is, f(x)f(x0)f(x) - f(x_0) approaches 00 faster than xx0x - x_0;

The expression for continuity at x=x0x = x_0 is essentially f(x)f(x0)f(x) - f(x_0) approaches 0.

But differentiability requires a stronger condition than continuity: f(x)f(x0)f(x) - f(x_0) must approach 00 faster than xx0x - x_0.

For the case f(x0)=a,aRf'(x_0) = a, a \in \mathbb{R}, the numerator and denominator are infinitesimals of the same order.

Then differentiability also requires a stronger condition: f(x)f(x0)f(x) - f(x_0) and xx0x - x_0 must be infinitesimals of the same order.

Therefore:

f(x0) differentiable f(x0) continuousf(x0) continuous ⇏f(x0) differentiable\begin{align} f(x_0) \text{ differentiable } &\Rightarrow f(x_0) \text{ continuous} \\\\ f(x_0) \text{ continuous } &\not\Rightarrow f(x_0) \text{ differentiable} \end{align}

Continuity and Differentiability Analysis of a Function and Its Absolute Value

Continuity

Assume there is a function f(x)f(x) that is continuous everywhere in its domain.

For f(x)f(x), according to the range of its values, it can be summarized into three possible cases as shown in the figure below:
|500

For f(x)\mid f(x) \mid, the corresponding cases are:
|500

Clearly, if f(x)f(x) is continuous at a point, then f(x)\mid f(x) \mid is also continuous at that point. (After taking absolute value, hyperreal numbers in the neighborhood still approach that real point.)

So if f(x)\mid f(x) \mid is continuous at a point, can we prove that f(x)f(x) is also continuous at that point?
|500

Conclusion:

f(x0) continuous f(x0) continuousf(x0) continuous ⇏f(x0) continuous\begin{align} f(x_0) \text{ continuous } &\Rightarrow \mid f(x_0) \mid \text{ continuous} \\\\ \mid f(x_0) \mid \text{ continuous } &\not\Rightarrow f(x_0) \text{ continuous} \end{align}
Differentiability

For f(x)f(x), according to the range of its values, it can be summarized into three possible cases as shown in the figure below:
|500

For f(x)\mid f(x) \mid, the corresponding cases are:
|500

Regarding differentiability, as we just mentioned, differentiability requires a stronger condition than continuity, namely f(x)f(x0)f(x) - f(x_0) must approach 00 faster than xx0x - x_0.
|500

This case satisfies continuity but does not satisfy f(x)=f+(x0)=f(x0)f'(x) = f'_{+}(x_0) = f'_{-}(x_0).

Conclusion:

{f(x0) differentiablef(x0)0f(x0) differentiable\begin{cases} f(x_0) \text{ differentiable} \\\\ f(x_0) \not= 0 \end{cases} \Rightarrow \mid f(x_0) \mid \text{ differentiable} {f(x0) differentiablef(x0)=0f(x0)0f(x0) not differentiable\begin{cases} f(x_0) \text{ differentiable} \\\\ f(x_0) = 0 \\\\ f'(x_0) \not= 0 \end{cases} \Rightarrow \mid f(x_0) \mid \text{ not differentiable}

When f(x0)=0f(x_0) = 0 and f(x0)=0f'(x_0) = 0, the graph coincides with the x-axis, f(x0)=0\mid f'(x_0) \mid = 0.

The necessity has been described in the proof of continuity above and will not be repeated.

It can be summarized as:

f(x0) differentiable ⇎f(x0) differentiablef(x_0) \text{ differentiable } \not\Leftrightarrow \mid f(x_0) \mid \text{ differentiable}

Parity Relationship between Derivative and Original Function

First, give the conclusion:

{If f(x) is a differentiable even function, then f(x) is an odd functionIf f(x) is a differentiable odd function, then f(x) is an even function\begin{cases} \text{If } f(x) \text{ is a differentiable even function, then } f'(x) \text{ is an odd function} \\\\ \text{If } f(x) \text{ is a differentiable odd function, then } f'(x) \text{ is an even function} \end{cases}

Proof:
If f(x) is a differentiable even function, then f(x) is an odd function\text{If } f(x) \text{ is a differentiable even function, then } f'(x) \text{ is an odd function}

f(x)=limΔx0f(x+Δx)f(x)Δxf(x)=limΔx0f(x+Δx)f(x)Δx=limΔx0f(xΔx)f(x)Δx=limΔx0f(xΔx)f(x)Δx=f(x)\begin{array}{c} f'(x) & = & \lim_{\Delta x \to 0} \frac{f(x + \Delta x) - f(x)}{\Delta x} \\\\ f'(-x) & = & \lim_{\Delta x \to 0} \frac{f(-x + \Delta x) - f(-x)}{\Delta x} \\\\ & = & \lim_{\Delta x \to 0} \frac{f(x - \Delta x) - f(x)}{\Delta x} \\\\ & = & \lim_{- \Delta x \to 0} \frac{f(x - \Delta x) - f(x)}{- \Delta x} \\\\ & = & -f'(x) \end{array}

The proof that if f(x)f(x) is a differentiable odd function, then f(x)f'(x) is an even function is similar to the above and will not be repeated.

Title: Essence of Derivatives Author: Neurocoda Created at: 2026-07-03 12:46:06 Updated at: 2026-07-03 12:54:21 Link: https://neurocoda.com/zh/posts/essence-of-derivatives-en/ License: This work is licensed under CC BY-ND 4.0.

Comments