
Stanton D. answered 02/04/20
Tutor to Pique Your Sciences Interest
For the gravitational force, that starts as W, acting vertically (note the distinction from mass; this is already converted into a force!). That decomposes into W sin θ acting down the plane, and W cos θ acting into the plane.
Next, the horizontally acting force P, decomposes into P cos θ acting up the plane, and P sin θ acting into the plane.
Since P could balance W, then W sin θ = P cos θ.
Lastly, Q is totally along the plane already, so if it balances W, Q = W sin θ. Equating these equalities, and ^2ing:
W^2 sin^2 θ = P^2 cos^2 θ = Q^2; then
W^2/P^2 sin^2 θ = cos^2 θ = Q^2/P^2
likewise sin^2 θ = P^2/W^2 θ = Q^2/W^2
sin^2 θ + cos^2 θ = Q^2/P^2 + Q^2/W^2 = 1 by trig definition; divide through by Q^2:
1/P^2 + 1/W^2 = 1/Q^2

Stanton D.
You're welcome, any time!02/05/20
Ashley P.
Thanks for the explanation!02/05/20