Solution
The formula to find the equation of a straight line is
![m=(y-y_1)/(x-x_1)](https://img.qammunity.org/2023/formulas/mathematics/college/jdj1lyi50jbpedvyjqiulvkzma36qgk0om.png)
Given that the line passes through the point (-5,1) which is parallel to the given line
![y=-x](https://img.qammunity.org/2023/formulas/mathematics/high-school/zb15cg55ca9wb56nhi344p8die96e0ollf.png)
Since the lines are perpendicular, then to find the slope of the other line, the formula is
![m_2=-(1)/(m_1)](https://img.qammunity.org/2023/formulas/mathematics/college/famfci9sb6car80iseo3b973mc71ztg8tq.png)
Let m₁ be the slope of the given line and m₂ be the slope of the line perpendicular to the given line
The general form of an equation of a straight line is
![\begin{gathered} y=mx+b \\ \text{Where } \\ m\text{ is the slope and b is the y-intercept} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/ue2odgxlebk7afo0geb7caake2cm88waev.png)
The slope, m₁, of the given line is -1, i.e m₁ = -1
The slope, m₂, of the line perpedicular to the given line will be
![\begin{gathered} m_1=-1 \\ m_2=-(1)/(m_1) \\ m_2=-(1)/(-1) \\ m_2=1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/35r77sp8vc7u077uvn3i799jgk7wfpwtsl.png)
The slope, m₂, of the line passing through the points (-5, 1), m₂ = 1
Where
![\begin{gathered} (x_1,y_1)\Rightarrow(-5,1) \\ m_2=1 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/v05alnksvd57kgfr3qs4fvcaumuy8rhiwj.png)
Substitute the variables into the formula to find the equation of a straight line
![\begin{gathered} m=(y-y_1)/(x-x_1) \\ 1=(y-1)/(x-(-5)) \\ 1=(y-1)/(x+5) \\ \text{Crossmultiply} \\ x+5=y-1 \\ y=x+5+1 \\ y=x+6 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/m2h9elqbms3sf5cme6tdiuecpdup8803xk.png)
Hence, the equation of the line in slope-intercept form is
![y=x+6](https://img.qammunity.org/2023/formulas/mathematics/high-school/r98z9ljiaai68qqhgmhswqi3o21ge6xso5.png)