I understand that it suffices to show that $f'(z)=0$
What I don't understand though, is how to take a partial derivative from $2u(x,y) + v(x,y) = 5$ ...
Another solution I thought of is,
If $2u(x,y) + v(x,y) = 5$, and 5 is a real number. Then 2 $y1$ and $y2$ is equal to $0$, and 2 $x1$ and $x2$ is equal to $5$.
meaning that if I take the derivative of 2 $x1$, its always going to be zero because 5 is a constant. $\frac{du}{dx} = 0$ and since it's analytic, by CRE it implies that $\frac{dv}{dy}$ is also zero.
Likewise if I take the derivative of $x2$, $\frac{dv}{dx}$ is also going to be $0$, which again by CRE implies that $-\frac{dv}{dx} = \frac{du}{dy}$.
So it's all $0$, meaning that $f$ is a constant.
Any hints? or suggestions in regards to this solution?
The image of such an analytic function would be a subset of a line in the plane. I don't know where you are in your study of complex variable, but such a function would not be an open mapping [if it is nonconstant], so it cannot be analytic.