My book says following on integration by substitution:
Theorem: Let $f$ and $g$ be differentiable functions and $g'$ be continuous. Then $$\int f(g(x))\cdot g'(x) dx=F(g(x))+c,$$ where $F$ is antiderivitive of $f$. Proof: $$(F(g(x))+c)'= (F(g(x))'+(c)'=f(g(x))\cdot g'(x).$$
Where in the proof I need the assumption that $g'$ is continuous? Is it correct that chain rules cannot be used if my functions $f$ and $g$ are not differentiable? In some books they just assume that $f$ is continuous and $g$ is differentiable. What should the necessary assumptions in this theorem be?