To solve for the ratio \(a:b\) given the conditions and knowing that \(a\) and \(b\) are integers of opposite signs, we begin with the equations:
\[ \frac{(a+3)^2}{b^2}=\frac{9}{1} \]
\[ \frac{(a-1)^2}{(b-1)^2}=\frac{4}{1} \]
Let's solve these step by step.
From the first equation:
\[ (a+3)^2=9b^2 \]
Taking the square root of both sides:
\[ a+3=\pm 3b \]
This gives us two cases:
From Case 1, \(a=3b-3\).
From Case 2, \(a=-3b-3\).
Next, analyze the second equation:
\[ (a-1)^2=4(b-1)^2 \]
Taking the square root of both sides:
\[ a-1=\pm 2(b-1) \]
This translates into:
For Case 1, \(a=2b-1\). For Case 2, \(a=-2b+1\).
Now, solve by equating results:
For \(a=3b-3\) and \(a=2b-1\), equate:
\[ 3b-3=2b-1 \]
\[ b=2 \]
Then, \(a=3(2)-3=3\)
The ratio \(a:b=3:2\), which is not a solution.
Next, consider \(a=-3b-3\) and \(a=-2b+1\):
\[ -3b-3=-2b+1 \]
\[ -b=4 \]
\[ b=-4 \]
Then, \(a=-3(-4)-3=12-3=9\)
Therefore, the ratio \[ \frac{a}{b}=\frac{9}{-4}\] simplifies to \[25:4\] with signs considered.
The correct ratio is therefore 25:4.