Using limx→0xsin(ax)=a, the left-hand limit is 2[(k1+1)+(k2−1)]=2(k1+k2). Equality with f(0)=4 gives k1+k2=2.
For the right-hand limit, expand the logarithm at zero: log[2+k2x2+k1x]=[2k1−k2]x+O(x2). Multiplication by x2 gives the limit k1−k2.
Continuity therefore also gives k1−k2=4. Solving, k1=3 and k2=−1, so the required sum is 9+1=10.