In this section $\k$ will be any commutative ring. We will recap some of the basic definitions of commutative algebra in a graded setting. By \emph{linear}, \emph{module}, \emph{tensor product}, etc \dots we always mean $\k$-linear, $\k$-module, tensor product over $\k$, etc \dots.
A \emph{graded module}$M$ is a family of modules $\{M_n\}_{n\in\Z}$. An element $x \in M_n$ is called a \emph{homogeneous element} and said to be of \emph{degree $\deg{x}= n$}. We will often identify $M =\bigoplus_{n \in\Z} M_n$.
For an ordinary module $M$ we can consider the graded module $M[0]$\emph{concentrated in degree $0$} defined by setting $M[0]_0= M$ and $M[0]_n =0$ for $i \neq0$. If clear from the context we will denote this graded module by $M$. In particular $\k$ is a graded module concentrated in degree $0$.
Note that not all linear maps can be decomposed into a sum of graded maps, so that $\Hom_{gr}(M, N)\subset\Hom(M, N)$ may be proper for some $M$ and $N$.
The tensor product extends to graded maps. Let $f: A \to B$ and $g:X \to Y$ be two graded maps, then their tensor product $f \tensor g: A \tensor B \to X \tensor Y$ is defined as:
The sign is due to \emph{Koszul's sign convention}: whenever two elements next to each other are swapped (in this case $g$ and $a$) a minus sign appears if both elements are of odd degree. More formally we can define a swap map
$$\tau : A \tensor B \to B \tensor A : a \tensor b \mapsto(-1)^{\deg{a}\deg{b}} b \tensor a. $$
The graded modules together with graded maps of degree $0$ form the category $\grMod{\k}$ of graded modules. From now on we will simply refer to maps instead of graded maps. Together with the tensor product and the ground ring, $(\grMod{\k}, \tensor, \k)$ is a symmetric monoidal category (with the symmetry given by $\tau$). This now dictates the definition of a graded algebra.
A map between two graded algebra will be called a \emph{graded algebra map} if the map is compatible with the multiplication and unit. Such a map is necessarily of degree $0$.
Again these objects and maps form a category, denoted as $\grAlg{\k}$. We will denote multiplication by a dot or juxtaposition, instead of explicitly mentioning $\mu$.
A \emph{differential graded module}$(M, d)$ is a graded module $M$ together with a map $d: M \to M$ of degree $-1$, called a \emph{differential}, such that $dd =0$. A map $f: M \to N$ is a \emph{chain map} if it is compatible with the differential, i.e. $d_N f = f d_M$.
A differential graded module $(M, d)$ with $M_i =0$ for all $i < 0$ is a \emph{chain complex}. A differential graded module $(M, d)$ with $M_i =0$ for all $i > 0$ is a \emph{cochain complex}. It will be convenient to define $M^i = M_{-i}$ in the latter case, so that $M =\bigoplus_{n \in\N} M^i$ and $d$ is a map of \emph{upper degree}$+1$.
Let $(M, d_M)$ and $(N, d_N)$ be two differential graded modules, their tensor product $M \tensor N$ is a differential graded module with the differential given by:
Finally we come to the definition of a differential graded algebra. This will be a graded algebra with a differential. Of course we want this to be compatible with the algebra structure, or stated differently: we want $\mu$ and $\eta$ to be chain maps.
A \emph{differential graded algebra (DGA)} is a graded algebra $A$ together with an differential $d$ such that in addition the \emph{Leibniz rule} holds:
It is not hard to see that this definition precisely defines the monoidal objects in the category of differential graded modules. The category of dga's will be denoted by $\DGA_\k$, the category of commutative dga's (cdga's) will be denoted by $\CDGA_\k$. If no confusion can arise, the ground ring $\k$ will be suppressed in this notation.
Let $M$ be a DGA, just as before $M$ is called a \emph{chain algebras} if $M_i =0$ for $i < 0$. Similarly if $M^i =0$ for all $i < 0$, then $M$ is a \emph{cochain algebra}.
Whenever we have a differential graded module we have $d \circ d =0$, or put in other words: the image of $d$ is a submodule of the kernel of $d$. The quotient of the two graded modules will be of interest.
For differential graded algebras we can consider the (co)homology by forgetting the multiplicative structure. However this multiplication will actually pass to (co)homology:
\begin{lemma}
Let $(A, d)$ be a differential graded algebra. The kernel $\ker(d)$ is a subalgebra of $A$ and the image $d(A)$ is an ideal, so that the quotient
Note that taking homology of a differential graded module (or algebra) is functorial. Whenever a map $f: M \to N$ of differential graded modules (or algebras) induces an isomorphism on homology, we say that $f$ is a \emph{quasi isomorphism}.