# dy/dx: What Derivative Notation Means (Leibniz, f'(x), d/dx)

> What dy/dx means, when it acts like a fraction, and how it compares to f'(x), y', d/dx and the Newton dot. Second derivatives, worked examples and mistakes.

Source: https://practicecalculus.com/rules/dy-dx-notation
Updated: 2026-11-15

$$ \frac{dy}{dx} = \lim_{\Delta x \to 0} \frac{\Delta y}{\Delta x} $$

## At a glance

- **Read as:** "Dee y dee x", the derivative of $y$ with respect to $x$
- **Means:** The slope of the tangent line, or the rate of change of $y$ per unit of $x$
- **Same as:** $f'(x)$, $y'$, $\frac{d}{dx}f(x)$ and $Df(x)$
- **Second derivative:** $\frac{d^2y}{dx^2} = f''(x)$
- **At a point:** $\left.\frac{dy}{dx}\right|_{x=a} = f'(a)$
- **Named after:** Gottfried Wilhelm Leibniz, who introduced it around 1675

## Key takeaways

- $\frac{dy}{dx}$ is the derivative of $y$ with respect to $x$: the slope of the tangent line, or how fast $y$ changes per unit of $x$.
- It is defined as a limit, so it is not a real fraction, but it often behaves like one, as in the chain rule.
- $\frac{dy}{dx}$, $f'(x)$, $y'$ and $\frac{d}{dx}f(x)$ are different ways to write the same derivative.
- To find the slope at a point, differentiate first and then substitute: $\left.\frac{dy}{dx}\right|_{x=a} = f'(a)$.

The notation $\frac{dy}{dx}$, read "dee y dee x", means **the derivative of $y$ with respect to $x$**: how fast $y$ changes as $x$ changes. It was introduced by Gottfried Leibniz, which is why it is called **Leibniz notation**. When $y = f(x)$, it means exactly the same thing as $f'(x)$. The two are just different ways of writing one idea.

## What dy/dx means

Start with an ordinary slope. If $x$ changes by a small amount $\Delta x$, then $y$ changes by some amount $\Delta y$, and the average rate of change is $\frac{\Delta y}{\Delta x}$. The derivative is the value this ratio approaches as the change in $x$ shrinks to zero:

$$\frac{dy}{dx} = \lim_{\Delta x \to 0} \frac{\Delta y}{\Delta x}$$

Leibniz pictured $dy$ and $dx$ as infinitely small changes, so $\frac{dy}{dx}$ is the ratio of a tiny change in $y$ to the tiny change in $x$ that caused it. On a graph it is the slope of the tangent line. In an application it is a rate: if $s$ is distance in meters and $t$ is time in seconds, then $\frac{ds}{dt}$ is velocity in meters per second. The units come straight from the notation: units of $y$ per unit of $x$.

The letters change with the problem. $\frac{dV}{dr}$ is the derivative of $V$ with respect to $r$, and $\frac{dP}{dt}$ is how fast $P$ changes over time. The variable on the bottom is always the one you differentiate with respect to.

## Is dy/dx a fraction?

Strictly, no. $\frac{dy}{dx}$ is a single symbol defined by a limit, and you cannot cancel the $d$'s. But it often **behaves** like a fraction, which is the main reason the notation is so popular:

- **Chain rule.** If $y$ depends on $u$ and $u$ depends on $x$, then $\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx}$. It looks as if the $du$ cancels, and the result is true. See the [chain rule](/rules/chain-rule).
- **Inverse functions.** $\frac{dx}{dy} = \frac{1}{dy/dx}$ wherever $\frac{dy}{dx} \ne 0$. See the [inverse function rule](/rules/inverse-function-rule).
- **Differentials.** Writing $dy = f'(x)\,dx$ gives the linear approximation $\Delta y \approx f'(x)\,\Delta x$. The same move separates variables in differential equations and changes variables in [u-substitution](/rules/u-substitution-rule).

