PDE in connection with control problems