Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Let $$f(x)=\frac{e^{2x-1}}{1+e^{2x-1}}$$ Then find $$\sum_{k=1}^{1233}f\left(\frac{k}{1234}\right)$$

How I proceed: $$\sum_{k=1}^{1233}f\left(\frac{k}{1234}\right)=\int_{1}^{1233}\frac{e^{\frac{2x}{1234}-1}}{1+e^{\frac{2x}{1234}-1}}~dx$$ then how I solve this integral. please help.

share|improve this question
Why should the sum be equal to the integral –  Amr Dec 22 '12 at 11:43
Amr is spot on. You are looking at this in a wrong way. –  Nameless Dec 22 '12 at 11:45
Then how I proceed? –  Argha Dec 22 '12 at 11:46
add comment

3 Answers

up vote 4 down vote accepted

Note that:

\begin{align} f(k/1234)+f((1234-k)/1234)=& \frac{e^{\frac{k}{617}-1}}{e^{\frac{k}{617}-1}+1}+\frac{e^{\frac{1234-k}{617}-1}}{e^{\frac{1234-k}{617}-1}+1}&=&\\ =&\frac{e^{k/617}}{e^{k/617}+e}+\frac{e}{e^{k/617}+e}&=&1 \end{align}

So your sum is equal to $616+f(1/2)$.

share|improve this answer
This is nice +1 –  Amr Dec 22 '12 at 12:06
Really it is good.Thank you. –  Argha Dec 22 '12 at 12:10
Thanks to Mathematica for simplifying the terms, I wouldn't have voluntarily done this. –  akkkk Dec 22 '12 at 12:11
add comment

Observe that $f(x)+f(1-x)=1$

Put $x=\frac k{1234}\implies f\left(\frac k{1234}\right)+ f\left(\frac {1234-k}{1234}\right)=1$

Then put $k=1,2,,\cdots ,\frac{1234}2=617$

so $ f\left(\frac 1{1234}\right)+ f\left(\frac {1234-1}{1234}\right)=1,$

$ f\left(\frac 2{1234}\right)+ f\left(\frac {1234-2}{1234}\right)=1,$


$ f\left(\frac {617}{1234}\right)+ f\left(\frac {1234-617}{1234}\right)=1\implies f\left(\frac 12\right)=\frac12$

Adding we get, $\sum_{k=1}^{1233}f\left(\frac{k}{1234}\right)=617(1)-f\left(\frac {617}{1234}\right)=617-\frac12$

share|improve this answer
Thank you for giving me complete answer. –  Argha Dec 22 '12 at 12:12
@Argha, thanks for putting up a nice problem. –  lab bhattacharjee Dec 22 '12 at 12:14
I got this problem and stuck. So I put it. But thank you for the comment. –  Argha Dec 22 '12 at 12:19
@Argha, welcome. –  lab bhattacharjee Dec 22 '12 at 12:19
I like how you can solve for $f(1/2)$. –  akkkk Dec 22 '12 at 12:49
add comment

I don't know if a closed form for your sum exists. However, we note that:


Thus, for large values of $N$ you can estimate the sum using the integral.

To evaluate the integral, we note that $\frac{d}{dx}[e^{2x-1}+1]=2e^{2x-1}$, thus: $$\int_0^1\frac{e^{2x-1}}{e^{2x-1}+1}dx=\frac{1}{2}\int_0^1\frac{2e^{2x-1}}{e^{2x-1}+1}dx=[\frac{1}{2}\log(1+e^{2x-1})]_{x=0}^{x=1}$$

share|improve this answer
Yes I will add it –  Amr Dec 22 '12 at 11:57
The value of the integral ? –  Amr Dec 22 '12 at 12:00
@Argha See akkkk's answer,way better than mine –  Amr Dec 22 '12 at 12:07
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.