Hi

can any one help me to solve this extremal problem shown in the attachment:

i get stock after using hamilton ...we could not find x' ..i think this problem could not be solved analytical it should solved numerically

but how we solved this numerically is it by using matlab functionbvp4cand how

please help me