How do you say like to work out in French?

The term "work out" has three meanings in English. 1) If the question refers to "work out" as a slang term for exercise (i.e. I work out at the gym.), there is one translation. 2) If "work out" is an expression for navigating problems (i.e. I worked out the solution to this math problem), there is a second translation. 3) If "work out" means to end satisfactorily (i.e. I know that this will all work out.), there is a third translation.

Translation (1): J'aime faire de l'exercice.
Translation (2): J'aime résoudre...
Translation (3): Not applicable in this instance, but the expression for type three would be "se résoudre".