Research, research, research...
Please search the forums there's plenty of good info here.
In short:
40 gallon may be too small depending on dimensions, 50 and up would be better.
They should not be kept alone.
They can be kept in pairs but only as bonded breeding pairs, IMO not for the beginner and a waste of money unless you want them to breed.
They should be kept in groups of min 5, 4 can sometimes work out... Allow 10g per adult discus with a min size of around 55g.
Buy fish around 4", they will settle better and are less prone to stunting.
Keep a bare bottom tank and do partial water changes frequently.
Discus require a lot of commitment and good quality fish can be expensive. Do some research on the water parameters required and decide if they are right for you, if so post up any other questions.