Home Tutorials Calculus: Integration & Derivation

Calculus: The Mathematics of Change

Master the fundamental operations of calculus—derivatives and integrals. Discover how these powerful tools help us understand rates of change, areas under curves, and the mathematical description of our dynamic world.

Limits and Continuity

Calculus begins with the concept of limits—what happens to a function as its input approaches a particular value.

The Limit

limx→a f(x) = L
As x approaches a, f(x) approaches L

Understanding Limits Intuitively

Example: limx→2 (x² - 1)

x approaches 2 f(x) = x² - 1
1.9 2.61
1.99 2.9601
1.999 2.996001
2 3
2.001 3.004001
2.01 3.0401
2.1 3.41
Therefore: limx→2 (x² - 1) = 3

Continuity

A function is continuous at x = a if:

  1. f(a) exists (the function is defined at a)
  2. limx→a f(x) exists (the limit exists)
  3. limx→a f(x) = f(a) (the limit equals the function value)

🌊 Real-World Connection

Limits help us understand instantaneous rates of change. For example, the speedometer in your car shows instantaneous velocity—the limit of average velocity as the time interval approaches zero!

Derivatives: Measuring Rate of Change

The derivative measures how fast a function is changing at any given point. It's the slope of the tangent line to the curve.

Definition of the Derivative

f'(x) = limh→0 [f(x+h) - f(x)] / h
The instantaneous rate of change of f at x

Geometric Interpretation

From Secant to Tangent

The derivative is the limit of secant line slopes as the two points get infinitely close:

Secant slope: [f(x+h) - f(x)] / h
↓ as h → 0
Tangent slope: f'(x)

Computing a Derivative from First Principles

Find the derivative of f(x) = x²

Step 1: f'(x) = limh→0 [f(x+h) - f(x)] / h
Step 2: f(x+h) = (x+h)² = x² + 2xh + h²
Step 3: f(x+h) - f(x) = x² + 2xh + h² - x² = 2xh + h²
Step 4: [f(x+h) - f(x)] / h = (2xh + h²) / h = 2x + h
Step 5: limh→0 (2x + h) = 2x
Answer: f'(x) = 2x

📈 Physical Interpretation

  • Position → Velocity: If s(t) is position, then s'(t) is velocity
  • Velocity → Acceleration: If v(t) is velocity, then v'(t) is acceleration
  • Economics: Marginal cost is the derivative of the cost function
  • Biology: Population growth rate is the derivative of population

Derivative Rules

Instead of using the limit definition every time, we use these powerful rules to find derivatives quickly.

Basic Rules

Power Rule

d/dx [x^n] = nx^(n-1)
d/dx [x³] = 3x²

Constant Rule

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

Constant Multiple

d/dx [cf(x)] = c·f'(x)
d/dx [5x²] = 5·2x = 10x

Sum Rule

d/dx [f(x) + g(x)] = f'(x) + g'(x)
d/dx [x² + 3x] = 2x + 3

Product Rule

d/dx [f(x)g(x)] = f'(x)g(x) + f(x)g'(x)
d/dx [x²·sin(x)] = 2x·sin(x) + x²·cos(x)

Quotient Rule

d/dx [f(x)/g(x)] = [f'(x)g(x) - f(x)g'(x)] / [g(x)]²
d/dx [x²/(x+1)] = [2x(x+1) - x²(1)] / (x+1)²

Chain Rule

d/dx [f(g(x))] = f'(g(x))·g'(x)
d/dx [sin(x²)] = cos(x²)·2x

Exponential

d/dx [e^x] = e^x
d/dx [e^(2x)] = 2e^(2x)

Common Function Derivatives

sin(x) cos(x)
cos(x) -sin(x)
tan(x) sec²(x)
ln(x) 1/x
e^x e^x

Applications of Derivatives

Derivatives have countless real-world applications, from optimization problems to understanding motion.

Finding Critical Points

Critical Points occur where:

  • f'(x) = 0 (horizontal tangent)
  • f'(x) is undefined (vertical tangent or cusp)

Critical points help us find local maxima and minima.

Optimization Problems

