In mathematics, and in particular ordinary differential equations, a Green's matrix helps to determine a particular solution to a first-order inhomogeneous linear system of ODEs. The concept is named after George Green.
For instance, consider x′=A(t)x+g(t) where x is a vector and A(t) is an n×n matrix function of t, which is continuous for t∈I,a≤t≤b, where I is some interval.
Now let x1(t),…,xn(t) be n linearly independent solutions to the homogeneous equation x′=A(t)x and arrange them in columns to form a fundamental matrix:
X(t)=[x1(t),…,xn(t)].
Now X(t) is an n×n matrix solution of X′=AX.
This fundamental matrix will provide the homogeneous solution, and if added to a particular solution will give the general solution to the inhomogeneous equation.
Let x=Xy be the general solution. Now,
x′=X′y+Xy′=AXy+Xy′=Ax+Xy′.
This implies Xy′=g or y=c+∫atX−1(s)g(s)ds where c is an arbitrary constant vector.
Now the general solution is x=X(t)c+X(t)∫atX−1(s)g(s)ds.
The first term is the homogeneous solution and the second term is the particular solution.
Now define the Green's matrix G0(t,s)={0t≤s≤bX(t)X−1(s)a≤s<t.
The particular solution can now be written xp(t)=∫abG0(t,s)g(s)ds.



