Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    $\begingroup$ what does terms proportional to x mean? In what sense is (1+2 y) proportional to x $\endgroup$ Commented Apr 3, 2018 at 7:29
  • $\begingroup$ Sorry, I omitted the x term accidentally since that was what Coefficient was returning. I've edited the question. Thanks for pointing this out. $\endgroup$ Commented Apr 3, 2018 at 15:09
  • 2
    $\begingroup$ Perhaps Cases[Expand@expr, Longest[a_.] x /; FreeQ[a, x] :> a] works. $\endgroup$ Commented Apr 3, 2018 at 16:43
  • $\begingroup$ You mean the constant (for $x$) coefficients of $x^1$? $\endgroup$ Commented Apr 5, 2018 at 2:51
  • $\begingroup$ @march That seems to work! Thanks a lot! Feel free to post as an answer $\endgroup$ Commented Apr 6, 2018 at 7:44