Show that the equation of a line passing through the origin and making an angle θ with the line y = mx + c is
y/x = ±(m + tan θ)/(1 - m tan θ)
Let the equation of the line passing through the origin be y = m1x.
If this line makes an angle of θ with line y = mx + c, then
tanθ = |m1 - m/1 + m1m|
⇒ tanθ = |(y/x - m)/(1 + (y/x)m)|
⇒ tanθ = |(y - mx)/(x + my)|
⇒ tanθ = (y/x - m)/(1 + (y/x)m) or tan θ = (y/x - m)/(1 + (y/x)m)
Case I: tanθ = (y/x - m)/(1 + (y/x)m)
tanθ(1 + (y/x)m) = y/x - m
m + m tanθ = y/x (1 - m tanθ)
⇒ y/x = (m + tan θ)/(1 - m tan θ)
Case II: tanθ = (m - y/x)/(1 + (y/x)m)
tanθ(1 + (y/x)m) = m - y/x
⇒ y/x (1 + m tan θ) = m - tanθ
⇒ y/x = (m - tan θ)/(1 + m tan θ)
Therefore, the required line is given by
y/x = (m ± tan θ)/(1 ∓ m tan θ)