Use this free power series calculator for 1/(1−x) and 1/(1+x): partial sums, exact infinite sum and truncation error, with the geometric series explained step by step.
Power Series Representation Calculator
The geometric power series, evaluated honestly: partial sum, exact sum and truncation error for 1/(1 − x) and 1/(1 + x).
Enter your values
Fill in the fields below — the result appears with every step shown.
Your result will appear here
Enter your values above, then press Calculate — or press Enter in any field.TinyExe · Power Series Representation Result
Calculated locally in your browser
—
Name
—
Function
—
x
—
Number of terms N
—
How this was calculated
What to do next
TinyExe PDF & PNG exports carry the TinyExe logo and tinyexe.com header & footer.
Runs 100% in your browser — your numbers never leave this tab; nothing is uploaded or stored.
The short answer
The power series representation of one over one minus x is the geometric series one plus x plus x squared plus x cubed and so on, valid for absolute x below one. At x equals 0.5 the infinite sum is exactly 2, and the first ten terms already give 1.998047, within two thousandths of the exact value.
- 1/(1 − x) = Σ xⁿ for |x| < 1
- 1/(1 + x) = Σ (−x)ⁿ for |x| < 1
- Partial sum S_N = (1 − r^N)/(1 − r); error shrinks like |x|^N
Standard power series (for |x| < 1 unless noted)
Reference values for this calculator.
| Function | Series | Interval |
|---|---|---|
| 1/(1 − x) | Σ xⁿ | (−1, 1) |
| 1/(1 + x) | Σ (−1)ⁿxⁿ | (−1, 1) |
| e^x | Σ xⁿ/n! | all x |
| ln(1 + x) | Σ (−1)ⁿ⁺¹xⁿ/n | (−1, 1] |
| 1/(1 − x)² | Σ (n+1)xⁿ | (−1, 1) |
The formula
The exact formula this calculator uses — every variable in it is explained in the card below.
The formula
Scoped honestly to the geometric family — the power-series representation every calculus course starts from. Enhancement: it reports the exact infinite sum and the truncation error after N terms, turning a "representation" into a convergence check.
Worked examples
Worked examples with the full working shown — try them in the calculator to check.
Example 1
Ten terms at x = 0.5
1/(1 − x), x = 0.5, N = 10
| Calculation | Steps |
|---|---|
| Terms: 1 + 0.5 + 0.25 + 0.125 + 0.0625 + … (10 terms). Sum = (1 − 0.5^10)/(1 − 0.5) = (1 − 0.000977)/0.5 = 1.998047. Exact = 1/(1 − 0.5) = 2. | S₁₀ = 1.998047, error ≈ 0.001953 from the exact 2. |
Result
Example 2
Alternating series, five terms
1/(1 + x), x = 0.5, N = 5
| Calculation | Steps |
|---|---|
| Ratio −0.5. Terms: 1 − 0.5 + 0.25 − 0.125 + 0.0625 = 0.6875. Exact = 1/1.5 = 0.666667. | S₅ = 0.6875, overshooting the exact 0.666667 by about 0.0208 — alternating series alternate around the limit. |
Result
Example 3
Negative x in 1/(1 − x)
1/(1 − x), x = −0.5, N = 4
| Calculation | Steps |
|---|---|
| Terms: 1 + (−0.5) + 0.25 + (−0.125) = 0.625. Exact = 1/(1 + 0.5) = 0.666667. | S₄ = 0.625, closing on 0.666667 from below. |
Result
How to use this calculator
Step 1
Choose 1/(1 − x) or 1/(1 + x).
Step 2
Enter x — its absolute value must be below 1.
Step 3
Enter how many terms N the partial sum should use.
Step 4
Read S_N as the headline result.
Step 5
Compare with the exact sum and truncation error in the details to judge whether N is enough.
Frequently asked questions
What does "power series representation" mean?
It means rewriting a function as an infinite sum of powers of x: f(x) = Σ aₙxⁿ. For 1/(1 − x) every coefficient aₙ is 1, giving 1 + x + x² + x³ + …, valid whenever |x| < 1.
Why does the series fail at x = 1 or beyond?
At x = 1 the terms are all 1 and the sum grows without bound; beyond 1 the terms themselves grow. The representation equals the function only inside the interval of convergence, |x| < 1 — outside it, the partial sums are meaningless.
How many terms do I need for a good approximation?
It depends on |x|: the error after N terms is about |x|^N/(1 − |x|). At x = 0.5, 10 terms already give an error under 0.002; at x = 0.9 you need roughly 44 terms just to get below 0.1. The error readout in this calculator tells you directly.
How do I get series for other functions from this one?
By substitution and calculus: replace x with x² or −3x for new functions, differentiate 1/(1 − x) term by term to get 1/(1 − x)² = Σ (n+1)xⁿ, or integrate to reach ln(1 + x). Those derived series are listed in the reference table; this calculator evaluates the two base geometric forms.
What is the partial-sum formula?
For ratio r, S_N = (1 − r^N)/(1 − r). The calculator builds the sum term by term (identical arithmetic) and also uses the closed form implicitly in its error check against the exact value 1/(1 − r).
About this calculator
This calculator evaluates the geometric power series — the representation of 1/(1 − x) as 1 + x + x² + x³ + … and of 1/(1 + x) as 1 − x + x² − x³ + … It returns the partial sum after N terms, the exact infinite sum, and the truncation error, so you can see both the representation and how fast it converges.
A power series represents a function as an infinite polynomial. The geometric case is the foundation: because (1 − x)(1 + x + x² + … + x^N) = 1 − x^(N+1), letting N grow gives 1/(1 − x) = Σ xⁿ exactly when x^(N+1) vanishes in the limit — which happens precisely when |x| < 1.
Every other standard representation is built from this one. Substituting −x gives 1/(1 + x); substituting x² gives 1/(1 − x²); differentiating term by term gives 1/(1 − x)² = Σ (n+1)xⁿ; integrating gives −ln(1 − x) = Σ xⁿ/n. Mastering the geometric series is therefore most of the topic.
The practical question is always truncation: a calculator can only add finitely many terms. The leftover error after N terms behaves like |x|^N ÷ (1 − |x|), which collapses quickly for small |x| but painfully slowly near x = 0.99. Showing the exact sum beside S_N makes that trade-off visible instead of theoretical.
Use it in calculus coursework when a problem asks for a power series representation or a partial sum, to check how many terms an approximation needs, or to demonstrate convergence and divergence concretely by pushing x toward 1 and watching the error refuse to shrink.
How to calculate it yourself
Step 1
Identify the ratio r: x for 1/(1 − x), −x for 1/(1 + x).
Step 2
Check |x| < 1; otherwise stop — the series diverges.
Step 3
Write the terms: 1, r, r², r³, … each the previous term times r.
Step 4
Add the first N terms for the partial sum S_N.
Step 5
Compare with the exact sum 1/(1 − r); the difference is the truncation error.
Real-life examples
How many terms for six decimal places?
A student needs 1/(1 − 0.25) to six decimal places for a numerical-methods exercise and must justify the number of terms used.
Exact = 1/0.75 = 1.333333. Error after N terms ≈ 0.25^N/0.75. N = 10: 0.25^10 ≈ 9.54×10⁻⁷, ÷0.75 ≈ 1.27×10⁻⁶ — not quite. N = 11: ≈3.2×10⁻⁷ — enough. The calculator's error readout confirms S₁₁ matches to six places.
11 terms suffice at x = 0.25; at x = 0.9 the same accuracy would need over 130 terms — the contrast is the lesson.
Present value as a geometric series
A finance student notices that the present value of $100 received every year forever at 5% interest is a geometric series and checks it here in disguise.
PV = 100 × (1/1.05 + 1/1.05² + …) = 100 × Σ rⁿ with r = 1/1.05 ≈ 0.952 (from n = 1). The infinite sum Σ_{n≥0} rⁿ = 1/(1 − r) = 21, so PV ≈ 100 × (21 − 1) = $2,000 — matching the perpetuity formula 100 ÷ 0.05.
The geometric-series machinery reproduces the $2,000 perpetuity value exactly.
Ideas & use cases
- Push x to 0.99 and raise N slowly to feel why "converges" can still mean "useless in practice" near the boundary.
- Run the plus and minus forms at the same |x| and compare how the partial sums approach the limit — alternately bracketing versus creeping from one side.
- Differentiate mentally: use the reference table's 1/(1 − x)² row and this tool's ratio idea to predict its partial sums before checking by hand.
Limitations & sources
- Covers the geometric family 1/(1 − x) and 1/(1 + x) only — the base representations from which many others are derived by substitution, differentiation and integration. It does not build Taylor series for arbitrary functions, and it refuses |x| ≥ 1 because the series diverges there.
Sources: Standard calculus treatment: Stewart, Calculus, §11.9-11.10 (representations of functions as power series); geometric series sum formula
