As sec^2theta=1+tan^2thetasec2θ=1+tan2θ,
sec^2theta+1-3tantheta=0sec2θ+1−3tanθ=0 can be written as
1+tan^2theta+1-3tantheta=01+tan2θ+1−3tanθ=0
or tan^2theta-3tantheta+2=0tan2θ−3tanθ+2=0
or tan^2theta-2tantheta-tantheta+2=0tan2θ−2tanθ−tanθ+2=0
or tantheta(tantheta-2)-1(tantheta-2)=0tanθ(tanθ−2)−1(tanθ−2)=0
or (tantheta-1)(tantheta-2)=0(tanθ−1)(tanθ−2)=0
i.e. either tantheta-1=0tanθ−1=0 or tantheta-2=0tanθ−2=0
hence, either tantheta=1tanθ=1 or tantheta=2tanθ=2
i.e. theta=npi+pi/4θ=nπ+π4
or theta=npi+tan^(-1)2θ=nπ+tan−12 i.e. theta=npi+tan^(-1)2θ=nπ+tan−12 (in radians using calculator).