You just have to factor it into the following form:

for some functions h, c, t_i, w_i, and positive integer k. They can be constant functions if you want. For the exponential density, I'll get you started by giving you

(just so there's no ambiguity, since some people write it differently)