Magnetic field (induction) due current in finite straight conductor (wire)

$$B = \frac{\mu\cdot \mu0\cdot I\cdot (cos(a_1)+cos(a_2))}{4\cdot \pi\cdot r}$$
Find   It is known that:
      =