The following easy lemma is known to me: Let $R$ be a commutative ring and $A$ be a finitely generated $R$-algebra. Then it is isomorphic to a quotient of a polynomial ring $R[x_1,\ldots,x_n]$ of finitely many variables.
There is something in ring theory I never understood and it seems to come back in algebraic geometry right now while looking at irreducible components of affine varieties.
For example I have the following rings:
$$A=\{f\in \Bbb Q[X]\mid f'(0)=0 \}$$
and
$$B=\{f\in \Bbb Q[X]\mid f(0)=f(1) \}.$$
These are $\Bbb Q$-algebras (right?). I want to write these as quotients of polynomial rings. How do I go about finding the generators of these algebras, and then after having set up the homomorphism, determining its kernel (i.e. the ideal $I$ by which the polynomial ring $R$ is divided such that $R/I\cong A$ or $R/I\cong B$?) I heard of some procedure called the Gröbner basis.
It seems to me that this is explained nowhere. Could someone give a reference or explain to me how I would go about doing this?