To find the value of \( p \) such that the objective function \( z = px + 4y \) attains its maximum at the given points \((\frac{3}{2},4)\) and \((3,1)\), evaluate \( z \) at these points and equate the resulting expressions.
Calculate \( z \) for both points:
Since \( z_1 = z_2 \), set the equations equal:
\(\frac{3p}{2} + 16 = 3p + 4\)
To solve for \( p \), subtract \( \frac{3p}{2} \) from both sides:
\(16 = \frac{3p}{2} + 4\)
Further simplify:
\(16 - 4 = 3p - \frac{3p}{2}\)
\(12 = \frac{3p}{2}\)
Clear fractions by multiplying the entire equation by 2:
\(24 = 3p\)
Divide by 3:
\(p = 8\)
Thus, the value of \( p \) is 8 when the maximum occurs at the given points.