📐 Calculus for Beginners

Integration vs Differentiation:
A Beginner's Visual Guide

If calculus feels confusing, you're not alone. In this guide, we break down the two pillars of calculus — differentiation and integration — with plain English, real-world analogies, interactive graphs, and beginner-friendly formulas. No PhD required.

📅 March 2, 2026⏱ 10 min read✍️ WeebCoder

What is Calculus?

Calculus is the branch of mathematics that studies continuous change. It was independently developed by Isaac Newton and Gottfried Wilhelm Leibniz in the 17th century. Today, calculus underlies physics, engineering, economics, machine learning, and much more.

Calculus has two main operations:

📉

Differentiation

Measures how fast something changes at a specific moment — the slope of a curve.

📈

Integration

Measures how much has accumulated over time — the area under a curve.

Think of them as opposites — like multiplication and division, or addition and subtraction. The beautiful connection between them is captured by the Fundamental Theorem of Calculus (more on that later).

What is Differentiation?

Differentiation answers the question: "How is this value changing right now?"

Imagine you're driving a car. Your position tells you where you are. Differentiating your position over time gives you your speed. Differentiating your speed gives you your acceleration. Every derivative is a rate of change.

Graph: The Derivative is the Slope of the Tangent Line

xyslope = f′(x) = 3y = x²-2-10123

The red dashed line is the tangent at x = 1.5 on the curve y = x². Its slope (3) is the derivative f′(1.5).

Formally, the derivative of a function f(x) is defined as:

f′(x) = limh→0 [f(x + h) − f(x)] / h

This is called the limit definition of the derivative. In practice, we use simpler rules so we don't have to compute limits every time.

Differentiation Rules and Formulas

You don't need to use the limit definition every time. These rules let you differentiate almost any function quickly:

Power Rule

d/dx [xⁿ] = n · xⁿ⁻¹
Example: d/dx [x³] = 3x²

Bring the exponent down and reduce it by 1. Works for any constant n.

Constant Rule

d/dx [c] = 0
Example: d/dx [7] = 0

A constant doesn't change, so its rate of change is always zero.

Sum / Difference Rule

d/dx [f ± g] = f′ ± g′
Example: d/dx [x² + x] = 2x + 1

Differentiate each term separately.

Product Rule

d/dx [f · g] = f′g + fg′
Example: d/dx [x² · sin(x)] = 2x·sin(x) + x²·cos(x)

Use this when two functions are multiplied together.

Chain Rule

d/dx [f(g(x))] = f′(g(x)) · g′(x)
Example: d/dx [(x²+1)³] = 3(x²+1)² · 2x

Use this for composite functions (a function inside another function).

Common Derivatives

d/dx[sin x]=cos x | d/dx[cos x]=−sin x | d/dx[eˣ]=eˣ | d/dx[ln x]=1/x
Example: d/dx [eˣ] = eˣ

Memorise these — they appear everywhere in calculus.

What is Integration?

Integration answers the question: "How much has accumulated?"

Back to the driving example: if you know your speed at every moment, integrating it over time gives you the total distance you've traveled. Integration adds up infinitely many tiny pieces to compute a total.

Visually, the definite integral of a function between two points equals the area under the curve between those points.

Graph: The Integral is the Area Under the Curve

xy02Area = 8/3y = x²-2-10123

The purple shaded area under y = x² from x = 0 to x = 2 equals ∫₀² x² dx = 8/3 ≈ 2.67

There are two types of integrals:

Indefinite Integral

∫ f(x) dx = F(x) + C

No specific bounds. Returns a function + constant C. Represents the antiderivative.

Definite Integral

∫ₐᵇ f(x) dx = F(b) − F(a)

Has bounds a and b. Returns a number — the exact area between a and b.

The +C in the indefinite integral is called the constant of integration. Because differentiation destroys constants (d/dx[5] = 0), we must acknowledge that infinitely many functions could share the same derivative — they're just shifted vertically by a constant.

Integration Rules and Formulas

Integration is often trickier than differentiation, but these core rules handle the majority of problems you'll encounter as a beginner:

Power Rule for Integration

∫ xⁿ dx = xⁿ⁺¹ / (n+1) + C (where n ≠ −1)
Example: ∫ x³ dx = x⁴/4 + C

Raise the exponent by 1 and divide by the new exponent. Opposite of the power rule for differentiation.

Constant Multiple Rule

∫ c·f(x) dx = c · ∫ f(x) dx
Example: ∫ 5x² dx = 5 · x³/3 + C

Constants slide outside the integral.

Sum / Difference Rule

∫ [f(x) ± g(x)] dx = ∫f dx ± ∫g dx
Example: ∫ (x² + x) dx = x³/3 + x²/2 + C

