Math Help - Minimizing errors of test

1. Minimizing errors of test

I understand that reducing type 1 error will increase type 2 error and vis versa. But how do we minimize the difference between probability of type 1 error and probability of type 2 errors? Thanks

2. minimize the sum of alpha and beta, not the difference