1. This is a good way to understand the matter.

2. This is a good way of understanding the matter.

3. This is a good way for understanding the matter.
===================================
Are they all the same in meaning? Which ones are commonly used?

#1 is best, and #2 is fine. #3 seems a bit awkward; that is, I wouldn't use the preposition "for" in this expression.