Let $D \subseteq \mathbb{R}^2$ be defined as follows $$ D = \bigr\{(x,y) \in \mathbb{R}^2 \mid 0 \leq y \leq\sqrt{1-x^2}\bigl\} $$ The problem is to find the maximum and minimum of the function $$f(x,y) = \sqrt{3}x + y$$ for $x,y \in D$.
I tried to let $k = \sqrt{3}x + y$ so that $y = k - \sqrt{3}x$ and then to solve
$$k - \sqrt{3} x = \sqrt{1-x^2}$$
However, this lead to some quite messy calculations. Is there an easier way?

How about using angles, $(\cos\theta, \sin\theta) = (x,y)$ ? $$g(\theta) = \sqrt3\cos\theta + \sin\theta$$
$$g'(\theta) = -\sqrt3\sin\theta + \cos\theta$$
For maximum, solve for $g'(\theta)=0$: $$\sqrt3\sin\theta = \cos\theta$$ $$\tan\theta = {1 \over \sqrt3} = \tan({\pi \over 6})$$
$$max(f(x,y)) = \large g({\pi \over 6}) = \sqrt3\times({\sqrt3 \over 2}) + {1\over2} = 2$$ $$min(f(x,y)) = f(-1,0) = -\sqrt3$$
Another way, without doing differentiation
$$g(\theta)=\sqrt3\cos\theta + \sin\theta = 2 \cos(\theta-{\pi\over6})$$
$$max(f(x,y)) = max(g(\theta)) = 2$$