Hi,

First post so be gentle!

I'm trying to find the Gateaux Differential for the following:

Given the functional:

$\displaystyle S[y]=\cosh(T[y]), T[y]=\int_1^3(5\frac{dy}{dx}-2y^2)dx$

I have to find the Gateaux Differential. Now, I'm comfortable with finding the Gateaux Differential for $\displaystyle T[y]$ but my daft question is, for $\displaystyle S[y]$ do I need to substitute $\displaystyle T[y]$ into $\displaystyle S[y]$ before generating the Gateaux Differential or do I find the Gateaux Differential of $\displaystyle T[y]$ first and then substitute into $\displaystyle S[y]$ ?

Any advice appreciated