I was wondering about how Fourier series behaves in the setting of Henstock-Kurzweil integration. For example, the non-Lebesgue-integrable function $f(x) = \dfrac{1}{x}\mathrm{e}^{\mathrm{i}/x}$ can have a Fourier expansion since the Henstock-Kurzweil integrals $$(HK)\int^{\delta}_{0} \dfrac{1}{x}\mathrm{e}^{\mathrm{i}/x} {\rm d}x = (HK)\mathrm{i}\int^{\delta}_{0} ((x\mathrm{e}^{\mathrm{i}/x})' - \mathrm{e}^{\mathrm{i}/x}) {\rm d}x = \mathrm{i}\delta \mathrm{e}^{\mathrm{i}/\delta} - \mathrm{i}\int^{\delta}_{0} \mathrm{e}^{\mathrm{i}/x}{\rm d}x,$$ $$(HK) \int^{\delta}_{0} \dfrac{1}{x}\mathrm{e}^{\mathrm{i}/x} \mathrm{e}^{\mathrm{i}nx} {\rm d}x = (HK)\int^{\delta}_{0} \dfrac{1}{x}\mathrm{e}^{\mathrm{i}/x} {\rm d}x + \int^{\delta}_{0} \dfrac{\mathrm{e}^{\mathrm{i}nx}-1}{x}\mathrm{e}^{\mathrm{i}/x} {\rm d}x$$ are well defined.
So I'm interested in the question stated in the title. But in general, the product of two Henstock-Kurzweil integrable function need not be Henstock-Kurzweil integrable on $[a,b]$ (here is an example). Even $g(x)$ being smooth on $[a,b]$ would not guarantee that $f(x)g(x)$ is Henstock-Kurzweil integrable on $[a,b]$. So what can be said if $f$ is integrable and $g(x) = \mathrm{e}^{\mathrm{i}x}$?
First a short history lesson (the price one has to pay for an answer).
Some history. At the beginning of the 20th century Lebesgue defined an integral which quite revolutionized the theory. He had stated that his motivation was to produce an integral that included the Riemann integral and integrated all derivatives. Well, it did integrate some derivatives but not all derivatives.
A French mathematician Arnauld Denjoy (1884--1974) took on that program and gave a detailed analysis of how to integrate all derivatives, by extending Lebesgue's integral in a countable (but transfinite) sequence of steps. That was called, naturally, the Denjoy integral. Later a German named Perron gave a nonconstructive definition for the Denjoy integral. Denjoy severely (and dramatically) attacked his definition. In spite of that the world elected to call this now the Denjoy-Perron integral. Over the years there were many equivalent formulations but the name Denjoy-Perron persisted. A soviet mathematician, Tolstov, gave a very interesting characterization too in 1960. Nobody elected to change the name to the Denjoy-Perron-Tolstov integral.
Then, sometime in the 1970s, researchers became aware of another equivalent definition that had been presented in the 1950s by an Irish mathematician, Ralph Henstock and a Czech mathematician, Jaroslav Kurzweil. That version in time became known as the Henstock-Kurzweil integral and Denjoy and Perron somehow lost their patent rights to the name.
Many students now learn of this integral only by this new name and have no idea of the many contributions of mathematicians in the period 1910-1960. Many have never read Saks, Theory of the Integral, where that theory is very elegantly presented.
Basta. Thank you for your patience.
Your answer:
Note: Winifred Lydia Caunden Sargent (8 May 1905 – October 1979) was an English mathematician. She studied at Newnham College, Cambridge and carried out research into Lebesgue integration, fractional integration and differentiation. For a full biography see: https://mathshistory.st-andrews.ac.uk/Biographies/Sargent/
POSTSCRIPT. For infomation on Fourier series using the Denjoy integral there is this Russian textbook from 1978 that has been ably translated by Peter Bullen who is himself an authority on this topic.