 A doctor may begin the diagnosis by asking the patient to stand on one leg and then the other, while observing the effect on the position of the hips.Palpating the hip and leg may reveal the location of the pain, and range-of-motion tests can help to identify its source.X-rays, ultrasound and magnetic resonance imaging may reveal tears or swelling.