Old MIT exam question, how do I solve it?
I've been working through old MIT practice exam papers, and I found a question that stumped me. It goes:
What value for the constant $c$ will make the function $e^{-x}\sqrt{1+cx}$ approximately constant, for values of $x$ near $0$? (Show your work.)
The answer begins with saying that $e^{-x}\sqrt{1+cx} \approx (1-x)(1+\frac{cx}{2})$
I'm not sure where this came from.
Can someone explain to me how this is solved?
It's the first two terms of each power series for $e^{-x}$ and $\sqrt{1 + cx}$.
We want it to be "approximately constant" so looking at the approximation
$$f(x) = e^{-x}\sqrt{1+cx} \approx (1-x)\left(1+\frac{cx}{2}\right) = 1 + x\left(\frac{c}{2} - 1\right) - \frac{cx^2}{2}.$$
We need to figure out some way to make this constant near $0$. Do you know something about derivatives that will be able to help you figure that out?
$$f'(x) = \frac{c}{2} - 1 - cx.$$
We're looking near $x = 0$, and want $f$ to be constant. What does that mean in terms of the derivative?
The idea is to replace each of the factors by its Maclaurin series,
$$e^{-x}\sqrt{1+cx}=\left(\sum_{n\ge 0}(-1)^n\frac{x^n}{n!}\right)\left(\sum_{n\ge 0}\binom{1/2}n(cx)^n\right)\;,$$
and then approximate this by ignoring the non-linear terms in the two series:
$$e^{-x}\sqrt{1+cx}\approx (1-x)\left(1+\frac12cx\right)\;.\tag{1}$$
Note: The binomial coefficient $\binom{r}n$ is probably unfamiliar when $r$ is not a non-negative integer; it’s just an abbreviation for $$\frac{r(r-1)(r-2)\dots(r-n+1)}{n!}\;,$$ so $\binom{r}0=1$, and $\binom{r}1=r$.
Multiply out the righthand side of $(1)$:
$$e^{-x}\sqrt{1+cx}\approx 1+\left(\frac{c}2-1\right)x-\frac12cx^2\;.$$
You want this to be approximately constant when $|x|$ is small. For $x$ near $0$, which changes faster, $x$, or $x^2$? It’s $x$, right? The graph of $y=x^2$ is practically horizontal near $0$, while the graph of $y=x$ has slope $1$. Thus, you want to choose $c$ to kill off the $x$ term, so that $$e^{-x}\sqrt{1+cx}\approx 1-\frac12cx^2\;,$$ and the function is nearly constant at $1$ for $x$ near $0$. This evidently means taking $c=2$, and we have finally $$e^{-x}\sqrt{1+2x}\approx 1-x^2\approx 1$$ for $x$ near $0$.
There's a way that's almost as quick if not quicker, but it doesn't use the hint. A function is constant if its derivative is $0$, so just take the derivative, set it equal to $0$, factor a bit and one arrives at the equation $\frac12 c - 1 - cx = 0$. Now if $x=0$, then $c = 2$.