The fraction picture does break. $\frac{d^2y}{dx^2}$ is not $\left(\frac{dy}{dx}\right)^2$, and with partial derivatives "cancelling" gives the wrong answer: for three variables linked by one equation, $\frac{\partial x}{\partial y}\cdot\frac{\partial y}{\partial z}\cdot\frac{\partial z}{\partial x} = -1$, not $1$. Use the fraction idea as a memory aid and fall back on the rules when in doubt.

## Other ways to write the derivative

All of these mean the same thing for $y = f(x)$:

| Notation | Read as | Named after | Best for |
| --- | --- | --- | --- |
| $\frac{dy}{dx}$ | "dee y dee x" | Leibniz | Chain rule, implicit differentiation, rates |
| $f'(x)$ | "f prime of x" | Lagrange | Naming a function and plugging in values |
| $y'$ | "y prime" | Lagrange | Quick work when the variable is clear |
| $\frac{d}{dx}f(x)$ | "d by dx of f of x" | Leibniz | Differentiating an expression in place |
| $Df(x)$ | "D f of x" | Euler | Treating differentiation as an operator |
| $\dot{y}$ | "y dot" | Newton | Derivatives with respect to time in physics |

Newton's dot always means a derivative with respect to time $t$, so $\dot{y} = \frac{dy}{dt}$, not $\frac{dy}{dx}$.

Prime notation is short but hides the variable. Leibniz notation is longer but tells you exactly what changes with respect to what, which matters as soon as more than one variable is involved.

## Reading d/dx as an operator

The symbol $\frac{d}{dx}$ on its own is an instruction: take the derivative, with respect to $x$, of whatever follows. So $\frac{dy}{dx}$ is shorthand for $\frac{d}{dx}\,y$, and you can apply it directly to an expression:

$$\frac{d}{dx}\left(x^2 + 5x\right) = 2x + 5$$

Because it is an operator, it splits over sums and lets constants out, as in the [sum and difference rule](/rules/sum-and-difference-rule) and the [constant multiple rule](/rules/constant-multiple-rule). The variable on the bottom matters. If $x$ and $t$ are independent, $\frac{d}{dx}\,x^2 t = 2xt$ treats $t$ as a constant, while $\frac{d}{dt}\,x^2 t = x^2$ treats $x$ as a constant.

## Second and higher derivatives

Differentiate twice and you get the second derivative:

$$\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right) = f''(x)$$

