Mathematical Modeling and Theoretical Analysis of Second-Grade Nanomaterial with Entropy Optimization