Differentiate, combine the logarithms, and work backwards using the half angle formulae and the identity $1+\tan(x)^2 = \sec(x)^2$
FullSimplify[
D[1/2 (-Log[Cos[x/2] - Sin[x/2]] + Log[Cos[x/2] + Sin[x/2]] + Sec[x] Tan[x]), x]
]
(* result: Sec[x]^3 *)
You can get there yourself if you first show:
FullSimplify[-(-(1/2) Cos[x/2] - 1/2 Sin[x/2])/(
Cos[x/2] - Sin[x/2]) + (1/2 Cos[x/2] - 1/2 Sin[x/2])/(
Cos[x/2] + Sin[x/2])]
(* Sec[x] *)
To get the above result, take a look at what happens when you put it all over a common denominator:
Together[-((-(1/2) Cos[x/2] - 1/2 Sin[x/2])/(Cos[x/2] - Sin[x/2])) + (
1/2 Cos[x/2] - 1/2 Sin[x/2])/(Cos[x/2] + Sin[x/2])]
(* (Cos[x/2]^2 + Sin[x/2]^2)/
((Cos[x/2] - Sin[x/2]) (Cos[x/2] + Sin[x/2])) *)
The numerator is obviously 1 by the identity $\cos(\theta)^2+\sin(\theta)^2=1$ and the denominator is $\cos(x)$ by half angles. To see this, expand the denominator $d=\left(\cos \left(\frac{x}{2}\right)-\sin \left(\frac{x}{2}\right)\right) \left(\sin
\left(\frac{x}{2}\right)+\cos \left(\frac{x}{2}\right)\right)$ to get $d=\cos ^2\left(\frac{x}{2}\right)-\sin ^2\left(\frac{x}{2}\right)$. Then we have $d = 1-2 \sin ^2\left(\frac{x}{2}\right) = \cos(x)$ and $1/d$ is $\sec(x)$
... and as for the rest of the derivative:
FullSimplify[1 - Sec[x]^2]
(* Tan[x]^2 *)
So therefore:
D[1/2 (-Log[Cos[x/2] - Sin[x/2]] + Log[Cos[x/2] + Sin[x/2]] + Sec[x] Tan[x]), x]
(* 1/2 (Sec[x]^3 - (-(1/2) Cos[x/2] - 1/2 Sin[x/2])/(
Cos[x/2] - Sin[x/2]) + (1/2 Cos[x/2] - 1/2 Sin[x/2])/(
Cos[x/2] + Sin[x/2]) + Sec[x] Tan[x]^2) *)
(* == (Sec[x]^3 + Sec[x] (1 + Tan[x]^2))/2 *)
(* == (Sec[x]^3 + Sec[x]^3)/2 == Sec[x]^3 *)