We are given the sum and product of two numbers, \(a\) and \(b\).
The goal is to find the value of \(a^2 + b^2\).
Recall the algebraic identity for the square of a binomial sum:
\( (a + b)^2 = a^2 + 2ab + b^2 \)
We can rearrange this identity to solve for \(a^2 + b^2\):
\( a^2 + b^2 = (a + b)^2 - 2ab \)
Substitute the given values \(a + b = 7\) and \(ab = 12\) into the rearranged formula:
\( a^2 + b^2 = (7)^2 - 2(12) \)
First, calculate the square of the sum:
\( 7^2 = 49 \)
Next, calculate twice the product:
\( 2 \times 12 = 24 \)
Finally, subtract twice the product from the square of the sum:
\( a^2 + b^2 = 49 - 24 \)
\( a^2 + b^2 = 25 \)
Thus, the value of \(a^2 + b^2\) is 25.