Try other things first, and Jake is absolutely right, magnesium supplementation can help with
and depression, but then again, it might not if that's not your problem. On the other hand, most Americans are deficient in magnesium because they take too much calcium, which leaches magnesium out of the body. A proper balance is necessary. If you want to try magnesium supplementation, try a 1:1 or 2:1 magnesium to calcium (the usual ration is 2:1 calcium to magnesium).