如图,三角形ABC中,AB=2AC,AD平分角BAC,且AD=BD.求证:CD垂直于AC