f(x) = If[0 ≤ x ≤ 20, If[0 ≤ x ≤ 10, sqrt((8 * x / 5)), (x + 10) / 5]]
f' = Derivative(f)