I need to find the limit when r2
tends to r1
of the following expression:
(K2 r1^2 + K1 r1 r2 -
Sqrt[r1 r2 (K1^2 r1 r2 + K2^2 r1 r2 + K1 K2 (r1^2 + r2^2))]) /
(-K2 r1 r2 - K1 r2^2 +
Sqrt[r1 r2 (K1^2 r1 r2 + K2^2 r1 r2 + K1 K2 (r1^2 + r2^2))])
For this reason I want to rationalize the numerator or denominator to see if this helps me find the limit. I am interested in using this procces because when r1
set equal to r2
, the expression takes the indeterminate form of zero/zero.
Is there any method to rationalize the expression?
Also I have tried to calculate the limit, but Mathematica reports that the limit is 1. But numerically the result is another one. This different result is shown in the code and in the image. That is, evaluating
(K2 r1^2 + K1 r1 r2 -
Sqrt[r1 r2 (K1^2 r1 r2 + K2^2 r1 r2 + K1 K2 (r1^2 + r2^2))]) /
(-K2 r1 r2 - K1 r2^2 +
Sqrt[r1 r2 (K1^2 r1 r2 + K2^2 r1 r2 + K1 K2 (r1^2 + r2^2))]) /.
{K1 -> 20, K2 -> 30, r1 -> 0.1, r2 -> 0.10001}
gives
r1
tends tor2
yet in the "counterexample" that you provide you setr1 -> 0.1, r2 -> 0.10001
which is not consistent with a limit asr1
tends tor2
$\endgroup$Limit
will need assumptions on the parameters in this case.In[51]:= Limit[expr, r1 -> r2, Assumptions -> {K1 > 0, K2 > 0, r2 > 0}] Out[51]= K2/K1
$\endgroup$