While studying for a test I came across this question. Before approaching I had already found that if there's a triangle $ABC$ with the angle $\angle BAC = \alpha$ (in radians) and the opposite side $BC = a$, then if one of the remaining angles is $x$ ($0<x<\pi -\alpha $) the triangle will have its maximum perimeter when $x = \frac{\pi -\alpha }{2}$. What I did to solve this was finding the maximum perimeter $P_{ABC}$ by creating a function $f\left(x\right)$ and then finding its derivative and thus its maximum value. I show a proposed solution below, but do try solving it before seeing mine. I've already seen some great answers.
Clarification: Since I keep getting suggested a similar question, I would like to clarify that in this proof you don't know that it's an isosceles triangle initially, you have to prove it's an isosceles when it has the maximum perimeter. In the "similar question," you're working all along knowing it's an isosceles triangle and proving it has the maximum perimeter, while here you're proving the triangle to be isosceles knowing it has the maximum perimeter.
Here's my proposed solution:
Now I needed to find the other two sides. By the sine law, $$\frac{AB}{\sin \left(\pi -\left(x+\alpha \right)\right)}=\frac{a}{\sin \left(\alpha \right)}$$
$$AB=\frac{a\sin \left(x+\alpha \right)}{\sin \left(\alpha \right)}$$
And
$$\frac{CA}{\sin \left(x\right)}=\frac{a}{\sin \left(\alpha \right)}$$
$$CA=\frac{a\sin \left(x\right)}{\sin \left(\alpha \right)}$$
Now for the function: $$f\left(x\right)=AB\:+BC+CA=\frac{a\sin \left(x+\alpha \right)}{\sin \left(\alpha \right)}+a+\frac{a\sin \left(x\right)}{\sin \left(\alpha \right)} =\frac{a\sin \left(x+\alpha \right)+a\sin \left(\alpha \right)+a\sin \left(x\right)}{\sin \left(\alpha \right)}$$
Rewriting the function and differentiating:
$$f\left(x\right)=\frac{a}{\sin\left(\alpha\right)}\left[\sin\left(x+\alpha\right)+\sin\left(\alpha\right)+\sin\left(x\right)\right]$$
$$f'\left(x\right)=\frac{a}{\sin\left(\alpha\right)}\left[\cos\left(x+\alpha\right)+\cos\left(x\right)\right]$$
$$\cos\left(x+\alpha\right)+\cos\left(x\right)=0$$
$$\cos\left(x+\alpha\right)=-\cos\left(x\right)$$
$$\cos \left(x+\alpha \right)=\cos \left(\pi-x\right)$$
$$x+\alpha =\pi-x$$ $$2x=\pi-\alpha$$ $$x=\frac{\pi-\alpha \:}{2}$$
Now since the last remaining angle is $\pi-\left(x+\alpha\right)$ I will plug in $x=\frac{\pi-\alpha}{2}$ and get $\pi-\left(\frac{\pi-\alpha}{2}+\alpha\right)$ which equals $\frac{\pi-\alpha}{2}$ which is $x$. I have found that the base angles are equal and therefore I have an isosceles triangle.
Hence proved.

