In a linear equation , both terms have to be constant . A linear equation is an algebraic equation in which each term is either a constant or the product of a constant and ( the first power of ) a single variable .