Let $f(x,y)$ be defined and has continuous first and second partials on a domain $D$. Also, let
$$A = \frac{\partial^2 f}{\partial x^2} \\ B = \frac{\partial^2{f}}{\partial x \partial y} \\ C = \frac{\partial^2 f}{\partial y ^2}$$
Let say, at a critical point of $f(x,y)$, $$A = -1 \\ B = 0 \\ C = -1$$ So the second directional derivative in the direction of a unit vector $u$ can be written as a quadratic form,
$$\nabla_u\nabla_u f = u^T Q u \\ Q = \begin{bmatrix}-1 & 0 \\ 0 & -1\end{bmatrix}$$ $B^2 - AC = 0 - 1 < 0$ and $A + C = -1 -1 = -2 < 0$ So we know, that $f(x,y)$ must have a relative maximum at that critical point. But can someone tell me how to conclude this based on the eigenvalues of the quadratic forms?
Because normally, if the quadratic form has 2 distinct eigenvalues of the same sign say (positive), i can say that the second directional derivative has positive minimum and will be positive for all $u$, but for this case, the eigenvalues are repeated and hence the second directional derivative will have only 1 extremum point (which i dont know whether is a maximum or minimum). So how to come to a conclusion that f(x,y) has a relative maximum based on the repeated eigenvalues which has value $-1$?

When $(x_0,y_0)$ is your critical point then from the given data we can conclude that $$f(x_0+X,y_0+Y)=f(x_0,y_0)-{1\over2}(X^2+Y^2)+o(|{\bf Z}|^2)\qquad\bigl({\bf Z}:=(X,Y)\to{\bf 0}\bigr)\ .$$ It follows that $$f(x_0+X,y_0+Y)-f(x_0,y_0)=-{1\over2}|{\bf Z}|^2\bigl(1+o(1)\bigr)<0$$ as soon as $|{\bf Z}|$ is sufficiently small. Therefore we have a strict local maximum at $(x_0,y_0)$.