# Lagrange Multipliers can't apply here? I can't figure out why it is in this case

This is kind of stupid since I already have the answers, but I feel like I overlooked an important aspect of Lagrange Multipliers to misuse it here.

Given $f = x^2 + xy + x - y$ and the constraint is the region formed by $y = 1 - x$ and the coordinate axis.

Now I realize I havce to test it alone the boundary, but could someone explain to me what I overlooked when I want to use Lagrange Multipliers?

I was thinking of apply Lagrange Multipliers to each constraint. So for instance on the line $y + x = g(x,y) = 1$ I would do

$\nabla f = \lambda \nabla g$

$g = 1$

After doing so I got a contradiction where x + y = 1 and x + y = 0

-
You didn't get a contradiction. You got a system of equations with no solution. Therefore, on the line $x+y=1$, there are no critical points.
Don't forget that you were trying to optimize not on the entire line, but on the subset of the line $x+y=1$ with $0 \leq x \leq 1$, so you need to check the boundary points too. As there are no critical points, the optima of your function constrained to this line segment occur on the boundary of this line segment.