<math 
  xmlns="http://www.w3.org/1998/Math/MathML">
  <semantics>
    <mrow>
      <mi>η</mi>
      <mo>=</mo>
      <mfrac>
        <mtext>work done</mtext>
        <mtext>heat absorbed</mtext>
      </mfrac>
      <mo>=</mo>
      <mfrac>
        <mrow>
          <mi>Q</mi>
          <mn>1</mn>
          <mo>-</mo>
          <mi>Q</mi>
          <mn>2</mn>
        </mrow>
        <mrow>
          <mi>Q</mi>
          <mn>1</mn>
        </mrow>
      </mfrac>
    </mrow>
    <annotation encoding="TeX">\eta = \frac{\text{work done}}{\text{heat absorbed}} = \frac{Q1-Q2}{Q1}</annotation>
  </semantics>
</math>