in the first question,
you are replacing x by x+h in left hand side......... so what would be the change in right hand side, x would be replaced by x+h, hence your second attempt is correct..
Think about the second question the same way
Keep Smiling
Malay