Given, (y2−5y+3)(x2+x+1)<2x,∀x∈R ⇒y2−5y+3<x2+x+12x​(∵x2+x+1>0∀x∈R)
LHS must be less than the least value RHS.
Let x2+x+12x​=p⇒px2+(p−2)x+p=0
Since x is real, we have (p−2)2−4p2≥0⇒−2≤p≤32​
The minimum value of (x2+x+1)2x​ is −2.  So, y2−5y+3<−2⇒y2−5y+5<0⇒y∈(25−5​​,25+5​​)