If f(x)=x|x|, then the value of f′(x)−2|x| at x=2021 is
f(x)=⎧⎪⎨⎪⎩2x+2−16if x≠24x−16kif x=2at x=2 If f(x) is continuous at x=2, then find the value of k.