With your change of variables

gives

Integrating twice gives

or

Imposing the two boundary conditions gives

.

Differentiating the first and then solving for F' and G' gives

.

Thus, .

Finally, we have

but imposing the first BC (1) gives , so the final solution is