Which muscle aids in the movement of the hip and thigh and is located in…