Analytical calculation of amplication factor

For the quadrupole the formula follows,