The 2 sits on the $d$ at the top because the operator $\frac{d}{dx}$ is applied twice. At the bottom, $dx^2$ means $(dx)^2$, not $d(x^2)$. Third derivatives follow the same pattern, $\frac{d^3y}{dx^3} = f'''(x)$, and from the fourth on people usually write $f^{(4)}(x)$. In Newton's notation, $\ddot{y}$ is the second derivative with respect to time, such as an acceleration.

For $y = x^3$: $\frac{dy}{dx} = 3x^2$ and $\frac{d^2y}{dx^2} = 6x$.

## Evaluating dy/dx at a point

$\frac{dy}{dx}$ is usually a function of $x$. To get the slope at one point, differentiate first and then substitute. A vertical bar means "evaluated at":

$$\left.\frac{dy}{dx}\right|_{x=a} = f'(a)$$

For $y = x^3$, $\left.\frac{dy}{dx}\right|_{x=2} = 3(2)^2 = 12$, so the tangent line at $(2, 8)$ has slope $12$.

## Worked examples

**Example 1: a power.** For $y = x^3$, the [power rule](/rules/power-rule) gives

$$\frac{dy}{dx} = 3x^2$$

At $x = 1$ the slope is $3$, so the tangent line through $(1, 1)$ is $y = 3x - 2$.

```graph
title: 'y = x³ with its tangent line at (1, 1)'
caption: 'The value of $\frac{dy}{dx} = 3x^2$ at $x = 1$ is $3$, the slope of the tangent line.'
x: [-2.5, 2.5]
y: [-8, 8]
functions:
  - expr: x^3
    label: y = x³
  - expr: 3x - 2
    label: tangent at (1, 1)
    dashed: true
points:
  - [1, 1, '(1, 1)']
```

**Example 2: the chain rule in Leibniz form.** For $y = \sin(2x)$, let $u = 2x$, so $y = \sin u$:

$$\frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dx} = \cos u \cdot 2 = 2\cos(2x)$$

The notation keeps track of the inner function for you. See the [derivative of sin 2x](/derivatives/sin-2x) for more.

**Example 3: implicit differentiation.** For the circle $x^2 + y^2 = 25$, differentiate both sides with respect to $x$. The $y^2$ term needs the chain rule, which is where $\frac{dy}{dx}$ appears:

$$2x + 2y\,\frac{dy}{dx} = 0 \quad\Rightarrow\quad \frac{dy}{dx} = -\frac{x}{y}$$

At $(3, 4)$ the slope is $-\frac{3}{4}$. See [implicit differentiation](/rules/implicit-differentiation) for the full method.

**Example 4: a rate with other letters.** A ball's height is $h = 20t - 5t^2$ meters after $t$ seconds. Then

$$\frac{dh}{dt} = 20 - 10t$$

is its velocity in meters per second. At $t = 1$ it is rising at $10$ m/s, and $\frac{d^2h}{dt^2} = -10$ is its acceleration in meters per second squared.

**Example 5: differentials.** For $y = x^3$ at $x = 2$ with $dx = 0.01$, the differential is $dy = 3x^2\,dx = 12(0.01) = 0.12$. The exact change is $2.01^3 - 8 = 0.120601$, so the estimate is very close.

## Common mistakes

1. **Cancelling the d's.** $\frac{dy}{dx}$ is not $\frac{y}{x}$. For $y = x^3$, $\frac{dy}{dx} = 3x^2$ while $\frac{y}{x} = x^2$.
2. **Substituting before differentiating.** For $y = x^3$ at $x = 2$, plugging in first gives $\frac{d}{dx}(8) = 0$, which is wrong. Differentiate, then substitute, to get $12$.
3. **Reading $\frac{d^2y}{dx^2}$ as a square.** It means differentiate twice, not $\left(\frac{dy}{dx}\right)^2$. For $y = x^3$ these are $6x$ and $9x^4$.
4. **Mixing up the variable.** $\dot{y}$ and $\frac{dy}{dt}$ are with respect to time, while $\frac{dy}{dx}$ is with respect to $x$. If $y$ depends on $x$ and $x$ depends on $t$, then $\frac{dy}{dt} = \frac{dy}{dx}\cdot\frac{dx}{dt}$.
5. **Forgetting $\frac{dy}{dx}$ on $y$ terms.** In implicit differentiation, $\frac{d}{dx}\,y^2 = 2y\,\frac{dy}{dx}$, not $2y$.

To see where the notation comes from, read the guide to [the limit definition of the derivative](/blog/limit-definition-of-the-derivative). Then practice the [power rule](/rules/power-rule) and the [chain rule](/rules/chain-rule), where Leibniz notation does most of the work.

## Frequently asked questions

### What does dy/dx mean?

It is the derivative of $y$ with respect to $x$: the instantaneous rate at which $y$ changes as $x$ changes. On a graph it is the slope of the tangent line.

### How do you read dy/dx out loud?

Say "dee y dee x" or "dee y by dee x". The second derivative $\frac{d^2y}{dx^2}$ is read "dee two y dee x squared".

### Is dy/dx the same as f'(x)?

Yes. If $y = f(x)$, then $\frac{dy}{dx}$ and $f'(x)$ are two notations for the same derivative. Leibniz notation shows both variables, prime notation is shorter.

### Can you treat dy/dx as a fraction?

Often, as a shortcut. The chain rule $\frac{dy}{dx} = \frac{dy}{du}\cdot\frac{du}{dx}$ works that way. But it is defined as a limit, and the fraction picture fails for second derivatives and partial derivatives.

### What does d/dx mean by itself?

It is the derivative operator, an instruction to differentiate whatever follows with respect to $x$. For example, $\frac{d}{dx}\,x^3 = 3x^2$.
