If $\rho(x, y)$ is the density of a wire (mass per unit length), then $m = \int \rho(x,y)ds$ is the mass of the wire. Find the mass of a wire having the shape of a semicircle $x = 1 + \cos(t), y = \sin(t)$, where $t$ is on the closed interval from $0$ to $\pi$, if the density at a point $P$ is directly proportional to the distance from the $y$-axis and the constant of proportionality is $3$. Round in the tenths place.
So I attempted this problem by plugging in $x$ and $y$ and then multplying it by ds to get integral from $0$ to $\pi (1+\cos t)(\sin t) \cdot \sqrt(-\sin t^2 + \cos t^2)$. Not giving me the correct answer. Any explanation is appreciated.