1/2a²+a-4+1/2a²+5a+4
=a²+6a
=a(a+6)
1/2a²+a-4+1/2a²-a
=a²-4
=(a+2)(a-2)
1/2a²+5a+4+1/2a²-a
=a²+4a+4
=(a-2)²