We will use the given algebraic identity to expand the expressions.
Step 1 — Expanding (p+3q+7r)2
Let's identify the terms.
Here, a=p, b=3q, and c=7r.
We use the identity (a+b+c)2=a2+b2+c2+2ab+2bc+2ca.
(p+3q+7r)2=(p)2+(3q)2+(7r)2+2(p)(3q)+2(3q)(7r)+2(p)(7r)
=p2+9q2+49r2+6pq+42qr+14pr
p2+9q2+49r2+6pq+42qr+14pr

Step 2 — Expanding (3x−2y+4z)2
Let's rewrite the expression first.
We can write (3x−2y+4z)2 as [3x+(−2y)+4z]2.
Now, let's identify the terms.
Here, a=3x, b=−2y, and c=4z.
We use the identity (a+b+c)2=a2+b2+c2+2ab+2bc+2ca.
(3x−2y+4z)2=(3x)2+(−2y)2+(4z)2+2(3x)(−2y)+2(−2y)(4z)+2(3x)(4z)
=9x2+4y2+16z2−12xy−16yz+24xz
9x2+4y2+16z2−12xy−16yz+24xz
<DIAGRAM: No diagram needed for this algebraic expansion.>
Answer
(i) p2+9q2+49r2+6pq+42qr+14pr
(ii) 9x2+4y2+16z2−12xy−16yz+24xz