Welcome to the World of Calculus!

Welcome! In this chapter, we are diving into Differentiation. If you’ve ever wondered how to measure exactly how fast something is changing at a specific moment—like the precise speed of a falling apple or the rate at which a population grows—differentiation is your tool. Think of it as a "gradient-finder" for curves. Don't worry if it seems a bit abstract at first; we'll break it down step-by-step!


1. The Core Idea: What is a Derivative?

For a straight line, the gradient (slope) is the same everywhere. But for a curve, the steepness changes as you move along it. To find the gradient at a single point, we imagine a tangent (a straight line that just touches the curve at that point). The gradient of the curve at that point is exactly the same as the gradient of that tangent.

Differentiation from First Principles

How do we find this gradient mathematically? We start with two points on a curve very close together and find the gradient of the line (a chord) between them. As we move the points closer and closer until they are almost the same point, we find the limit. This is called "differentiation from first principles."

The formula for the gradient function, \( f'(x) \), is:
\( f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h} \)

Quick Review: Notation
We use two main ways to write the derivative:
1. \( \frac{dy}{dx} \): Read as "dy by dx." It represents the rate of change of \( y \) with respect to \( x \).
2. \( f'(x) \): Read as "f-prime of x." This is the gradient function of \( f(x) \).

Key Takeaway: Differentiation finds the rate of change. If you have a graph of distance vs. time, the derivative gives you the velocity.


2. The Basic Power Rule

The most common rule you'll use is for functions like \( y = kx^n \).
The Rule: Bring the power down to multiply, then subtract one from the power.
\( \frac{d}{dx}(kx^n) = nkx^{n-1} \)

Example: If \( y = 5x^3 \), then \( \frac{dy}{dx} = 3 \times 5x^{3-1} = 15x^2 \).
Example: If \( y = \frac{1}{x} \), first rewrite it as \( y = x^{-1} \). Then \( \frac{dy}{dx} = -1x^{-2} = -\frac{1}{x^2} \).

Common Mistake to Avoid: Don't forget that the derivative of a constant (just a number like 7) is 0. This is because a flat line (\( y=7 \)) has no slope!


3. Differentiating Special Functions

Beyond powers of \( x \), you need to know how to handle exponentials, logarithms, and trigonometry. Crucial Tip: For calculus with trig, your calculator must be in Radians!

Exponentials and Logs

  • The derivative of \( e^{kx} \) is \( ke^{kx} \). (The function \( e^x \) is special because it is its own derivative!)
  • The derivative of \( \ln(x) \) is \( \frac{1}{x} \).
  • The derivative of \( a^{kx} \) is \( k a^{kx} \ln(a) \).

Trigonometry

  • \( \frac{d}{dx}(\sin(kx)) = k \cos(kx) \)
  • \( \frac{d}{dx}(\cos(kx)) = -k \sin(kx) \) (Notice the minus sign!)
  • \( \frac{d}{dx}(\tan(kx)) = k \sec^2(kx) \)

Memory Aid: A common way to remember the "cycle" of trig derivatives is:
Sin \(\rightarrow\) Cos \(\rightarrow\) -Sin \(\rightarrow\) -Cos \(\rightarrow\) Sin

Key Takeaway: Always check if you need to "pull out" a constant \( k \) from inside the function to multiply the front.


4. The Three Golden Rules: Chain, Product, and Quotient

When functions get "messy," we use these specific rules. Don't worry if these seem tricky at first; they just require a bit of practice!

The Chain Rule (Functions inside Functions)

Think of this like Russian Nesting Dolls. You differentiate the outside, then multiply by the derivative of the inside.
If \( y = f(g(x)) \), then \( \frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx} \).

Example: \( y = (3x^2 + 1)^5 \).
Inside (\( u \)) is \( 3x^2 + 1 \). Outside is \( u^5 \).
Derivative = \( 5(3x^2 + 1)^4 \times (6x) = 30x(3x^2 + 1)^4 \).

The Product Rule (Two functions multiplied)

If \( y = uv \), then \( \frac{dy}{dx} = u \frac{dv}{dx} + v \frac{du}{dx} \).
Easy way to remember: "Left D-Right plus Right D-Left."

The Quotient Rule (Two functions divided)

If \( y = \frac{u}{v} \), then \( \frac{dy}{dx} = \frac{v \frac{du}{dx} - u \frac{dv}{dx}}{v^2} \).
Memory Aid: "Low D-High minus High D-Low, over the square of what's below."


5. Applications: What can we do with \( \frac{dy}{dx} \)?

Differentiation isn't just for solving equations; it helps us understand the shape and behavior of graphs.

Stationary Points (Maxima and Minima)

At the very top of a hill or the bottom of a valley on a graph, the gradient is zero. These are Stationary Points.
To find them, set \( \frac{dy}{dx} = 0 \) and solve for \( x \).

  • If the second derivative \( \frac{d^2y}{dx^2} > 0 \), it's a Minimum (looks like a smile).
  • If the second derivative \( \frac{d^2y}{dx^2} < 0 \), it's a Maximum (looks like a frown).

Increasing and Decreasing Functions

  • A function is increasing when \( \frac{dy}{dx} \geq 0 \).
  • A function is decreasing when \( \frac{dy}{dx} \leq 0 \).

Concavity and Points of Inflection

This describes the "bend" of the curve.
Concave Upwards (Convex): The graph bends upwards like a cup. \( \frac{d^2y}{dx^2} > 0 \).
Concave Downwards: The graph bends downwards like a cap. \( \frac{d^2y}{dx^2} < 0 \).
Point of Inflection: The exact point where the curve changes from concave up to concave down (or vice versa). At this point, \( \frac{d^2y}{dx^2} = 0 \).

Did you know? A point of inflection doesn't have to be a stationary point! It just means the "type of bend" is changing.


6. Advanced Techniques: Implicit and Parametric

Implicit Differentiation

Sometimes \( x \) and \( y \) are mixed up, like \( x^2 + y^2 = 25 \). You can't easily get "\( y = ... \)".
The Trick: Differentiate everything with respect to \( x \). Every time you differentiate a \( y \) term, just multiply it by \( \frac{dy}{dx} \).
Example: The derivative of \( y^2 \) is \( 2y \frac{dy}{dx} \).

Parametric Differentiation

If \( x \) and \( y \) are both defined by a third variable \( t \) (a parameter), use this version of the chain rule:
\( \frac{dy}{dx} = \frac{dy/dt}{dx/dt} \)


Summary Checklist

1. Can you differentiate basic powers, \( e^x \), \( \ln x \), and trig?
2. Do you know when to use Product, Quotient, and Chain rules?
3. Can you find stationary points by setting \( \frac{dy}{dx} = 0 \)?
4. Do you understand that \( \frac{d^2y}{dx^2} \) tells you the concavity of the curve?
5. Are you checking that your calculator is in radians for trig calculus?

Keep practicing! Calculus is a language, and the more you "speak" it by solving problems, the more natural it will feel. You've got this!