notAcalculator logo

Calculus Guide: Derivatives, Integrals, and Series Explained

A comprehensive guide to single-variable calculus covering derivatives, integrals, Taylor series, and their real-world applications.

Calculus Guide: Derivatives, Integrals, and Series Explained

What is Calculus?

Calculus is the mathematics of change. Where algebra asks "what is the value?", calculus asks "how is it changing?" — and that single shift in perspective unlocks physics, engineering, economics, biology, and every field where quantities vary over time or space.

This guide covers the three pillars of single-variable calculus: derivatives (rates of change), integrals (accumulation), and series (infinite sums). Each section includes worked examples, formulas, and the intuition behind the symbols.

Why Calculus Matters

Before diving into formulas, consider why calculus exists at all.

Isaac Newton and Gottfried Leibniz independently invented calculus in the late 17th century to solve two problems that algebra could not handle: (1) finding the instantaneous speed of a moving object, and (2) finding the area under an arbitrary curve. These two problems — rates of change and accumulation — turn out to be the same problem viewed from opposite directions, a connection formalized by the Fundamental Theorem of Calculus.

Today, calculus underpins:

  • Physics: Newton's laws are differential equations. Without calculus, there is no classical mechanics.
  • Engineering: Every bridge, airplane, and circuit is designed with calculus — stress analysis, fluid dynamics, control systems.
  • Economics: Marginal cost, marginal revenue, and optimization of profit all require derivatives.
  • Medicine: Pharmacokinetics (how drug concentration changes over time) is modeled with differential equations.
  • Machine learning: Gradient descent, the algorithm behind most AI training, is literally calculus applied to high-dimensional spaces.
[newton]

Core Concepts

Limits: The Foundation

A limit describes what value a function approaches as the input approaches some point. Limits are the foundation of calculus — derivatives and integrals are both defined in terms of limits.

lim⁡x→af(x)=L\lim_{x \to a} f(x) = L

This reads: "as x gets arbitrarily close to a, f(x) gets arbitrarily close to L."

Example: Consider the function (x squared minus 4) divided by (x minus 2). At x equals 2, the function is undefined (division by zero). But the limit as x approaches 2 is 4, because for every x not equal to 2, the expression simplifies to x plus 2, which approaches 4.

Limits formalize the idea of "getting infinitely close" — a concept that algebra handles poorly but calculus needs constantly.

Derivatives: Rates of Change

The derivative of a function measures how fast the output changes when the input changes. Geometrically, it is the slope of the tangent line to the curve at a point.

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}

This is the difference quotient: the average rate of change over a tiny interval h, taken to the limit as h shrinks to zero.

Notation: f prime of x, df over dx, dy over dx, and D sub x of f of x all mean the same thing.

Key derivative rules (the tools you use every day):

Power ruleddxxn=nxn−1\frac{d}{dx} x^n = n x^{n-1}Polynomials
Product rule(uv)′=u′v+uv′(uv)' = u'v + uv'Products of functions
Quotient rule(u/v)′=u′v−uv′v2(u/v)' = \frac{u'v - uv'}{v^2}Ratios of functions
Chain rule(f(g(x)))′=f′(g(x))⋅g′(x)(f(g(x)))' = f'(g(x)) \cdot g'(x)Composed functions
Exponentialddxex=ex\frac{d}{dx} e^x = e^xNatural exponential
Logarithmddxln⁡x=1x\frac{d}{dx} \ln x = \frac{1}{x}Natural logarithm
Trigonometricddxsin⁡x=cos⁡x\frac{d}{dx} \sin x = \cos xSine
Trigonometricddxcos⁡x=−sin⁡x\frac{d}{dx} \cos x = -\sin xCosine
Relative frequency of derivative rules in typical calculus problems.

The derivative calculator applies these rules to polynomials, exponentials, and trigonometric functions, returning both the exact symbolic derivative and a numeric evaluation at the point you choose. For the special case where the function is a straight line, the slope calculator gives the difference quotient directly — the derivative before the limit is taken.

[stewart]

Integrals: Accumulation

The integral is the reverse of the derivative. If the derivative tells you the rate of change, the integral tells you the total accumulation.

Indefinite integral (antiderivative):

∫f(x) dx=F(x)+C\int f(x) \, dx = F(x) + C

where F prime of x equals f of x and C is the constant of integration.

Definite integral (area under the curve):

∫abf(x) dx=F(b)−F(a)\int_a^b f(x) \, dx = F(b) - F(a)

This is the Fundamental Theorem of Calculus: differentiation and integration are inverse operations. The derivative of the integral of f is f itself.

Geometric meaning: The definite integral represents the signed area between the curve y equals f of x and the x-axis from x equals a to x equals b. Areas above the x-axis are positive; areas below are negative.

