Hello, VkL!

Sorry, I don't understand the method you were taught.

Find extreme values of: .

We have: .

Set the partial derivative equal to zero and solve:

. .

Solve [1] for

Solve [2] for

Equate [4] and [5]: .

Substitute into [3]: .

Substitute into [6]: .

Therefore: .