a) ĐK: `a >0`
`P=(a^2+\sqrta)/(a-\sqrta+1)-(2a+\sqrta)/(\sqrta)+1`
`=(\sqrta(\sqrt(a^3)+1^3))/(a-\sqrta+1)-(\sqrta(2\sqrta+1))/(\sqrta)+1`
`=(\sqrta(\sqrta+1)(a-\sqrta+1))/(a-\sqrta+1)-(2\sqrta+1)+1`
`=a+\sqrta-2\sqrta-1+1`
`=a-\sqrta`
b) `P=a-\sqrta`
`=(\sqrta)^2-2.\sqrta .1/2 + (1/2)^2 -1/4`
`=(\sqrta-1/2)^2 -1/4 ≥ -1/4`
`=> P_(min) =-1/4 <=> a=1/4`