Let x moles of A react with y moles of B.
xA + yB → C
To write rate law,
It is necessary to find x and y values.
(i) Initial rate

Final rate R2 is doubled when the concentration of A is doubled, i.e., R2 = 2R1 when final concentration,

(It is assumed that the concentration of B remains same.)

(ii) Initial rate

If the concentration of B is doubled keeping of A constant, rate becomes four times, i.e.,

Hence,
The rate law is represented by an expression.
Rate = k[A] [B]2
∴ Rate law is Rate = k[A] [B]2