<p style='text-indent:20px;'>We present a novel method for solving a complicated form of a partial differential equation called the Black-Scholes equation arising from pricing European options. The novelty of this method is that we consider two terms of the equation, namely the volatility and dividend, as variables dependent on the state price. We develop a Galerkin finite element method to solve the problem. More specifically, we discretize the system along the state variable and build new basis functions which we use to approximate the solution. We establish convergence of the proposed method and numerical results are reported to show the proposed method is accurate and efficient.</p>