A mathematical model for a function is $y=\log_ax-b$. If $y=-21.6429$ when $x=105$ and $y=-21.1395$ when $x=211$, find $a$ and $b$ to the nearest integer
Created two equations: $$-21.6429=\log_a105-b$$ $$-21.1395=\log_a211-b$$ Changed equations to: $$a^{-21.6429}=105-b$$ $$a^{-21.1395}=211-b$$ Subtracted bottom equation from top: $$a^{-21.1395}-a^{-21.6429}=106$$ After that I got stuck, and tried to use the calculator solver function, but it gave an out of bounds type error.
You should, right from the start, subtract one equation from the other (here I'll subtract the first from the second). This cancels out $b$: $$\log_a211-\log_a105=\log_a\frac{211}{105}=-21.1395+21.6429=0.5034$$ $$\frac{211}{105}=a^{0.5034}$$ $$a=\left(\frac{211}{105}\right)^{1/0.5034}=4.00029\ldots\approx4$$ Then we can substitute and derive $b$: $$b=\log_4{105}+21.6429=24.99984\ldots\approx25$$ The model is $y=\log_4x-25$.