<math 
  xmlns="http://www.w3.org/1998/Math/MathML">
  <semantics>
    <msup>
      <mi>S</mi>
      <mo>′</mo>
    </msup>
    <annotation encoding="TeX">S'</annotation>
  </semantics>
</math>