Due to the possibility of blockage during communication, the communication quality may be poor. Therefore, Reconfigurable Intelligent Surface (RIS) technology can effectively solve this problem. In order to increase the capacity of RIS-assisted wireless communication systems, joint optimization of beamforming design is crucial. However, the complexity of the optimization algorithm increases with the increase in the number of base station antennas and RIS elements deployed. Therefore, we propose a joint low-complexity optimization beamforming design based on fractional programming (FP) to address this issue. Specifically, we first use perfect channel state information to maximize the system's sum rate, as this problem is non-convex, we decompose the original problem into three sub-problems, and then introduce appropriate auxiliary variables. We derive optimal closed-form solutions for active and passive beamforming types, respectively. As the optimal solution obtained leads to higher computational complexity with an increase in the number of base station antennas and RIS elements, we reduce the computational complexity of obtaining the optimal solution based on the Woodbury transformation and scalar transformation. The proposed algorithm is also extended to the case where there is channel state information error. Finally, simulation results show that the proposed algorithm has certain advantages over other algorithms.