There are two questions here, and the first one comes with a constraint I intend to respect: no differentiating. That is not a handicap, it is the syllabus - the interviewer wants to see whether I can run a qualitative audit of a function from its parts alone.
So let me describe before I compute. The curve is a product of two factors I already know perfectly: x squared, non-negative everywhere, and e to minus x, strictly positive everywhere. The second part is a composition - a sine fed with something violent - and the phrase 'x approaches 0' hides a decision I have to make out loud: from which side, and do the two sides agree?
My plan: sign and symmetry first, end behaviour second, one or two special points third, and only after that a picture.
Signs first. A non-negative factor times a strictly positive factor is non-negative, and it is zero exactly where x squared is zero - so the graph touches the x-axis at the origin and stays above it everywhere else. No crossings, ever.
Negative end: as x goes to minus infinity, x squared grows and e to minus x becomes e to the modulus of x, which also grows. Two positive increasing factors - nothing to argue about, the product shoots to plus infinity.
Positive end is the only genuine fight: x squared pulls up, the exponential pulls down. I will settle it properly later, not by vibes.
And there is no symmetry to exploit - swapping x for minus x turns e to minus x into e to plus x - which is exactly the same warning the second part will shout at me about left and right limits.
The two ends genuinely differ, so there is nothing to reuse from one side on the other.
Before trusting any picture I want numbers under it, so I plot the easy values by hand: at one over e is about 0.368, at four it is sixteen e to the minus four, about 0.293, at six thirty-six e to the minus six, about 0.089.
The audit plus those points force the whole shape: the curve lifts off the origin, climbs, and by x equals six it is already down near a tenth - so there is exactly one hump somewhere in between and a tail that flattens onto the axis.
That is what I have drawn: touch at zero, one bump, asymptotic tail to the right, explosion to the left. The only feature I have not justified yet is where the top of the bump sits - and I promise not to differentiate to find it.
Here is the no-differentiation move. I claim the bump tops out at four over e squared at x equals two, and I will prove it from a single inequality: log of u is at most u minus one, with equality only at u equals one.
Where does that inequality come from? From the other one on the board - e to the v is at least one plus v - which for non-negative v is just reading the exponential series, and for negative v comes by inverting. Substitute u equal to e to the v and you get log u at most u minus one.
Now take my claim: x squared e to minus x at most four e to minus two. Divide by four e to minus two and take logs: it becomes exactly two log u at most two times u minus one, with u equal to x over two. So the claim is the inequality, line by line, with equality only when u equals one - that is, only at x equals two.
The peak is located, with its exact height, and no derivative was harmed in the process.
An inequality I just manipulated is exactly the sort of thing I want to catch myself out on, so let me run a numerical pass. The table walks up from zero to 0.541 at x equals two, then back down through 0.513, 0.448, 0.293, 0.089 - exactly the shape the sketch promised.
Closer to the top: at one point nine it is 0.539941, at two point one 0.540033 - both just under 0.541341. The flatness of those two numbers is real, not sloppiness: the bump is genuinely rounded at its top.
And a brute scan over the whole half-line, one value every half-thousandth, puts the maximum at exactly x equals two with value 0.5413411329, agreeing with four over e squared to ten places. Proof and data now say the same thing.
There is one promise left from beat two: that the positive end really does come back down. People say 'the exponential beats the polynomial' as folklore - let me make it a theorem instead.
Every term of the exponential series is positive, so e to the x is at least the cubic term alone, x cubed over six. Inverting: x squared over e to the x is at most six over x. Squeeze between zero and something that vanishes - the tail goes to zero, proved, no differentiation and no l'Hopital.
Run the same bound with x to the m plus one over its factorial and any fixed power loses to the exponential. Numerically it checks out too: at ten the curve has dropped to zero point zero zero four five four, while the bound only promises six over ten, and that gap is exactly the looseness I just warned about.
The bound is loose, but it closes to zero, and that is all it needs to do.
Second object, and the first move is again to name it rather than attack it: this is sine fed with e to the one over x, so substitute u equals one over x. Approaching zero from the right becomes u going to plus infinity with the argument e to the u running away - sine of something that runs to infinity never settles.
Never settles is a feeling; I want an address for the chaos. The zeros solve e to the one over x equals k pi, so x sub k is one over log of k pi - and I can watch them pile up: 0.874, 0.290 at k equals ten, 0.207 at k equals forty, 0.124 at a thousand, 0.0668 at a million.
Better than zeros: on any right-hand neighbourhood the argument covers an unbounded interval, so the function attains every value between minus one and one - the graph is not merely wiggly, it is dense in the whole strip. The left side is a different function entirely: one over x tends to minus infinity, e to the u shrinks to zero, and the squeeze by e to the one over x crushes the graph onto the axis - by minus nought nought five, to within two billionths.
The figure is my confession that even a picture cannot finish this job: forty oscillations are all a drawing can hold before the crowding turns into ink.
So, to the questions as asked. The sketch of x squared e to minus x is the bump in my figure: non-negative, kissing the axis at the origin, peaking at four over e squared at x equals two, with a horizontal asymptote y equals zero on the right and an explosion on the left - and differentiation never entered.
For the sine: there is no single answer to 'what happens as x approaches 0', because the two sides tell different stories. From the left the graph is squeezed flat to zero; from the right it oscillates through the whole strip between minus one and one and has no limit at all - so the two-sided limit does not exist.
And the general principle I want to leave on the board: the limit of sine of g of x at a bad point dies as soon as g outruns sine's periods - sin of one over x, sin of e to the one over x, same verdict - while the qualitative audit of a product needs no calculus at all once you know your factors.
This crowd of zeros arrives far earlier than it looks: between one tenth and one fifth there are 6964 of them. And they pile up without end as x runs down toward 0 itself, so no count names them all.
If you want to push the left side further: it is not merely tending to zero - e to the one over x is smaller than every power of x there, so the graph is tangent to the axis to infinite order. Numerically, at minus nought one the curve sits below one over x cubed, and at minus nought nought five it is under x to the fourth by three thousand times.
That exact estimate is the engine behind the classical smooth bump function, e to the minus one over x squared, which is the standard example in analysis of a function that is differentiable to all orders with every derivative zero at a point - the usual escape hatch from the mean value theorem's converse.
This is a bonus, not the answer: the question asked what happens to the graph, and the answer is the two-sided story from beat eight.
No - the maximum statement was only for x at least zero, and the negative side defeats it immediately: y at minus two is four e squared, about 29.6, and the curve runs off to infinity as x goes to minus infinity.
So four over e squared is the largest the bump ever gets on the right half-line, but the function has no global maximum at all. Saying which side of the story a bound lives on is part of stating it properly.
Same audit: both factors non-negative, touches zero at the origin - and now the function is even, since only x squared appears, so the two ends agree and there is genuine symmetry to reuse.
Substitute t equals x squared: the curve becomes t e to the minus t, and the same log trick - t e to the minus t at most e to the minus one, equality at t equals one - gives twin peaks at x equals plus and minus one, each of height one over e, about 0.368.
The tails die much faster than before too: at x equals two the value is only four e to the minus four, about 0.073, already down to a fifth of the peak - roughly twenty percent of it.
There the picture is calm: one over x tends to zero, so the argument e to the one over x tends to one, and by continuity the function tends to sine of one - about 0.8415.
That is the same value on both tails, so the graph has one horizontal asymptote, y equals sine one, at both ends - all the drama of this function lives at the origin.
It is worth contrasting the mechanism: infinity of x means zero of one over x, which tames the exponential. The bad point for the argument is exactly where x is small.
Let me solve it rather than guess it. The zeros sit at x equals one over log of k pi, so asking for x between nought point one and nought point two means asking for one over x between five and ten, which means k pi between e to the five and e to the ten.
Divide by pi and k runs over the integers from forty-eight up to seven thousand and eleven, and that count comes to six thousand nine hundred and sixty-four zeros crammed into a gap of width only nought point one.
Now shrink the window to between nought point nought five and nought point one, and the count jumps to roughly one hundred and fifty-four million, because e to the twenty shows up. That is exactly what makes beat seven's figure honest but hopeless.