Using the Bellman function approach, we present new proofs of weighted
L
2
L^2
inequalities for square functions, with the optimal dependence on the
A
2
A_2
characteristics of the weight and further explicit constants. We study the estimates both in the analytic and probabilistic context, and, as an application, obtain related estimates for the classical Lusin and Littlewood-Paley square functions.