P-Series: Definition and P-Series Test Calculator

The p-series is one of the first convergence tests you learn in calculus, and for good reason: it is the benchmark against which dozens of other series are compared. This p-series test calculator tells you instantly whether your series converges or diverges, states the reason, computes the exact sum when there is one, and graphs the partial sums so you can watch them level off or run away.

Here is the rule that drives everything: the p-series \( \sum \frac{1}{n^p} \) converges when \( p > 1 \) and diverges when \( p \leq 1 \). Simple to state, surprisingly deep in its consequences. Let me walk you through the theory, the edge cases, and how this p-series calculator can save you time on homework and exams.

P-Series: Definition and P-Series Test Calculator

What is a P-Series? Definition and Form

In calculus and real analysis, a p-series is a series of the form:

$$\sum_{n=1}^{\infty} \frac{1}{n^p} = 1 + \frac{1}{2^p} + \frac{1}{3^p} + \frac{1}{4^p} + \cdots$$

or equivalently:

$$\sum_{n=1}^{\infty} n^{-p} = 1 + 2^{-p} + 3^{-p} + 4^{-p} + \cdots$$

Here, \( n \) is a positive integer and \( p \) is a real number. The value of \( p \) completely determines whether the series converges or diverges. Nothing else matters.

The p-series is closely related to the Riemann zeta function, defined by Bernhard Riemann as:

$$\zeta(p) = \sum_{n=1}^{\infty} \frac{1}{n^p}$$

When \( p > 1 \), the zeta function returns the exact sum of the p-series. This function is one of the most important objects in all of mathematics, connecting number theory, complex analysis, and the distribution of prime numbers.

The P-Series Test of Convergence

The p-series convergence test is straightforward:

ConditionResultExample
\( p > 1 \)Converges\( \sum \frac{1}{n^2} \) converges to \( \frac{\pi^2}{6} \)
\( p = 1 \)Diverges (harmonic series)\( \sum \frac{1}{n} = 1 + \frac{1}{2} + \frac{1}{3} + \cdots = \infty \)
\( p < 1 \)Diverges\( \sum \frac{1}{\sqrt{n}} \) diverges
\( p \leq 0 \)Diverges (terms do not approach 0)\( \sum 1 \) obviously diverges

Why Does the P-Series Test Work? The Integral Test Proof

The most elegant proof uses the integral test. Consider the function \( f(x) = \frac{1}{x^p} \) for \( x \geq 1 \). This function is positive, continuous, and decreasing when \( p > 0 \).

The integral test says that \( \sum \frac{1}{n^p} \) converges if and only if \( \int_1^{\infty} \frac{1}{x^p} \, dx \) converges.

Evaluating the integral:

$$\int_1^{\infty} x^{-p} \, dx = \begin{cases} \frac{1}{p-1} & \text{if } p > 1 \\ \infty & \text{if } p \leq 1 \end{cases}$$

When \( p > 1 \), the antiderivative \( \frac{x^{1-p}}{1-p} \) approaches zero as \( x \to \infty \), giving a finite result. When \( p = 1 \), the integral becomes \( \ln(x) \), which diverges. When \( p < 1 \), the power function grows without bound.

This proof is important not just for the p-series itself, but because the integral test is one of the most widely applicable convergence tests in calculus.

The Harmonic Series: The Most Famous Divergent Series

The case \( p = 1 \) deserves special attention. The harmonic series:

$$\sum_{n=1}^{\infty} \frac{1}{n} = 1 + \frac{1}{2} + \frac{1}{3} + \frac{1}{4} + \cdots$$

diverges, even though its terms approach zero. This surprises many students: the terms get smaller and smaller, yet the sum is infinite.

How slowly does it diverge? The partial sums grow logarithmically. After \( N \) terms:

$$\sum_{n=1}^{N} \frac{1}{n} \approx \ln(N) + \gamma$$

where \( \gamma \approx 0.5772 \) is the Euler-Mascheroni constant, discovered by Euler in 1734. To reach a partial sum of just 10, you need about 12,367 terms. To reach 100, you need roughly \( e^{100} \approx 2.7 \times 10^{43} \) terms.

The harmonic series is the boundary between convergence and divergence for p-series. Any exponent even slightly above 1 makes the series converge; any exponent at or below 1 makes it diverge.

P-Series Calculator and Grapher

Use the calculator below to test any p-series for convergence. Enter your value of \( p \) and the number of terms to plot. The verdict comes back with the reason attached, the exact sum via the Riemann zeta function when the series converges, and a graph of the partial sums.

Enter the exponent p to test the p-series, the sum of 1/n^p from n = 1 to infinity. The calculator states the verdict with the reason, computes the exact sum via the Riemann zeta function when the series converges, and plots the partial sums.

