Bernoulli: solve via substitution