Key integral rules:

Power rule∫xn dx=xn+1n+1+C\int x^n \, dx = \frac{x^{n+1}}{n+1} + CPolynomials (n not equal to -1)
Exponential∫ex dx=ex+C\int e^x \, dx = e^x + CNatural exponential
Logarithm∫1x dx=ln⁡∣x∣+C\int \frac{1}{x} \, dx = \ln\lvert x \rvert + CReciprocal
Trigonometric∫sin⁡x dx=−cos⁡x+C\int \sin x \, dx = -\cos x + CSine
Trigonometric∫cos⁡x dx=sin⁡x+C\int \cos x \, dx = \sin x + CCosine
Substitution∫f(g(x))g′(x) dx\int f(g(x)) g'(x) \, dxChain rule in reverse
Integration by parts∫u dv=uv−∫v du\int u \, dv = uv - \int v \, duProducts of functions

The integral calculator evaluates definite integrals of polynomial, exponential, sine, and reciprocal functions, returning the exact area under the curve over the interval you specify.

Series: Infinite Sums

A series is the sum of the terms of a sequence. When the sequence is infinite, the series may converge to a finite value or diverge to infinity.

∑n=1∞an=a1+a2+a3+⋯\sum_{n=1}^{\infty} a_n = a_1 + a_2 + a_3 + \cdots

Geometric series (the most important):

∑n=0∞arn=a1−rfor ∣r∣<1\sum_{n=0}^{\infty} ar^n = \frac{a}{1-r} \quad \text{for } |r| < 1

This formula appears everywhere: compound interest, population growth, signal processing, and the Taylor series expansions that approximate functions.

Taylor series: Any sufficiently smooth function can be approximated by an infinite polynomial centered at a point a:

f(x)=∑n=0∞f(n)(a)n!(x−a)nf(x) = \sum_{n=0}^{\infty} \frac{f^{(n)}(a)}{n!} (x-a)^n

where f superscript (n) of a is the n-th derivative evaluated at a.

The Taylor series is how calculators compute sine, cosine, e to the x, and natural log of x — they approximate these transcendental functions with polynomials that are easy to evaluate.

Three tools cover this section. The series calculator sums arithmetic, geometric, and p-series and checks whether the infinite version converges. The Taylor series calculator builds the polynomial to whatever order you choose and shows the error against the true value, so you can watch the approximation tighten. And the number sequence calculator gives any nth term and the running sum for arithmetic, geometric, and Fibonacci sequences. When the result involves a logarithm, the log calculator evaluates it in any base.

[khan]

Key Calculations: Worked Examples

Example 1: Derivative of a Polynomial

Problem: Find the derivative of f of x equals 3x to the fourth minus 2x cubed plus 5x minus 7.

Solution: Apply the power rule to each term:

f′(x)=12x3−6x2+5f'(x) = 12x^3 - 6x^2 + 5

The derivative tells us the slope of the curve at any point. At x equals 1: f prime of 1 equals 12 minus 6 plus 5 equals 11, so the curve is rising steeply at that point. If the coefficient arithmetic is what trips you up, the exponent calculator checks each power term on its own.

Example 2: Derivative Using the Chain Rule

Problem: Find the derivative of f of x equals sine of x squared.

Solution: Let u equal x squared, so f equals sine of u. Then:

f′(x)=cos⁡(x2)⋅2x=2xcos⁡(x2)f'(x) = \cos(x^2) \cdot 2x = 2x \cos(x^2)

The chain rule is essential whenever you have a function inside another function — which happens in almost every real-world application.

Example 3: Definite Integral

Problem: Find the area under f of x equals x squared from x equals 0 to x equals 3.

Solution: The antiderivative of x squared is x cubed over 3. Apply the Fundamental Theorem:

∫03x2 dx=[x33]03=273−0=9\int_0^3 x^2 \, dx = \left[ \frac{x^3}{3} \right]_0^3 = \frac{27}{3} - 0 = 9

The area under the parabola from 0 to 3 is 9 square units.

Example 4: Taylor Series for e to the x

Problem: Approximate e to the 0.5 using the first 4 terms of the Taylor series centered at 0.

Solution: Since all derivatives of e to the x are e to the x, and e to the 0 equals 1:

ex≈1+x+x22!+x33!e^x \approx 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!}

At x equals 0.5:

e0.5≈1+0.5+0.252+0.1256=1+0.5+0.125+0.0208=1.6458e^{0.5} \approx 1 + 0.5 + \frac{0.25}{2} + \frac{0.125}{6} = 1 + 0.5 + 0.125 + 0.0208 = 1.6458

