Please follow the guidelines Read before posting: How do I get my question answered?.
In your case, you should probably do:
u=TrialFunction(V)
u_x, u_y = split(u)
But i can only guess as you have not supplied a Minimal working example or the full error message.