A least squares method for a longitudinal fin with temperature dependent internal heat generation and thermal conductivity