A random variable $X$ is given with pdf $f(x) =\Bigg\{cxe^\frac{-x}{10}$ if $x\geq0$ and $0$ otherwise
(a) find c to make this pdf correct
(b) find the cdf F(x)
For (a) I used integration by parts for $\int_0^\infty cxe^\frac{-x}{10}dx$ to get the answer $-10cxe^\frac{-x}{10} - 100ce^\frac{-x}{10}$. Since the total integral of the pdf must equal 1, I found that $c = \frac{1}{100}$
For (b) integrated $\int_0^\infty \frac{1}{100}xe^\frac{-x}{10}dx$ and came out with
$$F(x) = \begin{cases} -\frac{1}{10}xe^\frac{-x}{10} - e^\frac{-x}{10} & \text{if } x\geq0, \\0 & \text{otherwise} \end{cases} $$
Obviously this must be wrong because the values of the cdf would be negative for all $x\geq0$. Can anyone help me out?
Your value for $c$ is correct.
For the cdf, you don't integrate to infinity, you integrate up to $x$. And you have the correct formula except for a $+ 1$ from evaluating the second integration by parts at the limit $x=0$.