Question
Question: Dipole moment of the arrangement of the charges as shown in figure is 
Dipole moment of −q along the direction of positivex−axis,p2=−q×a(i^)
Dipole moment of −q along the direction of negativey−axis, p3=−q×a(−j^)
Equivalent or net dipole moment of the system,pnet will be equal the vector sum of all the dipole moments with respect to +3q charge, that is
pnet=p1+p2+p3
Now, in the next step of the vector sum p1 and p3would cancel each other as they have diametrically opposite directions.
∴pnet=p2=−q×a(i^)
Thus, the equivalent dipole moment of the system is −q×a along the direction of positive x−axis.
Note:
One is advised to always remember that dipole moments determine the direction of the charges, thus, can have both positive and negative values and if required can be resolved into its rectangular components .This again justifies that it’s a vector quantity.