Abstract. By a result of Helton and McCullough [HM12], open bounded convex free semialgebraic sets are exactly open (matricial) solution sets D • L of a linear matrix inequality (LMI) L(X) ≻ 0. This paper gives a precise algebraic certificate for a polynomial being nonnegative on a convex semialgebraic set intersect a variety, a so-called "Perfect" Positivstellensatz.For example, given a generic convex free semialgebraic set D • L we determine all "(strong sense) defining polynomials" p for D • L . Such polynomials must have the formwhere q i , r j are matrices of polynomials, and C j are real matrices satisfying C j L = LC j . This follows from our general result for a given linear pencil L and a finite set I of rows of polynomials. A matrix polynomial p is positive where L is positive and all ι ∈ I vanish if and only ifwhere each p i , q j and r k are matrices of polynomials of appropriate dimension, and each ι k is an element of the "L-real radical" of I. In this representation, we can restrict p i , q i , ι k and r k to be elements of a low-dimensional subspace of matrices of polynomials, and in particular, their degrees depend in a very tame way only on the degree of p and the degrees of the elements of I. Further, this paper gives an efficient algorithm for computing the L-real radical of I. This Positivstellensatz extends and unifies two different lines of results: (1) the free real Nullstellensatz of [CHMN13, Nel] which gives an algebraic certificate corresponding to one polynomial being zero on the free variety where others are zero; this is (P) with L = 1; (2) the convex Positivstellensatz of [HKM12, KS11] which is (P) without I; i.e., I = {0}. The representation (P) has a number of additional consequences which will be presented.