I am confused about a particular point regarding finding a demand function. All the problems in this practice set I am doing have involved applying the method of Lagrangian multipliers. But I am uncertain if it applies here for this problem.
Problem Setup
Consider a consumer with utility function $u(x,y) = \min\lbrace x,y\rbrace$. Suppose we are given wealth $w$ and prices $p_x = 1, p_y = \frac{1}{2}$.
My Work
Not much to do yet. All I did was set up a budget constraint $w = xp_x + yp_y = x + \frac{1}{2} y$.
My Confusion
I was all set to setup a Lagrangian multiplier equation when suddenly I realized that my utility function is a $\min$ function. At first, I thought this function wasn't differentiable. Now, I am thinking it is not differentiable but it is partially differentiable. I am still unsure.
My Guess
I suspect yes $\min$ is partially differentiable based on this thread
https://math.stackexchange.com/questions/150960/derivative-of-the-fx-y-minx-y
But I suspect my answer will need a piecewise component or something.
My Question
Are Lagrangian multipliers applicable here? If so, how do I define the Lagrangian in piecewise terms as I think I will need to do? If it is not differentiable, how does one derive a demand function given a $\min$ or a $\max$ function?