I have an expression:
Clearly the factor on the bottom should cancel with the same factor inside the square root. Also the factor on the "middle" line should come outside the square root without the square. Lastly I have defined a separate variable l_13 = sqrt(x_3^2+y_3^2): so I would also like to extract this from the square root as l_13. In this case I can see what needs to be done. However, ideally "simplify" would do it for me. Can I guide "simplify" somehow?
The full code (not necessarily set out the best) to get to the above is given below.
Thanks in advnace for any help.
syms x_2 x_3 x_4 y_3 y_4 l_13 l_34 x_f y_f
syms x_BF y_BF x_AB x_BE L_BF L_AB L_BE