It’s easy to get caught in patterns of negative thinking, but you can also tip the scales in favor of more joy and gratitude. Here’s what to know.