Integrate each term separately.

Common Integrals

∫eˣdx = eˣ+C | ∫(1/x)dx = ln|x|+C | ∫cos(x)dx = sin(x)+C | ∫sin(x)dx = −cos(x)+C
Example: ∫ eˣ dx = eˣ + C

These match the common derivative table — just reversed.

Substitution Rule (u-substitution)

∫ f(g(x))·g′(x) dx = ∫ f(u) du where u = g(x)
Example: ∫ 2x·(x²+1)³ dx → let u=x²+1, du=2x dx → ∫u³du = u⁴/4 + C

The reverse of the chain rule. Simplifies composite integrals.

Side-by-Side Comparison

Here's a clear table showing the key differences between the two operations:

FeatureDifferentiationIntegration
Question answeredHow fast is it changing?How much has accumulated?
Symbold/dx or f′(x)∫ f(x) dx
Visual meaningSlope of tangent lineArea under the curve
Result typeAnother functionFunction + C (or a number)
Core rulePower: d/dx[xⁿ] = nxⁿ⁻¹Power: ∫xⁿdx = xⁿ⁺¹/(n+1)+C
DifficultyMore mechanicalOften requires more strategy
Real-world useSpeed from positionDistance from speed
Inverse of?IntegrationDifferentiation

Differentiation → Slope

slope = f′(x)

Integration → Area

∫f(x)dx

The Fundamental Theorem of Calculus

The Fundamental Theorem of Calculus (FTC) is arguably the most important result in all of mathematics. It bridges differentiation and integration, proving they are inverse operations.

Part 1 — The Derivative of an Integral

If F(x) = ∫ₐˣ f(t) dt
then F′(x) = f(x)

Differentiating an integral gives back the original function. They undo each other.

Part 2 — Evaluating Definite Integrals

∫ₐᵇ f(x) dx = F(b) − F(a)
where F′(x) = f(x)

To find a definite integral, compute the antiderivative F(x), then subtract F(a) from F(b).

✏️ Worked Example Using FTC Part 2

Calculate ∫₁³ x² dx

Step 1: Find the antiderivative → F(x) = x³/3
Step 2: Apply bounds → F(3) − F(1) = 27/3 − 1/3
Step 3: Simplify → = 9 − 1/3 = 26/3 ≈ 8.67

Real-World Examples of Each Operation

Calculus isn't just abstract math — it's the engine behind the physical world. Here's where you'll encounter both operations in everyday science and engineering:

🚗

Speed and Distance

Differentiation: Differentiate position → speed (How fast are you going right now?)
Integration: Integrate speed → distance (How far did you travel in 2 hours?)
🌡️

Temperature Change

Differentiation: Differentiate temperature curve → rate of heating or cooling at a moment
Integration: Integrate heat flow rate → total heat energy transferred over time
💰

Economics / Finance

Differentiation: Differentiate revenue → marginal revenue (profit from one extra unit)
Integration: Integrate marginal cost → total cost of producing n units
🤖

Machine Learning

Differentiation: Gradient descent uses derivatives to find the minimum of a loss function
Integration: Probability distributions use integration to calculate likelihoods over ranges

Electrical Engineering

Differentiation: Differentiate charge → current (how charge changes per second)
Integration: Integrate current → total charge stored in a capacitor

Frequently Asked Questions

What is the difference between differentiation and integration?
Differentiation finds the rate of change (slope) of a function at any point, while integration finds the total accumulation (area under the curve) over an interval. They are inverse operations linked by the Fundamental Theorem of Calculus.
Which is harder — differentiation or integration?
Most beginners find differentiation easier first because the rules (power rule, product rule) are more mechanical. Integration is considered harder because there are many techniques and not every function has a neat closed-form integral.
What does the + C mean in integration?
The constant C (constant of integration) appears in indefinite integrals because differentiation destroys constants. Many different functions could have the same derivative — they're just shifted vertically. C accounts for all of them.
Can every function be differentiated or integrated?
Most smooth functions you'll encounter can be differentiated everywhere. Integration is trickier — some functions have no closed-form integral (like e^(−x²)) and must be handled numerically or with special functions.
How are differentiation and integration used in programming?
Derivatives are at the core of machine learning — gradient descent uses them to minimize error. Numerical integration is used in physics simulations, finance (option pricing), and statistics (computing probabilities under curves).

The Big Picture

Differentiation and integration are two sides of the same coin. Differentiation asks "How fast?" and integration asks "How much?". The Fundamental Theorem of Calculus ties them together into one unified, breathtaking idea.

d/dx [∫f(x)dx] = f(x)

Differentiate an integral → get back the original function.