Answer:
![2n^2-2n+1](https://img.qammunity.org/2023/formulas/mathematics/high-school/7rbbhgldf8x3ecpcaskdbr6wpiixp7h86t.png)
Explanation:
let ‘n’ be the number of the figure.
For n = 2 :
The number of the squares of the second figure :
= (the number of the squares of the middle/horizontal row) + (the number of the remaining squares)
= (2×2−1) + 2×(1+2×0)
= (3) + 2×(1)
= 3 + 2
= 5
For n = 3 :
The number of the squares of the third figure :
= (the number of the squares of the middle/horizontal row) + (the number of the remaining squares)
= (2×3−1) + 2×[(1+2×0) + (1+2×1)]
= (5) + 2×[(1) + (3)]
= 5 + 2×[4]
= 5 + 8
= 13
For n = 4 :
The number of the squares of the fourth figure :
= (the number of the squares of the middle/horizontal row) + (the number of the remaining squares)
= (2×4−1) + 2×[(1+2×0) + (1+2×1)+ (1+2×2)]
= (7) + 2×[(1) + (3) + (5)]
= 7 + 2×[9]
= 7 + 18
= 25
For n (n ≥ 2) :
The number of the squares of the nth figure :
= (the number of the squares of the middle/horizontal row) + (the number of the remaining squares)
![= (2n-1) +2* \left( \sum^(n-2)_(k=0) \left( 1+2k\right) \right)](https://img.qammunity.org/2023/formulas/mathematics/high-school/peichcmz500yr4vbx5wj1wwkltk8cupasm.png)
![= (2n-1) +2* \left( \sum^(n-2)_(k=0) \left( 1\right) \right)+4* \left( \sum^(n-2)_(k=0) \left( k\right) \right)](https://img.qammunity.org/2023/formulas/mathematics/high-school/xu9jmeunqvagmnj7iizt6b23yq225q0bcr.png)
![= (2n-1) +2(n-1)+4* [(n-1)/(2)(0+(n-2))]](https://img.qammunity.org/2023/formulas/mathematics/high-school/oui8pkbypqum5p2ic0ch4oig3m9nf4hiy5.png)
![= (2n-1) +(2n-2)+4* [(n-1)/(2)(n-2)]](https://img.qammunity.org/2023/formulas/mathematics/high-school/ej93da2qcvx8p3iue64dq9mwffysi8c7kx.png)
![= 4n-3+2* (n-1)(n-2)](https://img.qammunity.org/2023/formulas/mathematics/high-school/w3226qlzme4c67dr9lz2jnn01ivkcy0086.png)
![= 4n-3+2* (n^2-3n+2)](https://img.qammunity.org/2023/formulas/mathematics/high-school/bigmmeca455wc7one4g9hc8nfxocxuiq18.png)
![= 4n-3+2n^2-6n+4](https://img.qammunity.org/2023/formulas/mathematics/high-school/7ozfn5vvgpgolkyloi3ojv0c001f7xso0s.png)
![= 2n^2-2n+1](https://img.qammunity.org/2023/formulas/mathematics/high-school/uclh1ng01v23g26u49l3tf7n12jo4q0c10.png)