The power pattern of the antenna is,
P(θ)=|F(θ)|2=cos8θ
∵ The maximum value of P(θ) is 1, the directivity can be written as
D=4π∫2πϕ=0∫π/2θ=0cos8θsinθdθdϕ
Substituting,
cosθ=t⇒−sinθdθ=dt
We get, D=4π2π∫10t8dt=4π2π×(t99)∣∣∣90
or D = 18
∴ D(dB) = 10 log18 = 12.55 dB