Typing
DSolve[{g''[y] - k^2/Gy g[y] == 0}, g[y], y]
where $k$ and $G_y$ are constants gives
$$\left\{\left\{g(y)\to C_1 \exp\left(\frac{k y}{\sqrt{G_y}}\right)+C_2 \exp\left(-\frac{k y}{\sqrt{G_y}}\right)\right\}\right\}$$
This anwer can be expressed in terms of hyperbolic functions
$$g(y)=C_1\cosh\left(\frac{k y}{\sqrt{G_y}}\right)+C_2\sinh\left(\frac{k y}{\sqrt{G_y}}\right)$$
where $C_1$ and $C_2$ are not technically the same as the constants for the exponential form but for the purposes of this question it doesn't matter. When I type ExpToTrig[DSolve[{ g''[y] - k^2/Gy g[y] == 0}, g[y], y]]
I get
$$\left\{\left\{g(y)\to C_1 \sinh \left(\frac{k y}{\sqrt{G_y}}\right)-C_2 \sinh \left(\frac{k y}{\sqrt{G_y}}\right)+C_1 \cosh \left(\frac{k y}{\sqrt{G_y}}\right)+C_2 \cosh \left(\frac{k y}{\sqrt{G_y}}\right)\right\}\right\}$$
How come Mathematica creates four terms instead of two? Doesn't this make finding solutions more difficult?
G_y
forGy
$\endgroup$