Given:
A line passes through the point (1,4) and is parallel to the x-axis.
To find:
The equation of the line.
Solution:
If a line is parallel to x-axis, then the line is a horizontal line. We know that the slope of a horizontal line is always 0. So, the slope of the required line is 0.
The point-slope form of a line is:
[tex]y-y_1=m(x-x_1)[/tex]
Where, m is the slope and [tex](x_1,y_1)[/tex] is the point.
The slope of the required line is 0 and it passes through the point (1,4). So, the equation of the line is:
[tex]y-4=0(x-1)[/tex]
[tex]y-4=0[/tex]
[tex]y-4+4=0+4[/tex]
[tex]y=4[/tex]
The required equation is [tex]y=4[/tex].
Therefore, the correct option is B.