A random variable X has a cumulative distribution fnc given by

0 for a<0
G(a)={a^2 for 0<=a<1
1 for a>=1
find the probability density function.