Brief description: If the government put a subsidy on a good, this will shift the supply curve downwards by the amount of the subsidy (S1 to S2 in the diagram).
Detailed description: The subsidy will increase output to Q2 and reduce the price to P2. The amount per unit of the subsidy is given by the vertical distance between the two supply curves and the total cost of the subsidy is given by the shaded area.