A calculus student confuses the chain rule and the product rule. Find examples where this is valid, i.e. find pairs of functions f and g such that

where ∘ denotes composition of functions.

Source: Gary Gislason and Murray Klamkin