Answer
The energy comes from the collector/emitter voltage source.
Work Step by Step
In Figure 29-41, it is the battery marked $\varepsilon_{C}$. The signal to the base controls how much current (and power) is supplied by the collector/emitter voltage source.