I tried something similar to your way and also took derivative but there was only one root so not sure what numbers might be inappropriate.
If you'd like help with your attempt, you can show us your work, and maybe we can point out what you are missing. I can't tell what you mean by "only one root". (But I do think that method, if I understand it correctly, is considerably harder than other ways.)
Your way seems basic, but don't students "need" to do what teacher says?
Yes, assuming the problem was quoted exactly, Lagrange is the
required method. And if the OP ever responds (or if you were to look up the method and show an attempt of your own), then we might be able to discuss the details. It is pretty straightforward using that method.
But it can also be interesting to think about
alternative methods, whether they are easier or harder than what is being taught. A good student will stop after any interesting problem and ask both "what have I learned by doing this?" and also "could I have done this a different way?" By trying other ways, you gain a fuller understanding of what methods work under what circumstances.
My own alternative method was just to differentiate
implicitly and set that to 0 to find the minimum value of y. That's very easy.
It could also be solved without calculus, by using a
discriminant to find what horizontal line
intersects the curve only once.