This study reports the synthesis of two new hydrazide derivatives, namely, (E)-N'-(4- bromobenzylidene)-2-(4-isobutylphenyl)propanehydrazide (4a) and (E)-N'-benzylidene-2-(4-isobutylphenyl)propanehydrazide (4b), respectively. The compounds were synthesized by the reaction of benzaldehyde with Ibuprofen acid hydrazide. Their structures were confirmed by X-ray crystallography. To try to do a more detailed investigation, computational studies including Hirshfeld surface analyses, energy frameworks, density functional theory (DFT)optimizations, frontier orbital analyses, molecular electrostatic potential analyses, and natural bond orbital analyses of the studied compounds are performed. Moreover, molecular docking and dynamics simulations of complexes of the compounds with the cyclooxygenase-2 (COX-2) enzyme were performed to determine the anti-inflammatory potential of the compounds. These analyses predicted the compounds to show maximum chemical interactions and be dynamically stable during simulation time. Furthermore, estimation of binding free energies confirmed the high binding affinity of the compounds for the COX-2 enzyme.