u = (a + b)/2
I'm not sure on what you want us to do here...
Perhaps you want us to simplify this equation?
In that case...there's not much to simplify. But, u = (a + b)/2 is the same thing as
u= a/2 + b/2
Is this what you're looking for?