This question was asked in Ex 8.4, 1
Formulas for ex 8.4

Baldev Singh's image