Doubt by Atharva Wategaonkar

how did you get the formula , or is it there in ncert