Solve for j D=(j+w)/2