Calculus

Unveiling the Poetry of Motion and Change

The Limit: Approaching the Infinite

Imagine walking towards a wall, covering half the remaining distance with each step. You'll get incredibly close, but never actually touch it. A **limit** is this idea: what value does a function **$f(x)$** approach as its input **$x$** gets infinitely close to some number?

For a limit to exist at a point, the function must approach the **same value** whether you're coming from the **left** (values slightly less than the target) or from the **right** (values slightly greater than the target). If the left-hand limit and right-hand limit are different, the **limit does not exist**.

It's the **foundational concept** of Calculus, allowing us to navigate the realm of the infinitely small and precisely describe behavior near a point, even if the function isn't defined *at* that point.

Interactive Limit Explorer

Let's explore $f(x) = x^2$ as $x$ approaches 2.

$x =$ 1.00
As $x \to 2$, $f(x) \to$ 1.00
---

Two Famous Limits

$\lim_{x \to 0} \frac{e^x - 1}{x} = 1$

$\lim_{x \to 0} \frac{\ln(1 + x)}{x} = 1$

---

Algebra of Limits: Rules for Calculation

Calculating limits from scratch can be complex. Fortunately, there are **simple rules** to combine and evaluate limits of functions. Let $\lim_{x \to a} f(x) = L$ and $\lim_{x \to a} g(x) = M$.

Sum/Difference Rule

$\lim_{x \to a} [f(x) \pm g(x)] = L \pm M$

Product Rule

$\lim_{x \to a} [f(x) \cdot g(x)] = L \cdot M$

Quotient Rule

$\lim_{x \to a} \frac{f(x)}{g(x)} = \frac{L}{M}$, if $M \neq 0$

Constant Multiple Rule

$\lim_{x \to a} [c \cdot f(x)] = c \cdot L$

These rules **simplify the process** of finding limits for more complex expressions.

---

Continuity: A Function Without Breaks

A function is said to be **continuous** at a point if its graph can be drawn **without lifting your pen**. More formally, it meets three essential conditions:

1. $f(a)$ is Defined

The function must have a clearly **defined value** at the point '$a$'.

2. The Limit Exists

The **limit** of $f(x)$ as $x$ approaches '$a$' (from both left and right) must **exist**.

3. Limit Equals Value

The **limit** of $f(x)$ as $x$ approaches '$a$' must be exactly **equal to $f(a)$**.

A function $f(x)$ is continuous at $x=a$ if:
$\lim_{x \to a} f(x) = f(a)$
---

Derivatives: The Art of Instantaneous Change

If limits are about approaching a destination, **derivatives** are about the **speed and direction** at any single instant on that journey. A derivative measures the **instantaneous rate of change**. It's the speedometer of a function.

Beyond just the slope of a curve, the derivative tells us how sensitive a function is to changes in its input. For example, the derivative of a position function gives us **velocity**, and the derivative of velocity gives us **acceleration**.

Geometric View: The Slope of a Tangent

Drag the slider to see the secant line become a tangent.

$h =$ 2.00
Slope: ...

The Formal Definition

This beautiful idea is captured in the **definition of the derivative**. It represents the **slope of the tangent line** to the curve $y=f(x)$ at any point $(x, f(x))$.

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

**Important Note:** If a function is **differentiable** at a point, it *must* also be **continuous** at that point. However, a function can be continuous but **not differentiable** (e.g., a sharp corner or cusp in the graph).

---

The Toolkit of Differentiation

We don't always need to use the limit definition. Mathematicians have developed **powerful rules** to find derivatives quickly.

Constant Rule

If $f(x) = c$, then $f'(x) = 0$

Power Rule

If $f(x) = x^n$, then $f'(x) = nx^{n-1}$

Sum/Difference Rule

$(f \pm g)' = f' \pm g'$

Product Rule

$(fg)' = f'g + fg'$

Quotient Rule

$\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}$

Chain Rule

$(f(g(x)))' = f'(g(x)) \cdot g'(x)$

---

Derivatives of Common Functions

Polynomials

The derivative of $x^3+2x^2-5$ is $3x^2+4x$.

Trigonometry

The derivative of $\sin(x)$ is $\cos(x)$.
The derivative of $\cos(x)$ is $-\sin(x)$.

Exponential Functions

The derivative of $e^x$ is $e^x$.

Logarithmic Functions

The derivative of $\ln(x)$ is $\frac{1}{x}$.

---

Why Calculus Matters: Real-World Applications

Calculus isn't just abstract math; it's a powerful tool used across countless fields to **solve real-world problems**.

Physics & Engineering

Understanding **motion**, forces, electricity, and designing structures.

Economics & Finance

**Optimizing profits**, modeling market trends, risk assessment.

Biology & Medicine

Modeling **population growth**, drug concentration in the body, disease spread.

Computer Science

Graphics, **machine learning** algorithms, optimization problems.

Data Science

Understanding gradients, **optimization** in statistical models.

Art & Design

Creating **smooth curves and surfaces** in computer graphics and animation.