Run the calculator to plot the partial sums of the p-series for your value of p.

The \( p \) box accepts plain numbers and simple expressions such as 3/2, 0.5, or 1.001. The series is always the textbook form: the sum of \( 1/n^p \) from \( n = 1 \) to infinity. Everything runs in your browser; nothing you type is sent anywhere.

One number decides everything. Compare p with 1.

Worked Examples: P-Series Convergence in Practice

Example 1: \( \sum \frac{1}{n^2} \) (The Basel Problem)

This is the p-series with \( p = 2 \). Since \( 2 > 1 \), it converges.

But what does it converge to? This question, known as the Basel problem, was posed by Pietro Mengoli in 1650 and remained unsolved for nearly a century. In 1735, Euler stunned the mathematical world by proving:

$$\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6} \approx 1.6449$$

This result connected an innocent-looking series of fractions to the transcendental number \( \pi \), and it launched Euler’s legendary career.

Example 2: \( \sum \frac{1}{n^{3/2}} \)

Here \( p = 3/2 = 1.5 \). Since \( 1.5 > 1 \), this series converges. Its exact sum is \( \zeta(3/2) \approx 2.612 \). Unlike the Basel problem, there is no known closed-form expression for this value.

Example 3: \( \sum \frac{1}{\sqrt{n}} \)

This is the p-series with \( p = 1/2 \). Since \( 1/2 < 1 \), it diverges. Even though \( \frac{1}{\sqrt{n}} \to 0 \), the terms decrease too slowly for the sum to be finite.

Example 4: \( \sum \frac{1}{n^{1.001}} \)

Here \( p = 1.001 \), which is just barely above 1. This series converges, but extremely slowly. The sum is approximately \( \zeta(1.001) \approx 1000.6 \). This example shows how the boundary at \( p = 1 \) is razor-sharp.

P-Series vs. Geometric Series: Key Differences

Students often confuse p-series with geometric series. Here is a clear comparison:

FeatureP-SeriesGeometric Series
Form\( \sum \frac{1}{n^p} \)\( \sum ar^n \)
What changesThe base \( n \) changesThe exponent \( n \) changes
Convergence condition\( p > 1 \)\( |r| < 1 \)
Closed-form sumOnly for special \( p \) valuesAlways: \( \frac{a}{1-r} \)
Rate of convergencePolynomial decayExponential decay

The geometric series converges much faster because its terms decay exponentially, while p-series terms decay only polynomially. This is why geometric series always have a neat closed-form sum, while p-series sums involve the Riemann zeta function.

Using the P-Series Test with Other Convergence Tests

The p-series test becomes even more powerful when combined with the comparison test. Here is the strategy:

Direct Comparison

If \( 0 \leq a_n \leq \frac{1}{n^p} \) for all \( n \) and \( p > 1 \), then \( \sum a_n \) converges.

If \( a_n \geq \frac{1}{n^p} \) for all \( n \) and \( p \leq 1 \), then \( \sum a_n \) diverges.

Example: Does \( \sum \frac{1}{n^2 + 5} \) converge?

Since \( \frac{1}{n^2 + 5} < \frac{1}{n^2} \) and \( \sum \frac{1}{n^2} \) converges (p-series with \( p = 2 \)), the original series converges by comparison.

Limit Comparison

If \( \lim_{n \to \infty} \frac{a_n}{1/n^p} = L \) where \( 0 < L < \infty \), then \( \sum a_n \) and \( \sum \frac{1}{n^p} \) either both converge or both diverge.

Example: Does \( \sum \frac{3n + 1}{n^3 – 2n} \) converge?

For large \( n \), this behaves like \( \frac{3n}{n^3} = \frac{3}{n^2} \). The limit comparison with \( \sum \frac{1}{n^2} \) gives \( L = 3 \), which is finite and positive. Since \( \sum \frac{1}{n^2} \) converges, so does our series.

For finding the radius and interval of convergence of power series, where p-series often appear during endpoint testing, use the interval of convergence calculator. For more advanced series analysis, these math solvers handle symbolic computation.

The Riemann Zeta Function: Where P-Series Leads

When the p-series converges (\( p > 1 \)), its sum defines the Riemann zeta function \( \zeta(p) \). Some remarkable values:

\( p \)\( \zeta(p) \)Notes
2\( \frac{\pi^2}{6} \approx 1.6449 \)Basel problem (Euler, 1735)
3\( \approx 1.2021 \)Apery’s constant, proven irrational in 1978
4\( \frac{\pi^4}{90} \approx 1.0823 \)Euler computed this too
6\( \frac{\pi^6}{945} \approx 1.0173 \)All even values involve \( \pi \)

