Skip to main content
1 of 2

Extract variable from subexpression

I have an expression of the form a1xb1^2 + a2yc1^2 I want to extract the x and y from the expressions. a_,b_,c_ are the only types of variables that appear in the expression . Form of x and y are not known. Anyone know how? x and y are not necessarily numbers .