Let h_1 be the partition for the interval [-1,0] and h_2 the partition for the interval [0,1].
At the y-interval [-1,0] k is equal to k_2.
So, since -1+jh_1=0 => j=1/h_1=N_1 at the matrix A for j=0,...,N_1 , k is equal to k_2.
At the y-interval [0,1] ,k is equal to k_1.
So, since jh_2=1 => j=1/h_2=N_2 at the matrix A for j=N_1+1,...,N_2, k is equal to k_1.
Is this right? @ekkilop