What gemby said.

I had two total knee replacements about 5 years ago (same year, different months). Yeah, it hurts like a sumbitch, but power through and do your PT. I went to an actual PT place following my first replacement, where I learned the specific exercises to do. After my second knee replacement, however, I simply went to the gym on my own to do the PT.

My knee replacements were the smartest thing I've ever done.