Anatomy

A 24-year-old woman presents to her physician with weakness in flexing the hip joint and extending the knee joint. Which muscle is most likely involved in this scenario?