The definition of Ideals generated by a subset :
Let $S$ be any subset of ring $R$ then an ideal $I$ of $R$ is said to be generated by $S$ if :
(1) $S \subseteq I$.
(2) for any ideal $J$ of $R$ containig $S$,we have:$~~~~I \subseteq J$.
The thing I can't understand is that if $I$ is an Ideal generated a subset $S$ and $J$ is also generated of $S$,then what are the kind of elements that $J$ has which $I$ doesn't have .Also i'm struck with the meaning of smallest Ideal generated by $S$.Please help....
Here's an example of an ideal containing $S$ but not being generated by $S$.
Let $R$ be the ring of integers, and let $S = \{ 12 \}$.
Then the ideal generated by $S$ is the set of all integers that are divisible by 12. This set is usually written as $(12)$ or sometimes $\langle 12 \rangle$.
All of the other ideals that contain $S$ are:
and if you also consider improper ideals,
You'll observe, for example, that $(12) \subseteq (3)$: every number divisible by $12$ is also divisible by $3$. But these ideals are different: while $(3)$ does contain every integer that is a linear combination of $S$ (i.e. that are multiples of $12$), $(3)$ also contains other integers, such as $3$.