Making a Perfect Cusp Tikz
This Cusp I made came out awkward and I can not fix it.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1,cap=round]
tikzset{axes/.style={}}
% The graphic
begin{scope}[style=axes]
draw[->] (-.5,0) -- (3,0) node[below] {$x$};
draw[->] (0,-.5)-- (0,3) node[left] {$y$};
draw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
draw (1.5,2.5) to [out=-80, in=175] (2.75,.4);
%%%
end{scope}
end{tikzpicture}
end{document}
This outputs:
I am trying to achieve:
Note it is not exactly symmetric either but the head is cleaner.
tikz-pgf
add a comment |
This Cusp I made came out awkward and I can not fix it.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1,cap=round]
tikzset{axes/.style={}}
% The graphic
begin{scope}[style=axes]
draw[->] (-.5,0) -- (3,0) node[below] {$x$};
draw[->] (0,-.5)-- (0,3) node[left] {$y$};
draw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
draw (1.5,2.5) to [out=-80, in=175] (2.75,.4);
%%%
end{scope}
end{tikzpicture}
end{document}
This outputs:
I am trying to achieve:
Note it is not exactly symmetric either but the head is cleaner.
tikz-pgf
What precisely do you want to achieve? (The top is tilted since you havein=80
andout=-80
instead of90
.)
– marmot
Nov 30 at 14:30
@Marmot, I posted above what I am trying to achieve, I didn't think I'd have to ask a question on this but I also tried 90 and could not get the look I wanted.
– MathScholar
Nov 30 at 15:09
How aboutdraw[thick] (0.25,0.4) to [out=10,in=-90] (1.5,2.5) to [out=-90, in=175] (2.75,.4);
?
– marmot
Nov 30 at 15:13
add a comment |
This Cusp I made came out awkward and I can not fix it.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1,cap=round]
tikzset{axes/.style={}}
% The graphic
begin{scope}[style=axes]
draw[->] (-.5,0) -- (3,0) node[below] {$x$};
draw[->] (0,-.5)-- (0,3) node[left] {$y$};
draw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
draw (1.5,2.5) to [out=-80, in=175] (2.75,.4);
%%%
end{scope}
end{tikzpicture}
end{document}
This outputs:
I am trying to achieve:
Note it is not exactly symmetric either but the head is cleaner.
tikz-pgf
This Cusp I made came out awkward and I can not fix it.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1,cap=round]
tikzset{axes/.style={}}
% The graphic
begin{scope}[style=axes]
draw[->] (-.5,0) -- (3,0) node[below] {$x$};
draw[->] (0,-.5)-- (0,3) node[left] {$y$};
draw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
draw (1.5,2.5) to [out=-80, in=175] (2.75,.4);
%%%
end{scope}
end{tikzpicture}
end{document}
This outputs:
I am trying to achieve:
Note it is not exactly symmetric either but the head is cleaner.
tikz-pgf
tikz-pgf
edited Nov 30 at 15:08
asked Nov 30 at 14:19
MathScholar
5848
5848
What precisely do you want to achieve? (The top is tilted since you havein=80
andout=-80
instead of90
.)
– marmot
Nov 30 at 14:30
@Marmot, I posted above what I am trying to achieve, I didn't think I'd have to ask a question on this but I also tried 90 and could not get the look I wanted.
– MathScholar
Nov 30 at 15:09
How aboutdraw[thick] (0.25,0.4) to [out=10,in=-90] (1.5,2.5) to [out=-90, in=175] (2.75,.4);
?
– marmot
Nov 30 at 15:13
add a comment |
What precisely do you want to achieve? (The top is tilted since you havein=80
andout=-80
instead of90
.)
– marmot
Nov 30 at 14:30
@Marmot, I posted above what I am trying to achieve, I didn't think I'd have to ask a question on this but I also tried 90 and could not get the look I wanted.
– MathScholar
Nov 30 at 15:09
How aboutdraw[thick] (0.25,0.4) to [out=10,in=-90] (1.5,2.5) to [out=-90, in=175] (2.75,.4);
?
– marmot
Nov 30 at 15:13
What precisely do you want to achieve? (The top is tilted since you have
in=80
and out=-80
instead of 90
.)– marmot
Nov 30 at 14:30
What precisely do you want to achieve? (The top is tilted since you have
in=80
and out=-80
instead of 90
.)– marmot
Nov 30 at 14:30
@Marmot, I posted above what I am trying to achieve, I didn't think I'd have to ask a question on this but I also tried 90 and could not get the look I wanted.
– MathScholar
Nov 30 at 15:09
@Marmot, I posted above what I am trying to achieve, I didn't think I'd have to ask a question on this but I also tried 90 and could not get the look I wanted.
– MathScholar
Nov 30 at 15:09
How about
draw[thick] (0.25,0.4) to [out=10,in=-90] (1.5,2.5) to [out=-90, in=175] (2.75,.4);
?– marmot
Nov 30 at 15:13
How about
draw[thick] (0.25,0.4) to [out=10,in=-90] (1.5,2.5) to [out=-90, in=175] (2.75,.4);
?– marmot
Nov 30 at 15:13
add a comment |
3 Answers
3
active
oldest
votes
I guess the sign of 80
in draw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
is the culprit.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1,cap=round]
tikzset{axes/.style={}}
% The graphic
begin{scope}[style=axes]
draw[->] (-.5,0) -- (3,0) node[below] {$x$};
draw[->] (0,-.5)-- (0,3) node[left] {$y$};
draw[thick] (0.25,0.4) to [out=10,in=-90] (1.5,2.5)
to [out=-90, in=175] (2.75,.4);
draw[thin] (1.5,2.5) -- ++ (0.2,0.6) node[above]{$f'(a)$ does not exist};
draw (1.5,0.2) -- (1.5,-0.2) node[below]{$a$};
%%%
end{scope}
end{tikzpicture}
end{document}
1
marmot, why does it have to be 90? (Side note$f'(a)$ does not exist
).
– gusbrs
Nov 30 at 15:17
@gusbrs Well, that's how I interpreted "Note it is not exactly symmetric either but the head is cleaner.". I thought the OP wants to have it symmetric. (And thanks for the note!)
– marmot
Nov 30 at 15:20
@Marmot, that works but I thought I tried that. Eyes playing tricks on me. Not sure exactly what we changed Thanks Marmot!
– MathScholar
Nov 30 at 15:21
@MathScholar I guess the sign ofin
indraw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
is crucial. I have a-
there.
– marmot
Nov 30 at 15:22
Well, conceptually, we could still have side derivatives (is this how this is said in english?...) reaching "a" at 80 degrees and the derivative in a would not exist. The graphic would be symmetric like this. But the question is why doesn't tikz accept it?
– gusbrs
Nov 30 at 15:23
|
show 6 more comments
Here is a solution using the pgfplots
package, which extends tikz
to include a wide variety of plotting options:
documentclass{article}
usepackage{pgfplots}
begin{document}
begin{tikzpicture}begin{axis}[xmin=0,xmax=1,ymin=0,xtick={0.5},xticklabels=$a$,axis lines=left,ymajorticks=false,xlabel=$x$,ylabel=$y$,clip=false]
addplot [domain=0.1:0.5] {0.1+x^2} node [pos=0.2,above left] {$f$};
addplot [domain=0.5:0.9] {0.1+(x-1)^2} node[pin={90: $f'(a)$ does not exist.} ] at (axis cs:0.5,0.35) {};
end{axis}
end{tikzpicture}
end{document}
@Ubiquitos Thank you for your answer. I needed a corner with a more vertical right and left tangent, but someone else will find this very useful to them. Thanks for sharing
– MathScholar
Nov 30 at 15:41
add a comment |
A PSTricks solution just for comparison purposes.
documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-plot}
deff#1{(x-#1)^2+1}
begin{document}
begin{pspicture}[algebraic,ticks=none,labels=none](-.4,-.5)(4.5,3.5)
psaxes{->}(0,0)(-.3,-.4)(4,3)[$x$,0][$y$,90]
psplot{1}{2}{f{1}}
psplot{2}{3}{f{3}}
psxTick[labelsep=1pt](2){a}
rput(2.2,3){rnode[b]{a}{$f'(a)$ does not exist}}
pcline[nodesep=2pt]{->}(a)(*2 {f{1}})
end{pspicture}
end{document}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462564%2fmaking-a-perfect-cusp-tikz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I guess the sign of 80
in draw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
is the culprit.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1,cap=round]
tikzset{axes/.style={}}
% The graphic
begin{scope}[style=axes]
draw[->] (-.5,0) -- (3,0) node[below] {$x$};
draw[->] (0,-.5)-- (0,3) node[left] {$y$};
draw[thick] (0.25,0.4) to [out=10,in=-90] (1.5,2.5)
to [out=-90, in=175] (2.75,.4);
draw[thin] (1.5,2.5) -- ++ (0.2,0.6) node[above]{$f'(a)$ does not exist};
draw (1.5,0.2) -- (1.5,-0.2) node[below]{$a$};
%%%
end{scope}
end{tikzpicture}
end{document}
1
marmot, why does it have to be 90? (Side note$f'(a)$ does not exist
).
– gusbrs
Nov 30 at 15:17
@gusbrs Well, that's how I interpreted "Note it is not exactly symmetric either but the head is cleaner.". I thought the OP wants to have it symmetric. (And thanks for the note!)
– marmot
Nov 30 at 15:20
@Marmot, that works but I thought I tried that. Eyes playing tricks on me. Not sure exactly what we changed Thanks Marmot!
– MathScholar
Nov 30 at 15:21
@MathScholar I guess the sign ofin
indraw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
is crucial. I have a-
there.
– marmot
Nov 30 at 15:22
Well, conceptually, we could still have side derivatives (is this how this is said in english?...) reaching "a" at 80 degrees and the derivative in a would not exist. The graphic would be symmetric like this. But the question is why doesn't tikz accept it?
– gusbrs
Nov 30 at 15:23
|
show 6 more comments
I guess the sign of 80
in draw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
is the culprit.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1,cap=round]
tikzset{axes/.style={}}
% The graphic
begin{scope}[style=axes]
draw[->] (-.5,0) -- (3,0) node[below] {$x$};
draw[->] (0,-.5)-- (0,3) node[left] {$y$};
draw[thick] (0.25,0.4) to [out=10,in=-90] (1.5,2.5)
to [out=-90, in=175] (2.75,.4);
draw[thin] (1.5,2.5) -- ++ (0.2,0.6) node[above]{$f'(a)$ does not exist};
draw (1.5,0.2) -- (1.5,-0.2) node[below]{$a$};
%%%
end{scope}
end{tikzpicture}
end{document}
1
marmot, why does it have to be 90? (Side note$f'(a)$ does not exist
).
– gusbrs
Nov 30 at 15:17
@gusbrs Well, that's how I interpreted "Note it is not exactly symmetric either but the head is cleaner.". I thought the OP wants to have it symmetric. (And thanks for the note!)
– marmot
Nov 30 at 15:20
@Marmot, that works but I thought I tried that. Eyes playing tricks on me. Not sure exactly what we changed Thanks Marmot!
– MathScholar
Nov 30 at 15:21
@MathScholar I guess the sign ofin
indraw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
is crucial. I have a-
there.
– marmot
Nov 30 at 15:22
Well, conceptually, we could still have side derivatives (is this how this is said in english?...) reaching "a" at 80 degrees and the derivative in a would not exist. The graphic would be symmetric like this. But the question is why doesn't tikz accept it?
– gusbrs
Nov 30 at 15:23
|
show 6 more comments
I guess the sign of 80
in draw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
is the culprit.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1,cap=round]
tikzset{axes/.style={}}
% The graphic
begin{scope}[style=axes]
draw[->] (-.5,0) -- (3,0) node[below] {$x$};
draw[->] (0,-.5)-- (0,3) node[left] {$y$};
draw[thick] (0.25,0.4) to [out=10,in=-90] (1.5,2.5)
to [out=-90, in=175] (2.75,.4);
draw[thin] (1.5,2.5) -- ++ (0.2,0.6) node[above]{$f'(a)$ does not exist};
draw (1.5,0.2) -- (1.5,-0.2) node[below]{$a$};
%%%
end{scope}
end{tikzpicture}
end{document}
I guess the sign of 80
in draw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
is the culprit.
documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}[scale=1,cap=round]
tikzset{axes/.style={}}
% The graphic
begin{scope}[style=axes]
draw[->] (-.5,0) -- (3,0) node[below] {$x$};
draw[->] (0,-.5)-- (0,3) node[left] {$y$};
draw[thick] (0.25,0.4) to [out=10,in=-90] (1.5,2.5)
to [out=-90, in=175] (2.75,.4);
draw[thin] (1.5,2.5) -- ++ (0.2,0.6) node[above]{$f'(a)$ does not exist};
draw (1.5,0.2) -- (1.5,-0.2) node[below]{$a$};
%%%
end{scope}
end{tikzpicture}
end{document}
edited Nov 30 at 15:24
answered Nov 30 at 15:16
marmot
84.9k495179
84.9k495179
1
marmot, why does it have to be 90? (Side note$f'(a)$ does not exist
).
– gusbrs
Nov 30 at 15:17
@gusbrs Well, that's how I interpreted "Note it is not exactly symmetric either but the head is cleaner.". I thought the OP wants to have it symmetric. (And thanks for the note!)
– marmot
Nov 30 at 15:20
@Marmot, that works but I thought I tried that. Eyes playing tricks on me. Not sure exactly what we changed Thanks Marmot!
– MathScholar
Nov 30 at 15:21
@MathScholar I guess the sign ofin
indraw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
is crucial. I have a-
there.
– marmot
Nov 30 at 15:22
Well, conceptually, we could still have side derivatives (is this how this is said in english?...) reaching "a" at 80 degrees and the derivative in a would not exist. The graphic would be symmetric like this. But the question is why doesn't tikz accept it?
– gusbrs
Nov 30 at 15:23
|
show 6 more comments
1
marmot, why does it have to be 90? (Side note$f'(a)$ does not exist
).
– gusbrs
Nov 30 at 15:17
@gusbrs Well, that's how I interpreted "Note it is not exactly symmetric either but the head is cleaner.". I thought the OP wants to have it symmetric. (And thanks for the note!)
– marmot
Nov 30 at 15:20
@Marmot, that works but I thought I tried that. Eyes playing tricks on me. Not sure exactly what we changed Thanks Marmot!
– MathScholar
Nov 30 at 15:21
@MathScholar I guess the sign ofin
indraw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
is crucial. I have a-
there.
– marmot
Nov 30 at 15:22
Well, conceptually, we could still have side derivatives (is this how this is said in english?...) reaching "a" at 80 degrees and the derivative in a would not exist. The graphic would be symmetric like this. But the question is why doesn't tikz accept it?
– gusbrs
Nov 30 at 15:23
1
1
marmot, why does it have to be 90? (Side note
$f'(a)$ does not exist
).– gusbrs
Nov 30 at 15:17
marmot, why does it have to be 90? (Side note
$f'(a)$ does not exist
).– gusbrs
Nov 30 at 15:17
@gusbrs Well, that's how I interpreted "Note it is not exactly symmetric either but the head is cleaner.". I thought the OP wants to have it symmetric. (And thanks for the note!)
– marmot
Nov 30 at 15:20
@gusbrs Well, that's how I interpreted "Note it is not exactly symmetric either but the head is cleaner.". I thought the OP wants to have it symmetric. (And thanks for the note!)
– marmot
Nov 30 at 15:20
@Marmot, that works but I thought I tried that. Eyes playing tricks on me. Not sure exactly what we changed Thanks Marmot!
– MathScholar
Nov 30 at 15:21
@Marmot, that works but I thought I tried that. Eyes playing tricks on me. Not sure exactly what we changed Thanks Marmot!
– MathScholar
Nov 30 at 15:21
@MathScholar I guess the sign of
in
in draw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
is crucial. I have a -
there.– marmot
Nov 30 at 15:22
@MathScholar I guess the sign of
in
in draw (0.25,0.4) to [out=10,in=80] (1.5,2.5);
is crucial. I have a -
there.– marmot
Nov 30 at 15:22
Well, conceptually, we could still have side derivatives (is this how this is said in english?...) reaching "a" at 80 degrees and the derivative in a would not exist. The graphic would be symmetric like this. But the question is why doesn't tikz accept it?
– gusbrs
Nov 30 at 15:23
Well, conceptually, we could still have side derivatives (is this how this is said in english?...) reaching "a" at 80 degrees and the derivative in a would not exist. The graphic would be symmetric like this. But the question is why doesn't tikz accept it?
– gusbrs
Nov 30 at 15:23
|
show 6 more comments
Here is a solution using the pgfplots
package, which extends tikz
to include a wide variety of plotting options:
documentclass{article}
usepackage{pgfplots}
begin{document}
begin{tikzpicture}begin{axis}[xmin=0,xmax=1,ymin=0,xtick={0.5},xticklabels=$a$,axis lines=left,ymajorticks=false,xlabel=$x$,ylabel=$y$,clip=false]
addplot [domain=0.1:0.5] {0.1+x^2} node [pos=0.2,above left] {$f$};
addplot [domain=0.5:0.9] {0.1+(x-1)^2} node[pin={90: $f'(a)$ does not exist.} ] at (axis cs:0.5,0.35) {};
end{axis}
end{tikzpicture}
end{document}
@Ubiquitos Thank you for your answer. I needed a corner with a more vertical right and left tangent, but someone else will find this very useful to them. Thanks for sharing
– MathScholar
Nov 30 at 15:41
add a comment |
Here is a solution using the pgfplots
package, which extends tikz
to include a wide variety of plotting options:
documentclass{article}
usepackage{pgfplots}
begin{document}
begin{tikzpicture}begin{axis}[xmin=0,xmax=1,ymin=0,xtick={0.5},xticklabels=$a$,axis lines=left,ymajorticks=false,xlabel=$x$,ylabel=$y$,clip=false]
addplot [domain=0.1:0.5] {0.1+x^2} node [pos=0.2,above left] {$f$};
addplot [domain=0.5:0.9] {0.1+(x-1)^2} node[pin={90: $f'(a)$ does not exist.} ] at (axis cs:0.5,0.35) {};
end{axis}
end{tikzpicture}
end{document}
@Ubiquitos Thank you for your answer. I needed a corner with a more vertical right and left tangent, but someone else will find this very useful to them. Thanks for sharing
– MathScholar
Nov 30 at 15:41
add a comment |
Here is a solution using the pgfplots
package, which extends tikz
to include a wide variety of plotting options:
documentclass{article}
usepackage{pgfplots}
begin{document}
begin{tikzpicture}begin{axis}[xmin=0,xmax=1,ymin=0,xtick={0.5},xticklabels=$a$,axis lines=left,ymajorticks=false,xlabel=$x$,ylabel=$y$,clip=false]
addplot [domain=0.1:0.5] {0.1+x^2} node [pos=0.2,above left] {$f$};
addplot [domain=0.5:0.9] {0.1+(x-1)^2} node[pin={90: $f'(a)$ does not exist.} ] at (axis cs:0.5,0.35) {};
end{axis}
end{tikzpicture}
end{document}
Here is a solution using the pgfplots
package, which extends tikz
to include a wide variety of plotting options:
documentclass{article}
usepackage{pgfplots}
begin{document}
begin{tikzpicture}begin{axis}[xmin=0,xmax=1,ymin=0,xtick={0.5},xticklabels=$a$,axis lines=left,ymajorticks=false,xlabel=$x$,ylabel=$y$,clip=false]
addplot [domain=0.1:0.5] {0.1+x^2} node [pos=0.2,above left] {$f$};
addplot [domain=0.5:0.9] {0.1+(x-1)^2} node[pin={90: $f'(a)$ does not exist.} ] at (axis cs:0.5,0.35) {};
end{axis}
end{tikzpicture}
end{document}
answered Nov 30 at 15:32
Ubiquitous
1,6511020
1,6511020
@Ubiquitos Thank you for your answer. I needed a corner with a more vertical right and left tangent, but someone else will find this very useful to them. Thanks for sharing
– MathScholar
Nov 30 at 15:41
add a comment |
@Ubiquitos Thank you for your answer. I needed a corner with a more vertical right and left tangent, but someone else will find this very useful to them. Thanks for sharing
– MathScholar
Nov 30 at 15:41
@Ubiquitos Thank you for your answer. I needed a corner with a more vertical right and left tangent, but someone else will find this very useful to them. Thanks for sharing
– MathScholar
Nov 30 at 15:41
@Ubiquitos Thank you for your answer. I needed a corner with a more vertical right and left tangent, but someone else will find this very useful to them. Thanks for sharing
– MathScholar
Nov 30 at 15:41
add a comment |
A PSTricks solution just for comparison purposes.
documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-plot}
deff#1{(x-#1)^2+1}
begin{document}
begin{pspicture}[algebraic,ticks=none,labels=none](-.4,-.5)(4.5,3.5)
psaxes{->}(0,0)(-.3,-.4)(4,3)[$x$,0][$y$,90]
psplot{1}{2}{f{1}}
psplot{2}{3}{f{3}}
psxTick[labelsep=1pt](2){a}
rput(2.2,3){rnode[b]{a}{$f'(a)$ does not exist}}
pcline[nodesep=2pt]{->}(a)(*2 {f{1}})
end{pspicture}
end{document}
add a comment |
A PSTricks solution just for comparison purposes.
documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-plot}
deff#1{(x-#1)^2+1}
begin{document}
begin{pspicture}[algebraic,ticks=none,labels=none](-.4,-.5)(4.5,3.5)
psaxes{->}(0,0)(-.3,-.4)(4,3)[$x$,0][$y$,90]
psplot{1}{2}{f{1}}
psplot{2}{3}{f{3}}
psxTick[labelsep=1pt](2){a}
rput(2.2,3){rnode[b]{a}{$f'(a)$ does not exist}}
pcline[nodesep=2pt]{->}(a)(*2 {f{1}})
end{pspicture}
end{document}
add a comment |
A PSTricks solution just for comparison purposes.
documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-plot}
deff#1{(x-#1)^2+1}
begin{document}
begin{pspicture}[algebraic,ticks=none,labels=none](-.4,-.5)(4.5,3.5)
psaxes{->}(0,0)(-.3,-.4)(4,3)[$x$,0][$y$,90]
psplot{1}{2}{f{1}}
psplot{2}{3}{f{3}}
psxTick[labelsep=1pt](2){a}
rput(2.2,3){rnode[b]{a}{$f'(a)$ does not exist}}
pcline[nodesep=2pt]{->}(a)(*2 {f{1}})
end{pspicture}
end{document}
A PSTricks solution just for comparison purposes.
documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-plot}
deff#1{(x-#1)^2+1}
begin{document}
begin{pspicture}[algebraic,ticks=none,labels=none](-.4,-.5)(4.5,3.5)
psaxes{->}(0,0)(-.3,-.4)(4,3)[$x$,0][$y$,90]
psplot{1}{2}{f{1}}
psplot{2}{3}{f{3}}
psxTick[labelsep=1pt](2){a}
rput(2.2,3){rnode[b]{a}{$f'(a)$ does not exist}}
pcline[nodesep=2pt]{->}(a)(*2 {f{1}})
end{pspicture}
end{document}
answered Nov 30 at 16:54
Artificial Stupidity
5,29511039
5,29511039
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f462564%2fmaking-a-perfect-cusp-tikz%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What precisely do you want to achieve? (The top is tilted since you have
in=80
andout=-80
instead of90
.)– marmot
Nov 30 at 14:30
@Marmot, I posted above what I am trying to achieve, I didn't think I'd have to ask a question on this but I also tried 90 and could not get the look I wanted.
– MathScholar
Nov 30 at 15:09
How about
draw[thick] (0.25,0.4) to [out=10,in=-90] (1.5,2.5) to [out=-90, in=175] (2.75,.4);
?– marmot
Nov 30 at 15:13