The true value is e to the 0.5 approximately 1.6487, so the 4-term approximation has an error of about 0.003 (0.2 percent).

Example 5: Number Sequence

Problem: Find the 10th term of the sequence defined by a sub n equals 2n squared minus 3n plus 1.

Solution: Substitute n equals 10:

a10=2(100)−3(10)+1=200−30+1=171a_{10} = 2(100) - 3(10) + 1 = 200 - 30 + 1 = 171

Number sequences model discrete change — population growth, compound interest, and recursive algorithms all rely on them.

[paul]

Practical Applications

Physics: Velocity and Acceleration

If s of t is the position of an object at time t, then:

  • Velocity: v of t equals s prime of t (first derivative of position)
  • Acceleration: a of t equals v prime of t equals s double-prime of t (second derivative of position)

This is why calculus was invented. Newton's second law, F equals m a, combined with a equals s double-prime of t, gives F equals m times s double-prime of t — a differential equation that describes how forces affect motion.

Economics: Marginal Analysis

In economics, the marginal cost is the derivative of the total cost function: MC equals C prime of q. It tells you how much it costs to produce one more unit.

If C of q equals 100 plus 5q plus 0.1 q squared, then MC equals 5 plus 0.2q. At q equals 50: MC equals 5 plus 10 equals 15. Producing the 51st unit costs approximately 15. Setting marginal cost equal to marginal revenue to find the profit-maximizing quantity usually leaves a linear or quadratic equation to solve; the quadratic equation calculator handles the quadratic case.

Medicine: Drug Concentration

The concentration of a drug in the bloodstream often follows an exponential decay: C of t equals C sub 0 times e to the negative k t, where k is the elimination rate constant. The derivative C prime of t equals negative k times C sub 0 times e to the negative k t tells you how fast the drug is being metabolized — critical for dosing schedules.

Engineering: Stress Analysis

In structural engineering, the bending moment M of x and shear force V of x in a beam are related by V of x equals M prime of x. Engineers use this to determine where a beam is most likely to fail under load. When several members interact, the equilibrium conditions become a system of linear equations, and the coefficient matrix is inverted to solve it — the matrix calculator computes determinants and inverses for 2x2 and 3x3 systems.

Computer Science: Algorithm Analysis

In computer science, calculus appears in the analysis of algorithms. The time complexity of an algorithm often involves sums that are approximated by integrals. For example, the sum of 1 over k from k equals 1 to n (the harmonic series) grows like the natural logarithm of n, which is found by integrating 1 over x. This connection between discrete sums and continuous integrals is fundamental to understanding how algorithms scale.

Finance: Continuous Compounding

In finance, continuous compounding of interest uses the exponential function: A equals P times e to the r t, where P is the principal, r is the annual rate, and t is time in years. The derivative of this function with respect to time gives the instantaneous rate of growth, which is proportional to the current amount. This is why continuous compounding is sometimes called "exponential growth" — the rate of change is proportional to the quantity itself.

[mit]

Comparison Tables

Derivative vs. Integral: When to Use Which

Question answered"How fast is it changing?""How much has accumulated?"
Geometric meaningSlope of tangent lineArea under the curve
Inverse operationIntegral reverses itDerivative reverses it
Typical useOptimization, rates, slopesTotals, averages, areas
Real-world exampleSpeed from positionDistance from speed

Common Functions and Their Derivatives

x to the nn times x to the n-1x to the n+1 over n+1 plus C
e to the xe to the xe to the x plus C
ln of x1 over xx times ln of x minus x plus C
sin of xcos of xnegative cos of x plus C
cos of xnegative sin of xsin of x plus C
tan of xsec squared of xnegative ln of absolute cos of x plus C
Relative difficulty of calculus topics (1-10 scale).

Common Mistakes

  1. Forgetting the constant of integration: The integral of x squared dx equals x cubed over 3 plus C. The plus C is not optional — without it, you are claiming there is only one antiderivative, which is false.

  2. Chain rule errors: The most common mistake in calculus. When differentiating sine of x squared, you must multiply by the derivative of the inner function: 2x times cosine of x squared, not just cosine of x squared.

  3. Confusing derivative and integral: The derivative of x squared is 2x, but the integral of x squared is x cubed over 3 plus C. They are inverse operations, not the same operation.

  4. Ignoring the domain: The integral of 1 over x dx equals ln of absolute value of x plus C, not ln of x plus C. The absolute value matters because 1 over x is defined for negative x too.

  5. Taylor series convergence: A Taylor series does not always converge for all x. The series for ln of (1 plus x) converges only for negative 1 less than x less than or equal to 1. Using it outside this range gives wrong answers.

  6. Treating dy over dx as a fraction: While Leibniz notation looks like a fraction, dy over dx is not y over x. It is a single symbol representing the derivative. (Though in advanced calculus, differential forms do treat it as a ratio — but that is beyond this guide.)

