Parameterize C by
r(t) = 〈x(t), y(t)〉 = 〈cos(t), sin(t)〉
with 0 ≤ t ≤ π. Then the line integral is
[tex]\displaystyle \int_C (2+x^2y)\,\mathrm ds = \int_0^\pi (2+\cos^2(t)\sin(t))\left\|\mathbf r'(t)\right\|\,\mathrm dt \\\\ = \int_0^\pi (2+\cos^2(t)\sin(t)) \,\mathrm dt = \boxed{\frac23+2\pi}[/tex]