Note: ${x_p}$ and ${x_{pp}}$ are derivative of x wrt p once and twice, respectively.
I am deriving the curvature for an arbitrary curve C=(x(p),y(p)). The formula for derivation satisfies $\frac{1}{|C_p|}$$\frac{\delta}{\delta p}$($\frac{C_p}{|C_p|}$)=$\kappa$*N.
N=$\frac{(-y_p,x_p)}{\sqrt{x_p^2+y_p^2}}$. is the unit normal to the tangent(tangent to curve).
After doing the derivation according to the formula above, we will have (A,B)=$\kappa$N, for some A and B.
and substituting the x (first) component of N to get $\kappa$, I get $\frac{-x_{pp}*y_p}{(x_p^2+y_p^2)^\frac{3}{2}}$.
Similarly, if I had done same for y component, ie., $\frac{B}{N_y}$, I get
$\frac{-y_{pp}*x_p}{(x_p^2+y_p^2)^\frac{3}{2}}$
The problem is, curvature $\kappa$ is defined as the sum of the two! $\kappa$=$\frac{y_{pp}*x_p-x_{pp}*y_p}{(x_p^2+y_p^2)^\frac{3}{2}}$
Is this because the first and second derivatives are normal to each other? If so, how can I use this fact to show that the summation will still give correct result upon multiplication, somewhere I think $x_{pp}$ and $x_p$ has to multiply and vanish but the derivates being normal to each other only imply that dot product sums should be zero.