Frequently Asked Questions

❓ What is the difference between a derivative and an integral?
✅ A derivative measures the rate of change (how fast something is changing at a point). An integral measures accumulation (the total amount that has built up over an interval). They are inverse operations: the derivative of an integral gives back the original function.
❓ Why do we need calculus? Can't algebra handle everything?
✅ Algebra works with static quantities and fixed values. Calculus handles quantities that change continuously — speed, acceleration, growth rates, areas of curved shapes. Physics, engineering, economics, and medicine all require calculus because the real world is dynamic, not static.
❓ What is the Fundamental Theorem of Calculus?
✅ It states that differentiation and integration are inverse operations. If F of x is the integral of f of x, then F prime of x equals f of x. This means you can find the area under a curve by finding an antiderivative — a powerful shortcut that avoids computing limits of Riemann sums.
❓ How do calculators compute sin and cos?
✅ They use Taylor series. sin of x equals x minus x cubed over 3 factorial plus x to the fifth over 5 factorial minus x to the seventh over 7 factorial plus ... The calculator evaluates enough terms of this infinite series to get the desired precision (usually 10-15 terms for double-precision floating point).
❓ What is a limit, and why does it matter?
✅ A limit describes what value a function approaches as the input gets arbitrarily close to some point. Limits are the foundation of calculus — both derivatives and integrals are defined as limits. Without limits, we cannot rigorously talk about infinitely small quantities.
❓ Is calculus hard to learn?
✅ Calculus has a reputation for being difficult, but the core ideas (rates of change and accumulation) are intuitive. The difficulty comes from the algebra required to manipulate expressions. If your algebra skills are solid, calculus is much more approachable. Most students find the concepts harder than the computation.
❓ What is the chain rule, and when do I use it?
✅ The chain rule is for differentiating composite functions — functions inside functions. If f of x equals g of h of x, then f prime of x equals g prime of h of x times h prime of x. You use it whenever the input to a function is itself a function of x, which happens in almost every real-world application.
❓ What is an antiderivative?
✅ An antiderivative of f of x is a function F of x such that F prime of x equals f of x. It is the reverse of differentiation. Finding antiderivatives is called integration. Note that antiderivatives are unique only up to a constant (the plus C), because the derivative of any constant is zero.
❓ Can I use calculus in everyday life?
✅ Yes. Calculus appears in: optimizing (finding the best price, maximum profit, minimum material), modeling growth (population, investments, epidemics), and understanding change (how fast a tank is filling, how a drug concentration decays). Even GPS navigation uses calculus (trilateration involves solving systems of equations derived from calculus).
❓ What is the difference between a sequence and a series?
✅ A sequence is an ordered list of numbers (a sub 1, a sub 2, a sub 3, ...). A series is the sum of those numbers (a sub 1 plus a sub 2 plus a sub 3 plus ...). A sequence is about listing; a series is about adding. Infinite series can converge to a finite value (like pi over 4 equals 1 minus 1 over 3 plus 1 over 5 minus 1 over 7 plus ...) or diverge to infinity.

Glossary

  • Antiderivative: A function whose derivative is the given function. Used in integration.
  • Chain rule: A rule for differentiating composite functions.
  • Definite integral: An integral with upper and lower bounds, representing a numerical value (area).
  • Derivative: The rate of change of a function with respect to its variable.
  • Fundamental Theorem of Calculus: The theorem stating that differentiation and integration are inverse operations.
  • Indefinite integral: An integral without bounds, representing a family of functions (antiderivatives).
  • Limit: The value a function approaches as the input approaches a specific point.
  • Rate of change: How much a quantity changes per unit of another quantity.
  • Series: The sum of the terms of a sequence.
  • Taylor series: A power series representation of a function centered at a point.
  • Tangent line: A line that touches a curve at a single point and has the same slope as the curve at that point.

References

  1. [1]Stewart, James. (2015). Calculus: Early Transcendentals (8th ed.). Cengage Learning.Buy on Amazon
  2. [2]Thomas, George B., Weir, Maurice D., and Hass, Joel. (2014). Thomas' Calculus (13th ed.). Pearson.Buy on Amazon
  3. [3]Khan Academy. Calculus course (free).
  4. [4]Paul's Online Math Notes. Calculus I-III (free).
  5. [5]MIT OpenCourseWare. Single Variable Calculus (18.01).
  6. [6]Newton, Isaac. (1687). Philosophiae Naturalis Principia Mathematica.
Give us your feedback! Was this useful?
1b

UnByte — Independent Software Engineering

All reference data cites its sources — Editorial policy