Euler proved that \( \zeta(2k) \) has a closed form involving \( \pi^{2k} \) and Bernoulli numbers for every positive integer \( k \). The odd values \( \zeta(3), \zeta(5), \zeta(7), \ldots \) remain mysterious: we know \( \zeta(3) \) is irrational (proven by Roger Apery in 1978), but we still do not have closed-form expressions for any of them.

Key Points to Remember

  • The boundary is at \( p = 1 \). Converges for \( p > 1 \), diverges for \( p \leq 1 \). No exceptions.
  • The harmonic series (\( p = 1 \)) diverges. This is the most common exam mistake: students assume that terms going to zero is sufficient for convergence. It is necessary but not sufficient.
  • P-series are comparison benchmarks. Most convergence problems involve comparing your series to a known p-series.
  • The integral test proves it. If you need to justify the p-series test on an exam, use the integral \( \int_1^{\infty} x^{-p} \, dx \).
  • Riemann zeta function is the sum. When the series converges, \( \zeta(p) = \sum 1/n^p \) gives the exact value.

Useful calculus books and tools

For a p-series, learn the threshold at p = 1 and distinguish the series from a finite numerical sum. Calculus answers are easier to trust when you can connect the symbolic work to a graph, an estimate, and the theorem behind the method.

COURSE STANDARD

Calculus: Early Transcendentals by James Stewart

  • The infinite series chapters cover the p-series, the integral test, and the comparison tests with worked examples
  • Thousands of graded exercises, with answers to odd-numbered problems for self-checking
  • The default assigned text in US calculus sequences, so section numbering lines up with most courses
  • Formal and heavy; better as a course companion and reference than a first casual read
INTUITION FIRST

Calculus: An Intuitive and Physical Approach by Morris Kline

  • Teaches through physical meaning first and formal proof second, the right order when a theorem feels arbitrary
  • Inexpensive Dover paperback that has stayed in print since 1967
  • The best second angle when a standard textbook explanation stalls
  • Stops short of a full modern syllabus, so pair it with a course text rather than replacing one

Need more options? See the full list of the best calculus books.

Frequently Asked Questions

What is the p-series test and how does it work?

The p-series test determines whether the series sum of 1/n^p converges or diverges based solely on the exponent p. If p is greater than 1, the series converges to a finite value given by the Riemann zeta function. If p is less than or equal to 1, the series diverges to infinity. The proof relies on the integral test applied to f(x) = x^(-p).

Why does the harmonic series diverge even though its terms approach zero?

The terms 1/n approach zero, but they decrease too slowly for the partial sums to remain bounded. You can prove divergence by grouping terms: 1/3 + 1/4 > 1/2, and 1/5 + 1/6 + 1/7 + 1/8 > 1/2, and so on. Each group exceeds 1/2, so the sum grows without bound. Terms approaching zero is necessary but not sufficient for convergence.

How is the p-series related to the Riemann zeta function?

The Riemann zeta function is defined as zeta(s) = sum of 1/n^s for s > 1, which is exactly the p-series sum. Euler computed zeta(2) = pi^2/6 and found closed forms for all even integer arguments. The zeta function extends to complex numbers via analytic continuation and is central to the unsolved Riemann Hypothesis about the distribution of prime numbers.

What is the difference between a p-series and a geometric series?

A p-series sum of 1/n^p has a variable base raised to a fixed power, while a geometric series sum of r^n has a fixed base raised to a variable power. Geometric series decay exponentially and always have closed-form sums, while p-series decay polynomially and their sums involve the zeta function. The convergence criteria differ: p > 1 for p-series versus |r| < 1 for geometric.

Can I use the p-series test on series that are not exactly in the form 1/n^p?

Not directly, but you can use the comparison test or limit comparison test to relate your series to a known p-series. If your series behaves like 1/n^p for large n, the limit comparison test confirms they share the same convergence behavior. This strategy works for series like sum of 1/(n^2+3n), which behaves like 1/n^2 and therefore converges.

What does the calculator show when the series diverges?

It names the reason. For p at or below 0 the terms do not approach 0, so the series fails the divergence test immediately. For p between 0 and 1, and for the harmonic case p = 1, the terms do shrink but too slowly, which the integral test makes precise. In every divergent case the plot shows the partial sums climbing without leveling off.

Every convergence chapter circles back to this one comparison: p against 1. Learn the boundary, remember that the harmonic series sits exactly on it, and the p-series stops being one more test to memorize. It becomes the ruler you measure every other series against.

Disclaimer: This site is reader-supported. If you buy through some links, I may earn a small commission at no extra cost to you. I only recommend tools I trust and would use myself. Your support helps keep gauravtiwari.org free and focused on real-world advice. Thanks. - Gaurav Tiwari

More Calculators