I got stuck at the middle of the question. would appreciate your help. first of all, given the CDF as follows, I had to find parameters $a$ and $b$ such that the CDF is a function of a continuous random variable.
So as I know, $F_x(t<=4)=1$ then $ 0.4t+a=1$ while $t=4$. then $a=-0.6$ and $b=0.2$.
after that, I had to find the density function value for x=3. and that would be the derivative of $0.4t+a$ as it's in the range of x=3.
finally, I have to find the expected value (E[x]) and I have no clue how to do that. would appreciate your help!

F(x)= 0 for t< 1 and $0.2t^2- 0.4t+ b$ for 1< t< 2. In order for the function to be continuous at t= 1, those must "match up": $F(1)= 0= 0.2(1^2)- 0.4(1)+ b= -0.2+ b$ so we must have $b= 0.2$. For 2< t< 4, F= 0.4t+ a. Again the two formulas must give the same value at t= 2. We must have $0=.2(2^2)- 0.4(2)+ 0.2= 0.4(2)+ a$. That reduces to $0.8- 0.8+ 0.2= 0.2= 0.8+ a$ so a= -0.6.
The expected value is $\int t f(t) dt$ where f is the probability density function, the derivative of the give $F_x(t)$.
That derivative is f(t)= 0 for t< 1, $0.4t- 0.4$ for $1\le t< 2$, $0.4$ for $2\le t< 4$ and 0 for $4\le t$.
So the expected value is given by $0.4\int_1^1t(t- 1)dt+ 0.4\int_2^4 t dt$. That should be easy to calculate.