I need to prove $\sum_{i=1}^n{{(r_i)}^2}=1$ when:
$r_{i}(\theta)= \ \ \ \cos(\theta_{1}) \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $if $i=1$
$\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \cos(\theta_{i})\prod_{k=1}^{i-1} \sin(\theta_{k}) \ \ \ \ \ \ \ \ \ \ \ $if $2 \leq i \leq n-1$
$\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \sin(\theta_{n-1})\prod_{k=1}^{n-2} \sin(\theta_{k}) \ \ \ \ \ \ \ $if $i=n$
So my question is, how do I prove that:
$(\cos(\theta_1))^2+(\cos(\theta_2)\sin(\theta_1))^2+(\cos(\theta_3)\sin(\theta_1)\sin(\theta_2))^2+...+(\cos(\theta_{n-1})\sin(\theta_{1})...\sin(\theta_{n-2}))^2+(\sin(\theta_{1})...\sin(\theta_{n-1}))^2 =1$
It seems obvious to do something with $\sin^2 x + \cos^2 x = 1$, but I cannot understand what exactly I should do with it.
Firsly, note that by considering $2$ last terms ( that is for $i=n-1$ and $i=n$):
$(cos(\theta_{n-1})*\prod_{k=1}^{n-2}sin(\theta_k))^2 + (sin(\theta_{n-1})*\prod_{k=1}^{n-2}sin(\theta_k))^2$ =
$(cos^2(\theta_{n-1})+sin^2(\theta_{n-1}))*(\prod_{k=1}^{n-2}sin(\theta_k))^2 $ =
$(\prod_{k=1}^{n-2}sin(\theta_k))^2$
Now we're left with $n-1$ terms ( the one we get after grouping last $2$ terms and first $n-2$ terms).
Continue analogously, combine the new term with $n-2$'th one:
$(\prod_{k=1}^{n-2}sin(\theta_k))^2$ + $(cos(\theta_{n-2})\prod_{k=1}^{n-3}sin(\theta_k))^2$ =
$(sin(\theta_{n-2})(\prod_{k=1}^{n-3}sin(\theta_k))^2$ + $(cos(\theta_{n-2})\prod_{k=1}^{n-3}sin(\theta_k))^2$ = $(sin^2(\theta_{n-2})+cos^2(\theta_{n-2}))(\prod_{k=1}^{n-3}sin(\theta_k))^2$ =
=$(\prod_{k=1}^{n-3}sin(\theta_k))^2$
By continuing so (until the second term, cause it is of the same nature as every $\{2,3,...,n-1\}$, we get: first term + created term ( which is $sin^2(\theta_{n-1-(n-2)})$ ), so:
$cos^2(\theta_1) + sin^2(\theta_1) = 1 $
$1 = 1 $
Q.E.D