Let $\gamma=\lim_{n\to\infty} F(n)$ where $$F(n)=1+\frac{1}{2}+\frac{1}{3}+\cdots\frac{1}{n}-\ln(n)$$ (This is Euler's constant.) How can I calculate $\gamma$ with $10$ digits of precision using the Euler-Maclaurin Formula?
2026-02-22 21:51:46.1771797106
Using the Euler-Maclaurin formula to approximate Euler's constant, $\gamma := \lim_{n\to\infty}\left(-\ln n+\sum_{k=0}^n\frac1n\right)$
942 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in NUMERICAL-METHODS
- The Runge-Kutta method for a system of equations
- How to solve the exponential equation $e^{a+bx}+e^{c+dx}=1$?
- Is the calculated solution, if it exists, unique?
- Modified conjugate gradient method to minimise quadratic functional restricted to positive solutions
- Minimum of the 2-norm
- Is method of exhaustion the same as numerical integration?
- Prove that Newton's Method is invariant under invertible linear transformations
- Initial Value Problem into Euler and Runge-Kutta scheme
- What are the possible ways to write an equation in $x=\phi(x)$ form for Iteration method?
- Numerical solution for a two dimensional third order nonlinear differential equation
Related Questions in HARMONIC-NUMBERS
- A Gift Problem for the Year 2018
- Hypergeometric series with harmonic factor
- Infinite series with harmonic numbers related to elliptic integrals
- A non obvious example of a sequence $a(k)\cdot H_{b(k)}$ whose general term is integer many times, where $H_n$ denotes the $n$th harmonic number
- On integer sequences of the form $\sum_{n=1}^N (a(n))^2H_n^2,$ where $H_n$ is the $n$th harmonic number: refute my conjecture and add yourself example
- Simple formula for $H_n = m + \alpha $?
- Limit of the difference between two harmonic numbers
- Justify an approximation of $-\sum_{n=2}^\infty H_n\left(\frac{1}{\zeta(n)}-1\right)$, where $H_n$ denotes the $n$th harmonic number
- Show that for $n\gt 2$, $\frac{\sigma_1(n)}{n}\lt H_n$
- Calculating the summation $\sum_{n=1}^{\infty}\frac{H_{n+1}}{n(n+1)}$
Related Questions in EULER-MASCHERONI-CONSTANT
- Solving Equation with Euler's Number
- Why is $\int_{0}^{t} e^{nt} \mathrm{\ dt} = \frac{1}{n} \left(e^{nt} - 1\right)$? [solved; notation is also faulty in the first place]
- Derivation of $\lim_{s\to1}\zeta(s)-\log\prod_{n=1}^\infty(1+n^{-s})=\gamma$
- Evaluate $\int_{0}^1\ln(\ln(\frac{1}{x})) dx$
- Deriving and defining $e^x$, $\log_b(x)$, $\ln(x)$, and their derivatives?
- Deriving the power series for $e$ simply?
- Calculating a limit with trigonometric and quadratic function
- Raising a logarithmic function by e
- What is the series representation of $\frac{1}{\gamma}$?
- Divergence of $\sum_{n=1}^\infty\frac{\mu(n)}{\sqrt{n}}\cos\left(n^2 \pi \gamma\right)$, where $\gamma$ is the Euler-Mascheroni constant
Related Questions in EULER-MACLAURIN
- How to find value of arctan using Maclaurin
- 6th Degree Polynomial and Chebyshev minmax
- How to integrate the "fractional part"/sawtooth function?
- the remainder of Maclaurin Series
- Bounds for Periodic Bernoulli Polynomials via Fourier Series
- Numerical integration of sharply peaking function: $\int_0^{1000} \exp(1000\sin(x)/x)\,{\rm d}x $
- Using the Euler-Maclaurin formula to approximate Euler's constant, $\gamma := \lim_{n\to\infty}\left(-\ln n+\sum_{k=0}^n\frac1n\right)$
- Are the partial sums for $\sum_{n=1}^{\infty}\sin(n^a)$ bounded for $a\geq1$ and unbounded for $0<a<1$?
- Integral involving the fractional part function
- Taylor series of functions
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
The Euler-Maclaurin Formula says $$ \scriptsize\sum_{k=1}^n\frac1k=\log(n)+\gamma+\frac1{2n}-\frac1{12n^2}+\frac1{120n^4}-\frac1{252n^6}+\frac1{240n^8}-\frac1{132n^{10}}+R_{12}(n)\tag1 $$ where $R_{12}(n)\ge0$ and $|R_{12}(n)|\le\frac{691}{8192\,n^{12}}$.
Using $n=11$, we get $$ 0.57721566490151\le\gamma\le0.57721566490154 $$ Thus, to $13$ places we get $$ \gamma=0.5772156649015 $$
The Euler-Maclaurin Formula
A question was raised in comments regarding the Euler-Maclaurin Formula and where $\gamma$ comes from. $$ \begin{align} \sum_{k=1}^n\frac1k &=\int_{1^-}^{n^+}\frac1x\,\mathrm{d}\lfloor x\rfloor\\ &=\int_{1^-}^{n^+}\frac1x\,\mathrm{d}x-\int_{1^-}^{n^+}\frac1x\,\mathrm{d}\left(\{x\}-\tfrac12\right)\tag{2a}\\ &=\log(n)+\frac1{2n}+\frac12-\int_1^n\frac{\{x\}-\tfrac12}{x^2}\,\mathrm{d}x\tag{2b}\\ &=\log(n)+\frac1{2n}+\color{#C00}{\frac12-\int_1^\infty\frac{\{x\}-\tfrac12}{x^2}\,\mathrm{d}x}+\int_n^\infty\frac{\{x\}-\tfrac12}{x^2}\,\mathrm{d}x\tag{2c}\\ &=\log(n)+\color{#C00}{\gamma}+\frac1{2n}-\frac1{12n^2}+2\int_n^\infty\frac{\tfrac12\{x\}^2-\tfrac12\{x\}+\tfrac1{12}}{x^3}\,\mathrm{d}x\tag{2d}\\ &=\log(n)+\gamma+\frac1{2n}-\frac1{12n^2}+6\int_n^\infty\frac{\tfrac16\{x\}^3-\tfrac14\{x\}^2+\tfrac1{12}\{x\}}{x^4}\,\mathrm{d}x\tag{2e}\\ &=\log(n)+\gamma+\frac1{2n}-\frac1{12n^2}+\frac1{120n^4}\\[3pt] &\,+24\int_n^\infty\frac{\tfrac1{24}\{x\}^4-\tfrac1{12}\{x\}^3+\tfrac1{24}\{x\}^2-\tfrac1{720}}{x^5}\,\mathrm{d}x\tag{2f}\\ &\,\ \vdots\\ &=\log(n)+\gamma+\frac1{2n}-\frac1{12n^2}+\frac1{120n^4}-\frac1{252n^6}+\frac1{240n^8}-\frac1{132n^{10}}\\[3pt] &\,+\scriptsize11!\int_n^\infty\frac{6\{x\}^{11}-33\{x\}^{10}+55\{x\}^9-66\{x\}^7+66\{x\}^5-33\{x\}^3+5\{x\}}{239500800\,x^{12}}\,\mathrm{d}x\tag{2g} \end{align} $$ Explanation:
$\text{(2a)}$: $\lfloor x\rfloor=x-\{x\}$
$\text{(2b)}$: evaluate the first integral and integrate the second by parts
$\text{(2c)}$: $\int_1^n=\int_1^\infty-\int_n^\infty$
$\text{(2d)}$: define $\gamma=\frac12-\int_1^\infty\frac{\{x\}-\tfrac12}{x^2}\,\mathrm{d}x$
$\phantom{\text{(2d):}}$ integrate the unbounded integral by parts
$\text{(2e)}$: integrate by parts
$\text{(2f)}$: integrate by parts
$\text{(2g)}$: integrate by parts until we get the formula above
By integrating the tail integrals by parts, we eliminate all of the constant terms. All of the constants are accumulated in $\gamma$.
The Remainder
If we denote the degree $k$ polynomial of $\{x\}$ in the remainder integrals above as $p_k(\{x\})$, then the integration by parts gives $p_k=p_{k+1}'$ and we require $\int_0^1p_k(x)\,\mathrm{d}x=0$ so that $p_k(\{x\})$ is continuous for $k\gt1$. Since $p_1(x)=x-\frac12$, it can be shown by induction that $p_{2k-1}\!\left(x+\frac12\right)$ is odd and $p_{2k-1}\in P^-$ when $k$ is odd and $p_{2k-1}\in P^+$ when $k$ is even, where $$ P^{\pm}=\left\{p:\pm\left(\tfrac12-x\right)p(x)\ge0\text{ for }x\in[0,1]\right\}\tag3 $$ Thus, $\frac1{(2k-1)!}$ times the remainder is $$ \begin{align} \sum_{j=n}^\infty\int_0^1\frac{p_{2k-1}(t)}{(j+t)^{2k}}\,\mathrm{d}t &=\sum_{j=n}^\infty\int_0^1\overbrace{\ p_{2k-1}(t)\ \vphantom{\left(\frac1{j^2}\right)}}^{\substack{\in P^+\text{ if $k$ even}\\\in P^-\text{ if $k$ odd}}}\overbrace{\left(\frac1{(j+t)^{2k}}-\frac1{(j+1/2)^{2k}}\right)}^{\in P^+}\,\mathrm{d}t\tag{4a}\\ &\,\,\left\{\begin{array}{}\ge0\text{ if $k$ even}\\\le0\text{ if $k$ odd}\end{array}\right.\tag{4b} \end{align} $$ Furthermore, $$ \begin{align} \left|\sum_{j=n}^\infty\int_0^1\frac{p_{2k-1}(t)}{(j+t)^{2k}}\,\mathrm{d}t\right| &=\left|\sum_{j=n}^\infty\int_0^1p_{2k-1}(t)\left(\frac1{(j+t)^{2k}}-\frac1{(j+1)^{2k}}\right)\,\mathrm{d}t\right|\tag{5a}\\ &\le\sum_{j=n}^\infty\int_0^1|p_{2k-1}(t)|\left(\frac1{j^{2k}}-\frac1{(j+1)^{2k}}\right)\mathrm{d}t\tag{5b}\\ &=\frac1{n^{2k}}\int_0^1|p_{2k-1}(t)|\mathrm{d}t\tag{5c} \end{align} $$
Summary
The error is positive when $k$ is even and negative when $k$ is odd. This explains why the asymptotic expansion alternates.
Furthermore, the absolute value of the error is at most $$ \frac{(2k-1)!}{n^{2k}}\int_0^1|p_{2k-1}(t)|\,\mathrm{d}t\tag6 $$ Thus, the error term in $\text{(2g)}$ is positive ($k=6$) and at most $\frac{691}{8192\,n^{12}}$.