A continuous probability distribution has density:

a) If the expected value is equal to 1, find the values of a and b.
b) What is the variance of X?