Yes, your solution did not lead to the old error. But I still do not understand many things. You say that I gave f a value. I was just trying to define my function. Why did Clear not erase the definition?
I will try again with a function where I know the answer. This will hopefully help me to learn what I should do.
I should get x0 as the solution for f’'[x]==0. The slope at this point should be U/(4*C). How do I get this with mathematica. How should I handle C1 and C[2]? I don’t understand what they mean.