I'm trying to evaluate the limit $\lim_{x \to a} f(x)$ of the function $f(x)=\dfrac{1}{1+\tfrac{a^2}{4x(a-x)}\sin^2 \left(b\sqrt{a-x} \right)}$ using mathematica, and it should yield $\dfrac{1}{1+ab^2/4}$, as it does using
WolframAlpha. However, throwing the following code into Mathematica
f[x_] := 1/(1 + (1/4*(a^2/(x*(a - x))) (sin^2 [sqrt (x - a)])))
Limit[f[x], x -> a]
leaves me with the unevaluated limit
.
I've read here and there how some limits are causing problems with mathematica, and how one should seperate multiplied variables by a space character, but even though I tried to follow these best practice guidelines, I'm left clueless with my limit. Help, anyone?
f[x_] := 1/(1 + (1/4*(a^2/(x*(a - x))) (sin^2 [sqrt (x - a)])))
differs from your notation in W|A. $\endgroup$