# Can a function be square integrable without being integrable?

Reading Tolstov's 'Fourier Series', which states that $f(x)$ is square integrable if both $f$ and its square both have finite integrals over some interval. I haven't seen this restriction on $f$ before, which makes me wonder - can squaring a function ever turn a diverging integral into a converging one?

As long as the measure space is of infinite measure, this ca happen: Consider $\frac{1}{x}$ on $(1,\infty)$.
• So requiring $f(x)$ to be integrable is actually redundant when talking about square integrability over a finite interval? – Benjamin Lindqvist Jun 7 '14 at 18:36
• But note that you still have to require $f$ to be measurable (if we are talking about Lebesgue integrals), consider e.g. $f = \chi_V - \chi_{V^c}$ on a finite measure space with $V$ not measurable. Then $f^2 \equiv 1$ is measurable although $f$ is not. You can do the same (even simpler) with $f = \chi_{\Bbb{Q} \cap I} - \chi_{I \setminus \Bbb{Q}}$ in the case of the Riemann integral. – PhoemueX Jun 7 '14 at 19:09
The same way the square of $\frac{1}{n}$ converges, but itself does not converge.
So for functions $\frac{1}{x}$ is an example over $[1,\infty)$.
{"ft_lang_label":"__label__en","ft_lang_prob":0.8276705,"math_prob":0.9997396,"size":1607,"snap":"2020-45-2020-50","text_gpt3_token_len":454,"char_repetition_ratio":0.12850904,"word_repetition_ratio":0.031128405,"special_character_ratio":0.2856254,"punctuation_ratio":0.09364548,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9994979,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-01T21:44:04Z\",\"WARC-Record-ID\":\"<urn:uuid:1badf3a5-a866-49a9-87c7-505bcaa2a2ab>\",\"Content-Length\":\"157549\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:248034eb-ef6b-41af-ae6c-7823fbd2258f>\",\"WARC-Concurrent-To\":\"<urn:uuid:075bd3db-3817-43b5-88f1-bac4312c4c2c>\",\"WARC-IP-Address\":\"151.101.65.69\",\"WARC-Target-URI\":\"https://math.stackexchange.com/questions/824196/can-a-function-be-square-integrable-without-being-integrable\",\"WARC-Payload-Digest\":\"sha1:H33Z5Z4NVHDCP2PN5FWMXUZVW3BLVXET\",\"WARC-Block-Digest\":\"sha1:DT2FSC3KLAVJAPQMZH3R5Y55QW4LNAB2\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141681524.75_warc_CC-MAIN-20201201200611-20201201230611-00208.warc.gz\"}"}