Q. If the range of values of a for which the roots of the equation $x^2-2 x-a^2+1=0$ lie between the roots of the equation $x^2-2(a+1) x+a(a-1)=0$ is $(p, q)$, find the value of $\left(q+\frac{1}{p^2}\right)$.
Complex Numbers and Quadratic Equations
Solution: