-A\sin{\left(k{a\over 2}\right)} + B\cos{\left(k{a\over 2}\right)}=0