On a different occasion (Dirichlet coefficients as limits: wrong) I have shown that the sometimes limited capabilities of the function Limit[]
can be improved by using an intermediate Series[].
Following this idea we can write for the limit in question
Limit[Expand[
Normal[Series[(n - n Sqrt[1 + x])^2, {x, 0, 2}]] /.
x -> 10/ n + Sin[n]/n^2], n -> \[Infinity]]
(* 25 *)
In this manner we can even calculate the limit with a symbolic parameter "a"
Limit[Expand[
Normal[Series[(n - n Sqrt[1 + x])^2, {x, 0, 2}]] /. x -> a/ n + Sin[n]/n^2],
n -> \[Infinity]]
(* a^2/4 *)
Also, a general function is permissible (provided Limit[f[n]/n,n -> \[Infinity]] == 0
)
Limit[
Expand[Normal[Series[(n - n Sqrt[1 + x])^2, {x, 0, 2}]] /.
x -> a/ n + f[n]/n], n -> \[Infinity]]
(* Limit[a^2/4 + 1/2 a f[n] + f[n]^2/4, n -> \[Infinity]] *)
Where the final Limit can only be assessed once f[n] is given explicitly.
Modification of the OP.
Taking f[n] = Sin[n]
(instead of f[n] = Sin[n]/n
as in the OP) we find
Limit[Expand[
Normal[Series[(n - n Sqrt[1 + x])^2, {x, 0, 2}]] /. x -> a/ n + Sin[n]/n],
n -> \[Infinity]]
(* Limit[a^2/4 + 1/2 a Sin[n] + Sin[n]^2/4, n -> \[Infinity]] *)
Taking the x-expansion beyond x^2 we get for all higher powers
Limit[Expand[
Normal[Series[(n - n Sqrt[1 + x])^2, {x, 0, 3}]] /. x -> a/ n + Sin[n]/n],
n -> \[Infinity]]
(* 1/4 (a + Interval[{-1, 1}])^2 *)
Limit
code is not dealing well with thatSin[n]
term. It usesSeries
which really has no "nice" representation for sine at infinity. Would be good to replace it withInterval[{-1,1}]
maybe (I mean in theLimit
code, not at the user end). $\endgroup$Limit[(n - Sqrt[10 n + n^2 + Sin[x]])^2, n -> ∞, Assumptions -> -1 <= Sin[x] <= 1]
quickly produces 25 $\endgroup$