Well, a very simple rule is the following. If you are pretty confident about button’s opening range, then you should 3-bet the same range. By doing that your equity is 50% and given a fixed fold equity, raise size has no effect on EV but it is positive. If fold equity increases with bet size (up to a point) as one would expect, then the larger the bet, the higher your profit.
The following illustration shows one example of such an analysis where the fold equity function against button is defined by hero as being moderate, button raises to 4.5bb and hero makes a raise of 5bb. For this fe function, button folds about 11% of the time and hero’s EV = 1.8bb.