I want to evaluate the the following line integral: $$\int_C (x+y) \,\mathrm{d}x,$$ where $C$ is the semicircle starting at $(0,1)$ and ending at $(0,-1)$ as shown below:
Is there a function of $y$ that I can replace it with to be be able to solve this?

You need to use parametric equations,$$ x=\sin t, y= \cos t$$ for $ t$ from $0$ to $\pi $
Substitute these values for $x$ and $y$ and evaluate the integral.