All books I looked through write that the linear equation is the equation that has a from:
$$a_1x_1+a_2x_2+\dots+a_nx_n=b$$
But is this really the definition of a linear equation? I thought that the definition should be the form of linear mapping. Like,
$$f(x+y)=f(x)+f(y)$$ $$f(ax)=af(x)$$
What is the definition of a linear equation?
The second defines a linear function, not a linear equation. For a matrix $A$, the function $f(x)=Ax$ is linear. For $A=(a_1,\ldots ,a_n)$ and $x=(x_1,\ldots,x_n)^T$, $Ax=a_1x_1+\cdots +a_nx_n$.