1
$\begingroup$

Let function $f$ be defined, such that $f(x)=1$ for irrational $x$ and $f(x)=2$ for rational $x$. Compute $\int_0^1 f(x)\,dx$.

How would I even???? Would it just be $1$ because there are infinitely many irrational numbers between each rational number or ?????????

I don't even know where to start with this.

$\endgroup$
  • 2
    $\begingroup$ Exactly what is your definition of a definite integral like $\int_a^bg(x)dx$? The answer to your problem will depend heavily on this. $\endgroup$ – Arthur Mar 26 '17 at 20:37
  • $\begingroup$ @Arthur What is your definition of it? How would you integrate it using yours... I don't have any clue, I guess for me it would be the area under the curve, but clearly that doesn't make sense $\endgroup$ – Saketh Malyala Mar 26 '17 at 20:45
  • 1
    $\begingroup$ It's usually some form of limit, and the word "partition" probably appears. Maybe even two simultaneous limits which should be equal. Does this ring any bells? Doesn't your book tell you? To be more specific, even whether your integral has a value or is undecidable depends on what definition you're using. $\endgroup$ – Arthur Mar 26 '17 at 20:48
3
$\begingroup$

Riemann integral: $\int_0^1 f(x) dx$ is undefined, because the refinement of the partition of the interval does not result in a converging Riemann sum.

Lebesgue integral: $f\equiv 1$ almost everywhere, because the rational numbers are a countable set, which means that they are a set of measure zero and do not have any impact on the result. Therefore, $\int_0^1 f(x) dx = 1$

$\endgroup$
0
$\begingroup$

It could depend on exactly how you are defining integration. Have you heard the phrase "almost everywhere"? It means that the exceptions are a set of measure zero. In the reals, any finite or countable set has measure zero. So, your function is equal to 1 almost everywhere. Even some uncountable set have measure zero; not all, of course.

Almost everywhere at Wikipedia

Almost everywhere at Wolfram MathWorld

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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