The requirement that the two gradients are parallel can also be expressed as
This will produce exactly the same result as using the Lagrange multipliers method (once you've eliminated the multiplier).
Both these methods are a bit impractical here though. Since we're dealing with an ellipse, we can express the main function in terms of one variable.
You will of course also need to find the inner points where