Example: Maximizing Area

Problem: You have 100 feet of fencing to enclose a rectangular garden. What dimensions maximize the area?

Setup: Let width = w, length = l. Constraint: 2w + 2l = 100
Express l: l = 50 - w
Area function: A(w) = w(50 - w) = 50w - w²
Find derivative: A'(w) = 50 - 2w
Set equal to 0: 50 - 2w = 0 → w = 25
Answer: 25 ft × 25 ft square maximizes area (625 sq ft)

Related Rates

🚗

Motion Analysis

Position, velocity, and acceleration are related through derivatives. If s(t) is position, then v(t) = s'(t) and a(t) = v'(t) = s''(t).

💰

Economics

Marginal cost, revenue, and profit are derivatives of their respective total functions. Used to optimize business decisions.

🧬

Biology

Population growth rates, enzyme kinetics, and drug concentration changes are modeled using derivatives.

🏗️

Engineering

Optimization of structures, heat transfer rates, and electrical circuit analysis all rely on derivative calculations.

Integrals: Finding Areas and Accumulation

Integration is the reverse process of differentiation. It helps us find areas under curves and solve accumulation problems.

The Definite Integral

ab f(x) dx = limn→∞ Σi=1n f(xi)Δx
The area under f(x) from x = a to x = b

Riemann Sums

We approximate the area under a curve by dividing it into rectangles:

1 Divide [a,b] into n equal subintervals
2 Width of each rectangle: Δx = (b-a)/n
3 Height of rectangle i: f(xi)
4 Sum all rectangle areas: Σ f(xi)Δx
5 Take limit as n → ∞ for exact area

Antiderivatives

If F'(x) = f(x), then F(x) is an antiderivative of f(x)

The indefinite integral: ∫ f(x) dx = F(x) + C

The constant C accounts for all possible antiderivatives.

Basic Integration Rules

Power Rule: ∫ x^n dx = x^(n+1)/(n+1) + C (n ≠ -1)
Exponential: ∫ e^x dx = e^x + C
Logarithmic: ∫ 1/x dx = ln|x| + C
Trigonometric: ∫ sin(x) dx = -cos(x) + C
Trigonometric: ∫ cos(x) dx = sin(x) + C

🎯 Key Insight

Integration and differentiation are inverse operations! If you integrate a function and then differentiate the result, you get back to the original function (up to a constant).

Integration Techniques

Some integrals require special techniques beyond basic rules.

Substitution Method

u-Substitution

When you see a function and its derivative, substitute u for the inner function.

Example: ∫ 2x(x² + 1)⁵ dx
Let: u = x² + 1, so du = 2x dx
Substitute: ∫ u⁵ du
Integrate: u⁶/6 + C
Back-substitute: (x² + 1)⁶/6 + C

Integration by Parts

∫ u dv = uv - ∫ v du

Use when the integral is a product of two different types of functions.

Example: ∫ x e^x dx
Choose: u = x (so du = dx), dv = e^x dx (so v = e^x)
Apply formula: ∫ x e^x dx = x·e^x - ∫ e^x dx
Result: x·e^x - e^x + C = e^x(x - 1) + C

🧠 LIATE Rule for Integration by Parts

Choose u in this order of priority:

  • Logarithmic functions (ln x, log x)
  • Inverse trig functions (arcsin x, arctan x)
  • Algebraic functions (x², x³, etc.)
  • Trigonometric functions (sin x, cos x)
  • Exponential functions (e^x, 2^x)

The Fundamental Theorem of Calculus

This theorem connects derivatives and integrals, showing they are inverse operations.

Fundamental Theorem of Calculus

Part 1 (FTC1)

If F(x) = ∫ax f(t) dt, then F'(x) = f(x)

The derivative of an integral gives back the original function.

Part 2 (FTC2)

ab f(x) dx = F(b) - F(a)

Where F'(x) = f(x). To evaluate a definite integral, find an antiderivative and subtract.

Using FTC2 to Evaluate Definite Integrals

Example: ∫14 x² dx

