Find the domain of the following function:
$$g(x) = \ln(x^2+3x+2)$$
Here's my approach:
$$g(x) = \ln(x^2+3x+2)$$
$$g(x) = \ln(x+2)(x+1)$$
$$g(x) = \ln(x+2)+\ln(x+1)$$
Therefore,
$$x+1>0$$
$$x>-1$$
And,
$$x+2 > 0$$ $$x>-2$$
Both values on both sides of both inequalities are correct, however, in the answer, the sign is flipped for the second inequality. It will become apparent that the sign must be flipped (in the second inequality) when some numbers are inputted into the original function, however, I cannot seem to spot an error in my working out.
Thanks in advance, any help will be greatly appreciated.