How can one determinate the variationt of f(g(x))

Given the two functions:

$f(x)={x}^{2}-2x$

$g(x)=\sqrt{x+1}$

The question is determinate the variation of f(g(x))

We have ${D}_{f(g(x))}=(-1,+\mathrm{\infty})$

For f it's decreasing for $x<1$.

Increasing for $x>1$

For g its increasing for $x>-1$

To determinate the variationf of f(g(x))

In interval $(-1;+\mathrm{\infty})$

We have g is increasing

$X>-1$ means that $g(x)>g(-1)$ so $g(x)>0$.

So $g([-1;+\mathrm{\infty}))=[0,+\mathrm{\infty})$.

But the problem is that f in that interval is increasing and decreasing Im stuck here.

Can one write a methode to answer any question like this theoricaly.

Given the two functions:

$f(x)={x}^{2}-2x$

$g(x)=\sqrt{x+1}$

The question is determinate the variation of f(g(x))

We have ${D}_{f(g(x))}=(-1,+\mathrm{\infty})$

For f it's decreasing for $x<1$.

Increasing for $x>1$

For g its increasing for $x>-1$

To determinate the variationf of f(g(x))

In interval $(-1;+\mathrm{\infty})$

We have g is increasing

$X>-1$ means that $g(x)>g(-1)$ so $g(x)>0$.

So $g([-1;+\mathrm{\infty}))=[0,+\mathrm{\infty})$.

But the problem is that f in that interval is increasing and decreasing Im stuck here.

Can one write a methode to answer any question like this theoricaly.