1) Please help me to understand this rule:

When I apply the rule to the following equation--

I get:

which doesn't make sense. What am I missing?

2) How does the rule work for definite integrals whose intervals are infinite, such as in the gamma function?

Pardon my ignorance.