Your sentences are grammatically correct. They have almost exactly the same meaning. The only difference I can detect is that the second one can be used to mean that it was her purpose to strengthen your back, and that's why she showed you the exercises.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.