Question: How to extract a factor from an expression?

Assuming I have an expression, 'F', I would like to extract from it a factor, 'a', so the expression is displayed as


where F/a is a simplified (or expanded or any other displayed form) expression.

As an example:

F:=1 + Q*x2 + P*x3

a:=x2 / L2

then this will be displayed

x2 / L2 * ( L2 / x2 + Q*L2 + P*L2*x)

Is this possible?

Please Wait...