See the image

AB = 12 BC = 15 so AC = 9
Since BD bisects angle ABC, then
AD / DC = AB/ BC
AD / DC = 12/15
AD / DC = 4/5
So AD = (4/9)(9) = 4
So D =(4,0) and DC = AC - AD = 9 - 4 = 5
And the distance from B to D = sqrt (12^2 + 4^2 ) = sqrt (160)
So....using the Law of Cosines....
BC^2 = DC^2 + BD^2 -2(DC* BD)cos(BDC)
15^2 = 5^2 + 160 - 2 ( 5sqrt(160)) cos(BDC)
40 = -10sqrt (160) cos (BDC)
-40 / (10 sqrt (160) ) = cos (BDC)
-4 / [ sqrt (160) ] =cos (BDC)
-4sqrt (160) / 160 = cos (BDC)
-sqrt (160) / 40 = cos (BDC)
- sqrt (10) / 10 = cos (BDC)
