what do i do here?

S 1/2sin^2(x) dx

the S is meant to be the integrate zigzag thing so its integrate 1/2sin^2(x) dx? i am lost. i calculated the answer to be 1/2tan(x) using software but i don't get why so can someone talk me through a step by step?