Consider the density function f(x) = a(-x3+x2+x+2), 0
(a) First, determine a to make sure f(x) is a density function
(b) Compute the probability that x will be between 0 and 1
(c) Use R (programming) to plot f(x). Include code and figure.
This problem basically an exercise in calculus.
R programming code how to do it