This question is motivated by the discussion here:
https://matheducators.stackexchange.com/a/26687/117
Let $g$ be defined and differentiable on an interval containing $[a,b]$ and $f$ be defined on an interval containing the image of $g$.
What are the most general conditions on $f$ and $g$ so that the change of variables theorem holds?
$$ \int_a^b f(g(x))g'(x) \textrm{ d}x = \int_{g(a)}^{g(b)} f(u) \textrm{ d}u $$
Many textbooks list conditions like "$f$ is continuous and $g$ is continuously differentiable".
I can prove it also in the case "$f$ is Riemann integrable, $g'$ continuously differentiable and monotone."
Do we in fact have it in the more general case "$f$ is Riemann integrable, $g'$ is Riemann integrable"?
If not, I would be grateful for a counterexample. It would also be nice to have a list of various ways to loosen the conditions in various directions.
In the traditional formulation, the change of variables formula is
$$\int_{g(a)}^{g(b)} f(u)\,\mathrm{d}u = \int_a^b f(g(x))g'(x)\,\mathrm{d}x.\tag{1}\label{trad}$$ We typically assume that $g$ is continuous on $[a,b]$ and differentiable on $(a,b)$. With the additional assumption that $g'$ is Riemann integrable on $[a,b]$, the fundamental theorem of calculus guarantees that $g$ is an indefinite integral of $g'$, so we have the following broader formulation.
Let $g$ be Riemann integrable on $[a,b]$, and let $G$ be an indefinite integral of $g$ on $[a,b]$, i.e. $G(t)=c+\int_a^t g(x)\,\mathrm{d}x$ for some $c\in\mathbb{R}$. The change of variables formula is then
$$\int_{G(a)}^{G(b)} f(u)\,\mathrm{d}u = \int_a^b f(G(x))g(x)\,\mathrm{d}x.\tag{2}\label{formula}$$
Kestelman (1961) is attributed with the proof of \eqref{formula} when $f$ is Riemann integrable on $G([a,b])$.
The other direction is attributed to Preiss and Uher (1970). If $f$ is bounded on $G([a,b])$ and $(f \circ G)g$ is Riemann integrable on $[a,b]$, then \eqref{formula} holds.
Sarkhel and Výborný (1996/1997) and Tandra (2015) present alternative proofs of equivalent formulations. Tandra (2015) replaces the assumption that $G$ is an indefinite integral of $g$ with the assumption that $G$ is Lipschitz continuous and $G'=g$ almost everywhere, in the spirit of the traditional formulation.
Kuleshov (2021) weakens the condition in Preiss and Uher's result that $f$ must be bounded on $G([a,b])$ to boundedness of $f$ on $[G(a),G(b)]$.