# How to calculate the value of the limit of a sum: $\lim_{n\rightarrow\infty}\sum_{k=0}^{n}\frac{k}{k^{2}+n^{2}}$? [duplicate]

Need to calculate the value of the following limit $$\lim_{n\rightarrow\infty}\sum_{k=0}^{n}\frac{k}{k^{2}+n^{2}}$$ I don't know how. In general would know how to make that kind of limits with summations, where can I find examples and learn the topic, I appreciate any hint to make this limit.

## marked as duplicate by YuiTo Cheng, max_zorn, José Carlos Santos limits StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Jun 28 at 21:00

$$\lim_{n\rightarrow\infty}\sum_{k=0}^{n}\frac{k}{k^{2}+n^{2}}=\lim_{n\rightarrow\infty}\frac1n\sum_{k=0}^{n}\frac{\frac kn}{\left(\frac kn\right)^{2}+1}=\int_0^1\frac{x}{x^2+1}dx\\=\frac12\ln(x^2+1)\Bigg|_0^1=\frac{\ln2}{2}$$