# What are examples of functions that cannot be integrated?

Some functions, such as $\sin \left({x}^{2}\right)$, have antiderivatives that don't have simple formulas involving a finite number of functions you are used to from precalculus (they do have antiderivatives, just no simple formulas for them). Their antiderivatives are not "elementary".
Other functions, such as a function $f \left(x\right)$ that equals 1 when $x$ is rational and 0 when $x$ is irrational are not "Riemann integrable" over any closed interval $\left[a , b\right]$. The problem lies in the fact that, for a given partition of the interval, you can always pick sample points that are either all irrational or all rational, which will lead to sums that don't converge to the same answer as the subintervals all get smaller.