Abstract
We present a general procedure to construct the first law of thermodynamics on the apparent horizon and illustrate its validity by examining it in some extended gravity theories. Applying this procedure, we can describe the thermodynamics on the apparent horizon in Randall-Sundrum braneworld imbedded in a nontrivial bulk. We discuss the mass-like function which was used to relate Friedmann equation to the first law of thermodynamics and find that in Lovelock gravity its special case gives the generalized Misner-Sharp mass there.