Suppose $F$ is a cumulative distribution function of a random variable $X$ distributed in $[0,1]$ defined as follows: $$ F(x)= \begin{cases} ax+b & \text{if } x\leq a, \\ x^2-x+1 & \text{otherwise.} \end{cases}$$
where $a\in \left ( 0,1 \right )$ and $b$ is a real number.
What can you say about the continuity and differentiability in $(0,1)$?
I tried to find the pdf and equate it to $1$. The value of $a$ came out to be $1$ , which is not possible.
Any help will be appreciated.