Angular impulse = change in angular momentum
∴(J×r⊥)=0−Iω=−Iω
where, J= linear impulse =Iωr⊥
where r⊥=2l2=l as rod strikes nail at its mid point
Moment of inertia of rod rotating about an axis passing through it's end point and perpendicular to its length is given by
I=ML23=m(2l)23
J=(m)(2l)23⋅ωl
=43mlω