Given the equation $$ f(x)=x^2 -xy+y^2-y $$
I am asked to find the unit vector $\hat n$, such that $D_{\hat n} f(1,-1)$ equals to 4.
So far, finding the $\nabla f$ at $(1,-1)$ gives the result of $(3,-4)$.
As $|\hat n| =1,$ $$|\nabla f| cos{\theta}=4$$ $$cos{\theta} =0.8$$ $$\hat n = (cos{\theta},sin{\theta})= (\frac45, \frac 35)$$ $$\nabla f \cdot \hat n = (3,-4)\cdot(\frac45, \frac 35)=0\not=4 $$
As far as I know, solving for the dot product $\nabla f \cdot \hat n =4 $ is also another way. However, solving for $(a,b)$ with $ (3,-4)\cdot(a,b)=4$ doesn't seem to give me my answer. Any help is appreciated.
HINT
We need to find the unknown $\hat n=(\cos \theta, \sin \theta)$ by
$$(\cos \theta, \sin \theta)\cdot (3,-4)=3\cos\theta-4\sin \theta=4$$