# Determining slope from a piecewise function [closed]

Determine the slope of $g(x)$ at $x= -1, x= -0.5, x= -0.1, x= -0.01$, and $x= -0.001$, given the piecewise function

$$g(x) = \begin{cases} -x, & \text{if x<0} \\ x-x^2, & \text{if x≥0} \end{cases}$$ `

New contributor
Liv McClary is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

## closed as off-topic by amWhy, Deepesh Meena, Shailesh, Strants, José Carlos SantosSep 14 at 16:30

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – amWhy, Deepesh Meena, Shailesh, Strants, José Carlos Santos
If this question can be reworded to fit the rules in the help center, please edit the question.

• Any thoughts? Perhaps if you sketched the graph of $g(x)$ it would be clearer to you. – lulu Sep 14 at 12:56

$$g'(x) = \begin{cases} -1, & \text{if x<0} \\ 1-2x, & \text{if x≥0} \end{cases}$$
Here you want to find slope only when $x$ is negative in every case.