Find antiderivative: F(x) = x³/3
Apply FTC2: 14 x² dx = F(4) - F(1)
Calculate: = 4³/3 - 1³/3 = 64/3 - 1/3
Result: = 63/3 = 21

🌟 Why This Theorem is Fundamental

This theorem revolutionized mathematics by showing that two seemingly different concepts—slopes of tangent lines (derivatives) and areas under curves (integrals)—are intimately connected. It's one of the greatest achievements in mathematical history!

Applications of Integrals

Integrals solve many real-world problems involving accumulation, area, volume, and more.

Area Between Curves

Area = ∫ab [f(x) - g(x)] dx

Where f(x) ≥ g(x) on the interval [a, b]

Example: Area between y = x² and y = x from x = 0 to x = 1
Setup: Since x ≥ x² on [0,1], use ∫01 (x - x²) dx
Integrate: ∫ (x - x²) dx = x²/2 - x³/3
Evaluate: [x²/2 - x³/3]01 = (1/2 - 1/3) - (0) = 1/6

Volume of Solids of Revolution

Disk Method

V = π ∫ab [R(x)]² dx

When rotating around the x-axis, R(x) is the radius function.

Washer Method

V = π ∫ab ([R(x)]² - [r(x)]²) dx

When there's a hole in the middle, subtract inner radius squared.

Physics Applications

🚀 Work Done by a Variable Force

W = ∫ab F(x) dx

If force varies with position, integrate to find total work.

💧 Fluid Pressure

F = ∫ab ρg·h(y)·w(y) dy

Pressure increases with depth, so integrate over the surface.

⚖️ Center of Mass

x̄ = (∫ x·ρ(x) dx) / (∫ ρ(x) dx)

Find the balance point of objects with varying density.

📈

Economics

Consumer and producer surplus, total revenue from marginal revenue, and economic growth models all use integration.

🩺

Medicine

Drug concentration over time, cardiac output calculations, and epidemiological models rely on integral calculus.

🌡️

Engineering

Heat transfer, electrical circuits, structural analysis, and signal processing all use integration extensively.

🌍

Environmental Science

Pollution accumulation, population dynamics, and climate modeling use integrals to track changes over time.

Practice Exercises

Test your understanding of calculus concepts:

Exercise 1: Find limx→3 (x² - 9)/(x - 3)

Exercise 2: Find the derivative of f(x) = 3x⁴ - 2x² + 5

Exercise 3: Find the derivative of g(x) = x²sin(x)

Exercise 4: Find the derivative of h(x) = sin(x²)

Exercise 5: Find ∫ (3x² - 4x + 1) dx

Exercise 6: Evaluate ∫02 x³ dx

Exercise 7: Find ∫ 2x(x² + 1)³ dx using substitution

Exercise 8: A ball is thrown upward with velocity v(t) = -32t + 64 ft/s. Find its position function if s(0) = 6 ft.

Exercise 9: Find the critical points of f(x) = x³ - 3x² + 2

Exercise 10: Find the area under y = x² from x = 1 to x = 3

Exercise 11: Use integration by parts to find ∫ x·ln(x) dx

Exercise 12: A water tank is being filled at a rate of r(t) = 10 + 2t gallons per minute. How much water is added in the first 5 minutes?

Exercise 13: Find the volume when y = √x is rotated around the x-axis from x = 0 to x = 4

Exercise 14: If f'(x) = 6x² - 4x and f(1) = 5, find f(x)

Exercise 15: Find the area between y = x² and y = 4 from x = -2 to x = 2

🎉 Congratulations!

You've mastered the fundamentals of calculus! You now understand:

  • ✓ Limits and continuity as the foundation of calculus
  • ✓ Derivatives as rates of change and slopes of tangent lines
  • ✓ All major derivative rules and their applications
  • ✓ Optimization, related rates, and motion problems
  • ✓ Integrals as areas under curves and antiderivatives
  • ✓ Integration techniques including substitution and integration by parts
  • ✓ The Fundamental Theorem of Calculus connecting derivatives and integrals
  • ✓ Real-world applications in physics, engineering, economics, and biology

Ready to test your knowledge?

Take the Full Quiz →