Anatomy

The patient presented with loss of extension at knee joint with decreased sensation over anterior aspect of thigh. The nerve damaged is: