$$ c_n = \frac{1}{c} \left[ \int_0^c (C_{p,l} - C_{p,u}) \, dx + \int_0^c \left(c_{f, u} \frac{dy_u}{dx} + c_{f,l} \frac{dy_l}{dx} \right) dx \right] $$ $$ c_a = \frac{1}{c} \left[ \int_0^c \left(C_{p, u} \frac{dy_u}{dx} - C_{p,l} \frac{dy_l}{dx} \right) dx + \int_0^c (c_{f,u} + c_{f,l}) \, dx \right] $$
I am trying to calculate Cl vs alpha curve for NACA2412 airfoil. I have calculated the non-viscous Cp (pressure coefficient) using panel method and Cf (friction coefficient) using Thwaites, Michael's and Head's boundary layer integral equations. I now have both Cp and Cf for all the panels. In order to calculate Cl (lift coefficient), I need to calculate these force coefficients first. I am stuck here, I am having difficulties solving these two equations. Please somebody help me to solve these two integral equations so that I can insert my Cp and Cf values to get Cn (normal force coefficient) and Ca (axial force coefficient). The author left these equations for the readers as an exercise but seems like I am having huge confusions solving it. I can have dy/dx data from the panel method (it is just the tan(phi) for each panel).
Equation source - Fundamentals of Aerodynamics 6th edition(page number - 26)