Stampacchia attended the Liceo-Ginnasio Gian Battista Vico in Naples where he studied classics but excelled in mathematics and physics. After graduating from the high school, in autumn of 1940 he entered the Science Faculty of the Scuola Normale Superiore of Pisa to study pure mathematics. For three years he produced outstanding examination results in a wide range of courses such as Tutorial Sessions in Analysis and in Geometry, Calculus of Variations, Theory of Functions, and Ordinary Differential Equations. However, when in the third year of the four-year course he was drafted into the Air Force. He informed the university authorities on 24 March 1943 that he had to report for military service on 28 March. He was given permission to take the university examinations in Pisa in June before being sent to Rome towards the end of month to undergo military training. He began his training but in September he joined the Resistance Movement against the Germans on the day Italy's capitulation to the Allies was announced. After many adventures he was able to join up with his parents and sisters in Isernia, a town situated in the centre of Italy, due north of Naples. On 1 October the British 5th Army entered Naples and after the Allies were in control Stampacchia returned to the city. The Liberation Army then put him to work on administrative duties and he was not discharged from his military duties until June 1945.
Now once Stampacchia was in Naples, despite having to undertake duties for the Liberation Army, he was able to take advantage of a special dispensation which allowed students to complete their degrees. His fourth year of study was therefore at the University of Naples rather than in Pisa. He obtained his Laurea with distinction from the University of Naples in November 1944 with a thesis written with Renato Caccioppoli as his advisor :-
His thesis was concerned with an adaptation of an approximation procedure for Volterra integral equations due to Tonelli to boundary value problems for systems of ordinary differential equations.At this stage he won a scholarship to enable him to continue his research at the University of Naples under the supervision of Renato Caccioppoli and Carlo Miranda, and he also undertook tutorial work to assist the Professor of Algebraic Analysis, although this was done on a voluntary basis. He also studied for the Final Examinations of the Scuola Normale Superiore of Pisa which he passed with distinction in November 1945. Stampacchia was now offered a position in Pisa but declined the offer and accepted instead a position as an assistant at the Naval Institute at Naples. At this stage he was struggling to find a direction for his studies. He wrote :-
During the period I stayed in Pisa, I tried in several ways to develop a special interest in something, but I wandered among many different topics due to an absolute lack of a guide. Thereby, the reasons for the sacrifices I would have to make if I remained in Pisa became all the more meaningless.He had been much influenced by Leonida Tonelli, who taught him for a year at Pisa before leaving for Rome, but by this time Tonelli's health was poor; he died in the spring of 1946. Stampacchia felt that contact with Caccioppoli and Miranda was important for him, and Tonelli advised him to take this route, hence his decision to accept the position in Naples. In addition to teaching at the Naval Institute he taught at the University on a voluntary basis. With his financial position now secure, he married Sara Naldini in October 1948; they had four children Mauro, Renata, Giulia, and Franca born in 1949, 1951, 1955 and 1956.
From the time Stampacchia took up his appointment in Naples, his research output was impressive consisting mainly of papers on differential equations and the calculus of variations. For example, he published five papers in 1947: Sulle condizioni che determinano gli integrali di un sistema di due equazioni differenziali ordinarie del primo ordine ; Sulla definizione assiomatica dell'area di una superficie rettificabile ; Sulle condizioni che determinano gli integrali dei sistemi di equazioni differenziali ordinarie del primo ordine ; Alcuni teoremi sull'estremo assoluto degli integrali doppi del calcolo delle variazioni dipendenti dalle derivate del secondo ordine ; and Sulla semicontinuità degli integrali doppi, in forma ordinaria, nel calcolo delle variazioni . In 1948-49 he was awarded a National research Council scholarship to enable him to undertake research on the calculus of variations and functional analytic methods.
With an impressive research record, Stampacchia was appointed as an assistant to the Professor of Mathematical Analysis at the University of Naples in July 1949. He presented fourteen papers for his Libera Docenza (equivalent to the German Habilitation) in 1951 :-
The years that Stampacchia spent in Pisa and Naples characterize the formation of his personality as an analyst: he was a passionate specialist in calculus of variations and in the theory of partial differential equations, a practitioner and an inspirer of research works of considerable depth and originality of thought. As is well known, his work has contributed notably to the progress of mathematics and the fields of research opened by him are still drawing the attention of the international mathematical community.Stampacchia was nominated for a Professorship at the University of Genoa in December 1952. This was a probationary position which became a full professorship in December 1955. His research continued to flourish and he became a leading figure of Italian mathematics. His 326 page text Equations elliptiques du second ordre à coefficients discontinus was published in 1966, then in 1967 he was elected President of the Italian Mathematical Union (Unione Matematica Italiana). It was around this time that he became one of the two 'founding fathers' of variational inequalities which grew out of his work on defining the capacitory potential associated to a non symmetric bilinear form. Not surprisingly, he was nominated for a chair in Rome and in November 1968 he was invited to fill the Chair of Mathematical Analysis in the Faculty of Sciences of the University of Rome "La Sapienza". He moved to Rome, taking with him an impressive group of young researchers. This was a difficult period, however, when there was student unrest in many European countries. Rome suffered badly in this respect and Stampacchia found that he could not provide the leadership he wished to give since many of the teaching staff joined with the students in their protests. He became highly involved in the dispute although all he wanted was to be able to effectively teach and undertake research. When he was invited to return to the Scuola Normale Superiore in Pisa as professor of Higher Analysis in 1970, he gladly accepted.
In Pisa he undertook a heavy workload. However, in the autumn of 1973 he suffered heart problems and had to take a period of rest in order to recover. He was advised to reduce his workload when he returned to his duties but Stampacchia was never one to take things easy and he ignored this medical advice and returned to work as hard as ever. He was a visiting professor at the University of Sussex in February 1976, then spent a month at the Collège de France in Paris in May/June. He spent the period March to May of 1977 at the Courant Institute in New York and at the School of Mathematics of the University of Minnesota at Minneapolis. He returned to Paris for another visit in February 1978 and while there he suffered a serious heart attack. He was taken to the Boucicaut Hospital where he slowly recovered. He was to leave the hospital on 27 April, but on this day he suffered another major heart attack and died.
One of the main projects Stampacchia had undertaken during his period as professor of Higher Analysis in Pisa was to work on a book on variational inequalities. He began working on the project himself, but later it turned into a collaboration with David Kinderlehrer. The book was still incomplete at the time of his death but completed by Kinderlehrer and published in 1980. Haim Brezis writes in a review:-
The theory of variational inequalities was born in Italy in the early sixties. The "founding fathers" were G Stampacchia and G Fichera. Stampacchia was motivated by potential theory, while Fichera was motivated by mechanics. Less than twenty years later the theory of variational inequalities has become a rich source of inspiration both in pure and applied mathematics. On the one hand, variational inequalities have stimulated new and deep results dealing with nonlinear partial differential equations. On the other hand, variational inequalities have been used in a large variety of questions in mechanics, physics, optimization and control, linear programming, engineering, etc... ; today variational inequalities are considered as an indispensable tool in various sectors of applied mathematics.Garroni writes a tribute to Stampacchia in . We give a short quote:-
Many of you, at least those closer to him, have come here not only to honour the memory of a great mathematician, but also in the name of the friendship and the affection for a friend and, in the case of the younger participants, for a real master. The personality of Stampacchia was both strong and simple, open and helpful. His human qualities are well known to all of you.We end this biography by quoting from Mazzone in  concerning Stampacchia's character. He:-
... was always proud of his native Naples and of the family background in which he was born; in fact, he was very happy of being born in such a special place and in an unusual family. These peculiar roots were particularly suited to his personality, rather nonconformist, and certainly contributed to his formation. Part of his characteristic nature was that of a very amiable and easy-going gentlemanliness, a simplicity coupled with the consciousness of his important position in the mathematical community, a very strong sense of criticism and a great sense of humour. Very frank in expressing clearly whatever he thought, he had a very generous and free attitude towards friends and students which was reciprocated with affection.
Article by: J J O'Connor and E F Robertson