That's a simple question, but I'm confused.
What form must $G$ have for the differential equation $u_{tt}-u_{xx}=G(x,t,u)$ to be linear? Linear and homogeneous?
For the first question, I thought about $G(x,t,u)=a(x,t)u$, but I confused if $G(x,t,u)=a(x,t)u+b(x,t)$ is actually the right answer.
For the second question, I thought about $G(x,t,u)=a(x,t)u$, because it implies that $u_{tt}-u_{xx}-a(x,t)u=0. $
Am I right?
I could simply say that your classification of the equation $$ u_{tt}-u_{xx}=G(x,t,u)\tag{1}\label{1} $$ is the right one according to the customary lexicon, but your questions since are non trivial ones, deserve a comprehensive non trivial answer, which I postpone after the following definition:
Definition 1. Let $V_1,V_2$ be two $\mathbb{K}$-vector spaces (for the sake of simplicity we can implicitly assume that $\mathbb{K}=\mathbb{C}$ or $\mathbb{R}$) and $\mathfrak{L}:V_1\to V_2$ a function between them: $\mathfrak{L}$ is said to be linear if and only if $$ \mathfrak{L}(a\mathbf{u}+b\mathbf{v})=a\mathfrak{L}(\mathbf{u})+b\mathfrak{L}(\mathbf{v})\quad \forall \mathbf{u},\mathbf{v}\in V_1\text{ and }\forall a,b\in\mathbb{K}\tag{2}\label{2} $$ Loosely speaking, engineers and physicists say that $\mathfrak{L}$ is linear if and only if it satisfies the superimposition of the effects, which is precisely what is stated by equation \eqref{2}. Said that, we can proceed to classify the PDE above and say that
[1] Enzo Tonti (1984), "Variational Formulation for Every Nonlinear Problem", International Journal of Engineering Science, Vol. 22, No. 11/12, pp. 1343-1371, Zbl 0558.49022.