Worked example
Transform the event before differentiating
The density is for ; for and zero elsewhere.
Let . On paper, find its support and cumulative function. Enter and the density at exactly.
The new range extends from to . In its interior, is equivalent to .
Use the original CDF at the inverse input.
Differentiate inside each branch to recover the density.
At the requested point the cumulative value is and the density is .