No history yet

Fundamentals of Differentiation

What is a Derivative?

Imagine you're driving a car. Your position is constantly changing. If you want to know your average speed, you can divide the distance you traveled by the time it took. But what if you want to know your speed at a single, precise moment? That's what your speedometer tells you: your instantaneous rate of change. In calculus, we call this a derivative.

A derivative measures how a function's output changes as its input changes. Geometrically, it's the slope of the line that just skims the surface of a function's graph at a single point. This line is called the tangent line. While a straight line has the same slope everywhere, a curve's slope is always changing. The derivative gives us a way to find that slope at any point we choose.

To find the slope of the tangent line, we start by calculating the slope of a secant line connecting two nearby points on the curve. Then, we imagine moving those two points closer and closer together until they are infinitely close, effectively becoming one point. The slope of the secant line at that moment becomes the slope of the tangent line. This idea of getting 'infinitely close' is the core concept of a limit.

The Idea of a Limit

A limit describes the value that a function 'approaches' as the input gets closer and closer to some number. It’s the foundation upon which all of calculus is built. For derivatives, we use a specific limit called the difference quotient. It formalizes the process of finding the slope by shrinking the distance between our two points to zero.

f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}

Here, hh represents the tiny distance between our two points on the x-axis. As we let hh approach zero, the expression gives us the exact slope at point xx. The notation f(x)f'(x) (read as "f prime of x") is one way to write the derivative of the function f(x)f(x).

Calculating this limit every time you want to find a derivative is possible, but it's slow and repetitive. Luckily, mathematicians have developed a set of rules that streamline the process for different types of functions.

The Basic Rules

Think of these rules as shortcuts. Once you learn them, you can find the derivative of most common functions quickly and easily.

The simplest and most common rule is the Power Rule. It's used for functions where xx is raised to a power, like x2x^2 or x5x^5.

To apply the rule, you bring the exponent down to multiply by the variable, and then you subtract one from the original exponent.

ddxxn=nxn1\frac{d}{dx} x^n = nx^{n-1}

Let’s try it on f(x)=x3f(x) = x^3. Here, n=3n=3. We bring the 3 down and subtract 1 from the exponent, giving us f(x)=3x31=3x2f'(x) = 3x^{3-1} = 3x^2. This works for any real number exponent, including fractions and negative numbers. For example, the derivative of x\sqrt{x} (which is x1/2x^{1/2}) is 12x1/2\frac{1}{2}x^{-1/2}.

Next is the Product Rule, for when you're differentiating two functions multiplied together.

The rule is: the first function times the derivative of the second, plus the second function times the derivative of the first.

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

For example, to find the derivative of h(x)=x2sin(x)h(x) = x^2 \sin(x), our first function is x2x^2 and our second is sin(x)\sin(x). The derivative of x2x^2 is 2x2x and the derivative of sin(x)\sin(x) is cos(x)\cos(x). Following the rule, we get h(x)=(x2)(cos(x))+(sin(x))(2x)h'(x) = (x^2)(\cos(x)) + (\sin(x))(2x).

Similar to the Product Rule, the Quotient Rule handles the case where one function is divided by another.

ddx[f(x)g(x)]=g(x)f(x)f(x)g(x)[g(x)]2\frac{d}{dx} \left[ \frac{f(x)}{g(x)} \right] = \frac{g(x)f'(x) - f(x)g'(x)}{[g(x)]^2}

The mnemonic for this one is "Low D-high minus High D-low, square the bottom and away we go!" Here, 'low' is the denominator g(x)g(x), 'high' is the numerator f(x)f(x), and 'D' means 'derivative of'. It's crucial to get the order right because of the subtraction in the numerator.

The Chain Rule

What happens when you have a function inside of another function? This is called a composite function. For example, consider the function h(x)=sin(x3)h(x) = \sin(x^3). This is not a product or a quotient. It's the function x3x^3 nested inside the sin(x)\sin(x) function.

To differentiate these, we use the Chain Rule, which is perhaps the most important differentiation rule of all.

The chain rule is the most important rule for taking derivatives.

The Chain Rule says you should take the derivative of the 'outside' function, leaving the 'inside' function untouched, and then multiply the whole thing by the derivative of the 'inside' function.

ddxf(g(x))=f(g(x))g(x)\frac{d}{dx}f(g(x)) = f'(g(x)) \cdot g'(x)

Let's use our example, h(x)=sin(x3)h(x) = \sin(x^3).

  1. The outside function is sin()\sin(), and its derivative is cos()\cos().
  2. The inside function is x3x^3, and its derivative is 3x23x^2.

Applying the rule, we take the derivative of the outside, keeping the inside the same: cos(x3)\cos(x^3). Then we multiply by the derivative of the inside: 3x23x^2. So, the final answer is h(x)=cos(x3)3x2h'(x) = \cos(x^3) \cdot 3x^2.

Mastering these four rules—Power, Product, Quotient, and Chain—gives you the tools to differentiate a huge variety of functions. It all comes down to recognizing which rule to apply and when.