The first one you've integrated the wrong thing. You need to integrate 1/[4(2-x)] + 1/[4(2+x)]
The second one is right, but is usually simplified to ln|secx| because of the negative sign
As pixelfairy says, both of these general forms are in the formula book so you can check you have the right answer or try and get some clues where to go.