The product rule states that if a function, , is a product of two functions, and , then
For , let and
It follows that and .
Following the same procedure for the second function, you get
or, if you instantly realise that , you do not need to use the product rule!
I hope that helps.