Equivalence of Definitions of Integral Element of Algebra

Theorem
Let $A$ be a commutative ring with unity.

Let $f : A \to B$ be a commutative $A$-algebra.

Let $b\in B$.