I'm stuck on this one problem and desperately need help :l

sinx + cosx = sinx/(1 - cosx/sinx) + cosx/(1 - sinx/cosx)

How would you prove this?!

Never mind, I just solved it by changing the denominators to cot and tan and leaving them as such until both fractions were added. Thank you anyway <3.