Let X be a random variable with probability density function (PDF) given by

f(x) = {2x 0 ≤ x ≤ 1
{0 otherwise

compute CDF