I'm a bit confused by the definition of the Riemann intergral and I think I don't quite get it yet. In class we definet the Riemann integral as followed:
Let $f:[a,b]\rightarrow \mathbb R$ be a bounded function. Consider a partition $P = \{x_1,...,x_n\}$ of the interval $[a,b]$. We define $$m_i:=\inf\{f(x)\mid x \in (x_{i-1},x_{i})\}\quad\text{ and }\quad M_i:=\sup\{f(x)\mid x \in (x_{i-1},x_{i})\}$$ for $i \in \{1,...,n\}$. Then $$s(f,P):=\sum_{i=1}^{n}m_i(x_i-x_{i-1})$$ is called the lower sum of $f$ with respect to $P$ and accordingly $$S(f,P):=\sum_{i=1}^{n}M_i(x_i-x_{i-1})$$ is called the upper sum of $f$ with respect to $P$. The function $f$ is called Riemann integrable if $$\sup\{s(f,P)\mid P \ \mathrm{partition}\ \mathrm{of}\ [a,b]\} = \inf\{S(f,P)\mid P \ \mathrm{partition}\ \mathrm{of}\ [a,b]\}$$ and the value of the infimum/supremum is called the integral of $f$ over $[a,b]$.
From what I understand that is the Darboux definition of the integral. We went straight to proving the Riemann criterion of integrability and that every continuous/monotonic function is Riemann integrable.
However, on the internet I found the concept of a Riemann sum where one cuts $[a,b]$ into partitions of length $\frac {b-a}{n}$ lets $n\rightarrow \infty$. For example $$\int_a^b x^2 \ dx =\sum_{i=1}^{\infty} \frac {b-a}{n}\left(\frac {b-a}{n}i+a\right)^2 $$
Question:
Why, in this case, can I just consider an arbitrary partition of $[a,b]$? Are there functions which can't be integrated using "uniform" partitions?
I guess my confusion comes from the different definitions of the integral (Darboux vs Riemann). Could somebody explain how these two notions are related?
You are right . But a particular partition is chosen only in those cases where we know that the function is integrable. when we know that the function is integrable the choice of partition is immaterial. In those cases our focus is upon the value of the integral thats why we choose a partition of our convinience ..